Binderとは? わかりやすく解説

binder

別表記:バインダー

「binder」の意味・「binder」とは

「binder」とは、英語で「綴じるもの」や「結びつけるもの」を意味する単語である。具体的には、書類や紙をまとめて保管するための道具や、材料結びつける役割を果たす物質を指すことが多い。例えば、オフィスでよく見かけるリングバインダーや、建築材料接着剤などが「binder」の具体的な使用例となる。

「binder」の発音・読み方

「binder」の発音は、IPA表記では /ˈbaɪndər/ となる。IPAカタカナ読みでは「バインダー」となる。日本人発音するカタカナ英語では「バインダー」と読む。

「binder」の定義を英語で解説

英語での「binder」の定義は、「a cover for holding together sheets of paper」である。これは「紙をまとめて保持するためのカバー」を意味するまた、「a substance that makes other substances stick together」も「binder」の定義となり、これは「他の物質結びつける物質」を指す。

「binder」の類語

「binder」の類語としては、「folder」や「file」がある。これらも紙類まとめて保管するための道具を指す単語である。ただし、「folder」は折りたたみ式のものを、「file」はファイルボックスやファイルケースなどを指すことが多い。

「binder」に関連する用語・表現

「binder」に関連する用語としては、「ring binder」や「loose-leaf binder」がある。「ring binder」はリング状の金具で紙をまとめるバインダーを、「loose-leaf binder」は取り外し可能な紙を保管するバインダーを指す。

「binder」の例文

以下に「binder」を使用した例文10個示す。 1. English example: I keep all my recipes in a binder. (日本語訳:私は全てのレシピバインダー保管している。) 2. English example: The binder contains important documents. (日本語訳:そのバインダーには重要な書類収められている。) 3. English example: Please put the report in the blue binder. (日本語訳レポートを青いバインダー入れてください。) 4. English example: The binder fell off the shelf. (日本語訳バインダーから落ちた。) 5. English example: The binder is full of notes. (日本語訳:そのバインダーノートいっぱいだ。) 6. English example: The binder has a label on the spine. (日本語訳:そのバインダーには背表紙ラベルが貼られている。) 7. English example: The binder is made of durable material. (日本語訳:そのバインダー耐久性のある素材作られている。) 8. English example: The binder has a clear pocket on the cover. (日本語訳:そのバインダーには表紙に透明のポケットついている。) 9. English example: The binder holds the paint together. (日本語訳:そのバインダーペンキを結びつけている。) 10. English example: The binder is used in the production of pharmaceuticals. (日本語訳:そのバインダー製薬生産使用される。)

バインダー【binder】

読み方:ばいんだー

書類雑誌新聞などをとじ込む文具。厚い表紙留め金やひもの付いたもの。

稲などを自動的に刈り取って束ねる農業機械


ビンデル【Binder/Биндэр】


バインダー

読みばいんだー
英語:binder

参照結着剤

結着剤


Binder クラス

メンバ候補リストからメンバ選択し実引数の型から仮引数の型への型変換実行します

名前空間: System.Reflection
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<SerializableAttribute> _
<ClassInterfaceAttribute(ClassInterfaceType.AutoDual)> _
<ComVisibleAttribute(True)> _
Public MustInherit Class
 Binder
[SerializableAttribute] 
[ClassInterfaceAttribute(ClassInterfaceType.AutoDual)] 
[ComVisibleAttribute(true)] 
public abstract class Binder
[SerializableAttribute] 
[ClassInterfaceAttribute(ClassInterfaceType::AutoDual)] 
[ComVisibleAttribute(true)] 
public ref class Binder abstract
/** @attribute SerializableAttribute() */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.AutoDual) */ 
/** @attribute ComVisibleAttribute(true) */ 
public abstract class Binder
SerializableAttribute 
ClassInterfaceAttribute(ClassInterfaceType.AutoDual) 
ComVisibleAttribute(true) 
public abstract class Binder
解説解説

継承時の注意 Binder から継承する場合、BindToMethod、BindToField、SelectMethod、SelectProperty、ChangeType の各メンバオーバーライドする必要があります

使用例使用例

Binder クラスすべてのメンバ実装して使用する例を次に示しますプライベート メソッド CanConvertFrom使用して指定した型と互換性がある型を検索します

Imports System
Imports System.Reflection
Imports System.Globalization
Imports Microsoft.VisualBasic

Public Class MyBinder
    Inherits Binder
    Public Sub New()
        MyBase.new()
    End Sub 'New
    Private Class BinderState
        Public args() As Object
    End Class 'BinderState

    Public Overrides Function
 BindToField(ByVal bindingAttr As BindingFlags,
 ByVal match() As FieldInfo, ByVal value As Object, ByVal
 culture As CultureInfo) As FieldInfo
        If match Is Nothing
 Then
            Throw New ArgumentNullException("match")
        End If
        ' Get a field for which the value parameter can be converted
 to the specified field type.
        Dim i As Integer
        For i = 0 To match.Length - 1
            If Not (ChangeType(value, match(i).FieldType,
 culture) Is Nothing) Then
                Return match(i)
            End If
        Next i
        Return Nothing
    End Function 'BindToField

    Public Overrides Function
 BindToMethod(ByVal bindingAttr As BindingFlags,
 ByVal match() As MethodBase, ByRef args() As Object, ByVal
 modifiers() As ParameterModifier, ByVal culture As CultureInfo, ByVal names() As String, ByRef state As Object) As MethodBase
        ' Store the arguments to the method in a state object.
        Dim myBinderState As New
 BinderState()
        Dim arguments() As Object
 = New [Object](args.Length) {}
        args.CopyTo(arguments, 0)
        myBinderState.args = arguments
        state = myBinderState

        If match Is Nothing
 Then
            Throw New ArgumentNullException()
        End If
        ' Find a method that has the same parameters as those of args.
        Dim i As Integer
        For i = 0 To match.Length - 1
            ' Count the number of parameters that match.
            Dim count As Integer
 = 0
            Dim parameters As ParameterInfo()
 = match(i).GetParameters()
            ' Go on to the next method if the number of parameters do
 not match.
            If args.Length <> parameters.Length Then
                GoTo ContinueFori
            End If
            ' Match each of the parameters that the user expects the
 method to have.
            Dim j As Integer
            For j = 0 To args.Length - 1
                ' If names is not null, then reorder args.
                If Not (names Is
 Nothing) Then
                    If names.Length <> args.Length Then
                        Throw New ArgumentException("names
 and args must have the same number of elements.")
                    End If
                    Dim k As Integer
                    For k = 0 To names.Length
 - 1
                        If String.Compare(parameters(j).Name,
 names(k).ToString()) = 0 Then
                            args(j) = myBinderState.args(k)
                        End If
                    Next k
                End If ' Determine
 whether the types specified by the user can be converted to parameter type.
                If Not (ChangeType(args(j),
 parameters(j).ParameterType, culture) Is Nothing)
 Then
                    count += 1
                Else
                    Exit For
                End If
            Next j
            ' Determine whether the method has been found.
            If count = args.Length Then
                Return match(i)
            End If
ContinueFori:
        Next i
        Return Nothing
    End Function 'BindToMethod

    Public Overrides Function
 ChangeType(ByVal value As Object,
 ByVal myChangeType As Type, ByVal culture As CultureInfo) As Object
        ' Determine whether the value parameter can be converted to
 a value of type myType.
        If CanConvertFrom(value.GetType(), myChangeType) Then
            ' Return the converted object.
            Return Convert.ChangeType(value, myChangeType)
            ' Return null.
        Else
            Return Nothing
        End If
    End Function 'ChangeType

    Public Overrides Sub
 ReorderArgumentArray(ByRef args() As Object,
 ByVal state As Object)
        'Redimension the array to hold the state values.
        ReDim args(CType(state, BinderState).args.Length)
        ' Return the args that had been reordered by BindToMethod.
        CType(state, BinderState).args.CopyTo(args, 0)
    End Sub 'ReorderArgumentArray

    Public Overrides Function
 SelectMethod(ByVal bindingAttr As BindingFlags,
 ByVal match() As MethodBase, ByVal types() As Type, ByVal modifiers()
 As ParameterModifier) As MethodBase
        If match Is Nothing
 Then
            Throw New ArgumentNullException("match")
        End If
        Dim i As Integer
        For i = 0 To match.Length - 1
            ' Count the number of parameters that match.
            Dim count As Integer
 = 0
            Dim parameters As ParameterInfo()
 = match(i).GetParameters()
            ' Go on to the next method if the number of parameters do
 not match.
            If types.Length <> parameters.Length Then
                GoTo ContinueFori
            End If
            ' Match each of the parameters that the user expects the
 method to have.
            Dim j As Integer
            For j = 0 To types.Length - 1
                ' Determine whether the types specified by the user
 can be converted to parameter type.
                If CanConvertFrom(types(j), parameters(j).ParameterType)
 Then
                    count += 1
                Else
                    Exit For
                End If
            Next j ' Determine whether the method
 has been found.
            If count = types.Length Then
                Return match(i)
            End If
ContinueFori:
        Next i
        Return Nothing
    End Function 'SelectMethod
    Public Overrides Function
 SelectProperty(ByVal bindingAttr As BindingFlags,
 ByVal match() As PropertyInfo, ByVal returnType As Type, ByVal indexes()
 As Type, ByVal modifiers() As ParameterModifier) As PropertyInfo
        If match Is Nothing
 Then
            Throw New ArgumentNullException("match")
        End If
        Dim i As Integer
        For i = 0 To match.Length - 1
            ' Count the number of indexes that match.
            Dim count As Integer
 = 0
            Dim parameters As ParameterInfo()
 = match(i).GetIndexParameters()

            ' Go on to the next property if the number of indexes do
 not match.
            If indexes.Length <> parameters.Length Then
                GoTo ContinueFori
            End If
            ' Match each of the indexes that the user expects the property
 to have.
            Dim j As Integer
            For j = 0 To indexes.Length - 1
                ' Determine whether the types specified by the user
 can be converted to index type.
                If CanConvertFrom(indexes(j), parameters(j).ParameterType)
 Then
                    count += 1
                Else
                    Exit For
                End If
            Next j ' Determine whether the property
 has been found.
            If count = indexes.Length Then
                ' Determine whether the return type can be converted
 to the properties type.
                If CanConvertFrom(returnType, match(i).GetType())
 Then
                    Return match(i)
                Else
                    GoTo ContinueFori
                End If
            End If
ContinueFori:
        Next i
        Return Nothing
    End Function 'SelectProperty

    ' Determine whether type1 can be converted to type2. Check only
 for primitive types.
    Private Function CanConvertFrom(ByVal
 type1 As Type, ByVal type2 As
 Type) As Boolean
        If type1.IsPrimitive And type2.IsPrimitive
 Then
            Dim typeCode1 As TypeCode = Type.GetTypeCode(type1)
            Dim typeCode2 As TypeCode = Type.GetTypeCode(type2)
            ' If both type1 and type2 have same type, return true.
            If typeCode1 = typeCode2 Then
                Return True
            End If ' Possible
 conversions from Char follow.
            If typeCode1 = TypeCode.Char Then
                Select Case typeCode2
                    Case TypeCode.UInt16
                        Return True
                    Case TypeCode.UInt32
                        Return True
                    Case TypeCode.Int32
                        Return True
                    Case TypeCode.UInt64
                        Return True
                    Case TypeCode.Int64
                        Return True
                    Case TypeCode.Single
                        Return True
                    Case TypeCode.Double
                        Return True
                    Case Else
                        Return False
                End Select
            End If ' Possible
 conversions from Byte follow.
            If typeCode1 = TypeCode.Byte Then
                Select Case typeCode2
                    Case TypeCode.Char
                        Return True
                    Case TypeCode.UInt16
                        Return True
                    Case TypeCode.Int16
                        Return True
                    Case TypeCode.UInt32
                        Return True
                    Case TypeCode.Int32
                        Return True
                    Case TypeCode.UInt64
                        Return True
                    Case TypeCode.Int64
                        Return True
                    Case TypeCode.Single
                        Return True
                    Case TypeCode.Double
                        Return True
                    Case Else
                        Return False
                End Select
            End If ' Possible
 conversions from SByte follow.
            If typeCode1 = TypeCode.SByte Then
                Select Case typeCode2
                    Case TypeCode.Int16
                        Return True
                    Case TypeCode.Int32
                        Return True
                    Case TypeCode.Int64
                        Return True
                    Case TypeCode.Single
                        Return True
                    Case TypeCode.Double
                        Return True
                    Case Else
                        Return False
                End Select
            End If ' Possible
 conversions from UInt16 follow.
            If typeCode1 = TypeCode.UInt16 Then
                Select Case typeCode2
                    Case TypeCode.UInt32
                        Return True
                    Case TypeCode.Int32
                        Return True
                    Case TypeCode.UInt64
                        Return True
                    Case TypeCode.Int64
                        Return True
                    Case TypeCode.Single
                        Return True
                    Case TypeCode.Double
                        Return True
                    Case Else
                        Return False
                End Select
            End If ' Possible
 conversions from Int16 follow.
            If typeCode1 = TypeCode.Int16 Then
                Select Case typeCode2
                    Case TypeCode.Int32
                        Return True
                    Case TypeCode.Int64
                        Return True
                    Case TypeCode.Single
                        Return True
                    Case TypeCode.Double
                        Return True
                    Case Else
                        Return False
                End Select
            End If ' Possible
 conversions from UInt32 follow.
            If typeCode1 = TypeCode.UInt32 Then
                Select Case typeCode2
                    Case TypeCode.UInt64
                        Return True
                    Case TypeCode.Int64
                        Return True
                    Case TypeCode.Single
                        Return True
                    Case TypeCode.Double
                        Return True
                    Case Else
                        Return False
                End Select
            End If ' Possible
 conversions from Int32 follow.
            If typeCode1 = TypeCode.Int32 Then
                Select Case typeCode2
                    Case TypeCode.Int64
                        Return True
                    Case TypeCode.Single
                        Return True
                    Case TypeCode.Double
                        Return True
                    Case Else
                        Return False
                End Select
            End If ' Possible
 conversions from UInt64 follow.
            If typeCode1 = TypeCode.UInt64 Then
                Select Case typeCode2
                    Case TypeCode.Single
                        Return True
                    Case TypeCode.Double
                        Return True
                    Case Else
                        Return False
                End Select
            End If ' Possible
 conversions from Int64 follow.
            If typeCode1 = TypeCode.Int64 Then
                Select Case typeCode2
                    Case TypeCode.Single
                        Return True
                    Case TypeCode.Double
                        Return True
                    Case Else
                        Return False
                End Select
            End If ' Possible
 conversions from Single follow.
            If typeCode1 = TypeCode.Single Then
                Select Case typeCode2
                    Case TypeCode.Double
                        Return True
                    Case Else
                        Return False
                End Select
            End If
        End If
        Return False
    End Function 'CanConvertFrom
End Class 'MyBinder


Public Class MyClass1
    Public myFieldB As Short
    Public myFieldA As Integer

    Public Overloads Sub
 MyMethod(ByVal i As Long,
 ByVal k As Char)
        Console.WriteLine(ControlChars.NewLine & "This is
 MyMethod(long i, char k).")
    End Sub 'MyMethod

    Public Overloads Sub
 MyMethod(ByVal i As Long,
 ByVal j As Long)
        Console.WriteLine(ControlChars.NewLine & "This is
 MyMethod(long i, long j).")
    End Sub 'MyMethod
End Class 'MyClass1


Public Class Binder_Example
    Public Shared Sub Main()
        ' Get the type of MyClass1.
        Dim myType As Type = GetType(MyClass1)
        ' Get the instance of MyClass1.
        Dim myInstance As New
 MyClass1()
        Console.WriteLine(ControlChars.Cr & "Displaying the
 results of using the MyBinder binder.")
        Console.WriteLine()
        ' Get the method information for MyMethod.
        Dim myMethod As MethodInfo = myType.GetMethod("MyMethod",
 BindingFlags.Public Or BindingFlags.Instance, New
 MyBinder(), New Type() {GetType(Short), GetType(Short)}, Nothing)
        Console.WriteLine(MyMethod)
        ' Invoke MyMethod.
        myMethod.Invoke(myInstance, BindingFlags.InvokeMethod, New
 MyBinder(), New [Object]() {CInt(32), CInt(32)}, CultureInfo.CurrentCulture)
    End Sub 'Main
End Class 'Binder_Example
using System;
using System.Reflection;
using System.Globalization;

public class MyBinder : Binder 
{
    public MyBinder() : base()
    {
    }
    private class BinderState
    {
        public object[] args;
    }
    public override FieldInfo BindToField(
        BindingFlags bindingAttr,
        FieldInfo[] match,
        object value,
        CultureInfo culture
        )
    {
        if(match == null)
            throw new ArgumentNullException("match");
        // Get a field for which the value parameter can be converted
 to the specified field type.
        for(int i = 0; i < match.Length;
 i++)
            if(ChangeType(value, match[i].FieldType, culture)
 != null)
                return match[i];
        return null;
    }
    public override MethodBase BindToMethod(
        BindingFlags bindingAttr,
        MethodBase[] match,
        ref object[] args,
        ParameterModifier[] modifiers,
        CultureInfo culture,
        string[] names,
        out object state
        )
    {
        // Store the arguments to the method in a state object.
        BinderState myBinderState = new BinderState();
        object[] arguments = new Object[args.Length];
        args.CopyTo(arguments, 0);
        myBinderState.args = arguments;
        state = myBinderState;
        if(match == null)
            throw new ArgumentNullException();
        // Find a method that has the same parameters as those of the
 args parameter.
        for(int i = 0; i < match.Length;
 i++)
        {
            // Count the number of parameters that match.
            int count = 0;
            ParameterInfo[] parameters = match[i].GetParameters();
            // Go on to the next method if the number of parameters
 do not match.
            if(args.Length != parameters.Length)
                continue;
            // Match each of the parameters that the user expects the
 method to have.
            for(int j = 0; j < args.Length;
 j++)
            {
                // If the names parameter is not null, then reorder
 args.
                if(names != null)
                {
                    if(names.Length != args.Length)
                        throw new ArgumentException("names
 and args must have the same number of elements.");
                    for(int k = 0; k < names.Length;
 k++)
                        if(String.Compare(parameters[j].Name,
 names[k].ToString()) == 0)
                            args[j] = myBinderState.args[k];
                }
                // Determine whether the types specified by the user
 can be converted to the parameter type.
                if(ChangeType(args[j], parameters[j].ParameterType,
 culture) != null)
                    count += 1;
                else
                    break;
            }
            // Determine whether the method has been found.
            if(count == args.Length)
                return match[i];
        }
        return null;
    }
    public override object ChangeType(
        object value,
        Type myChangeType,
        CultureInfo culture
        )
    {
        // Determine whether the value parameter can be converted to
 a value of type myType.
        if(CanConvertFrom(value.GetType(), myChangeType))
            // Return the converted object.
            return Convert.ChangeType(value, myChangeType);
        else
            // Return null.
            return null;
    }
    public override void ReorderArgumentArray(
        ref object[] args,
        object state
        )
    {
        // Return the args that had been reordered by BindToMethod.
        ((BinderState)state).args.CopyTo(args, 0);
    }
    public override MethodBase SelectMethod(
        BindingFlags bindingAttr,
        MethodBase[] match,
        Type[] types,
        ParameterModifier[] modifiers
        )
    {
        if(match == null)
            throw new ArgumentNullException("match");
        for(int i = 0; i < match.Length;
 i++)
        {
            // Count the number of parameters that match.
            int count = 0; 
            ParameterInfo[] parameters = match[i].GetParameters();
            // Go on to the next method if the number of parameters
 do not match.
            if(types.Length != parameters.Length)
                continue;
            // Match each of the parameters that the user expects the
 method to have.
            for(int j = 0; j < types.Length;
 j++)
                // Determine whether the types specified by the user
 can be converted to parameter type.
                if(CanConvertFrom(types[j], parameters[j].ParameterType))
                    count += 1;
                else
                    break;
            // Determine whether the method has been found.
            if(count == types.Length)
                return match[i];
        }
        return null;
    }
    public override PropertyInfo SelectProperty(
        BindingFlags bindingAttr,
        PropertyInfo[] match,
        Type returnType,
        Type[] indexes,
        ParameterModifier[] modifiers
        )
    {
        if(match == null)
            throw new ArgumentNullException("match");
        for(int i = 0; i < match.Length;
 i++)
        {
            // Count the number of indexes that match.
            int count = 0;
            ParameterInfo[] parameters = match[i].GetIndexParameters();
            // Go on to the next property if the number of indexes do
 not match.
            if(indexes.Length != parameters.Length)
                continue;
            // Match each of the indexes that the user expects the property
 to have.
            for(int j = 0; j < indexes.Length;
 j++)
                // Determine whether the types specified by the user
 can be converted to index type.
                if(CanConvertFrom(indexes[j], parameters[j].ParameterType))
                    count += 1;
                else
                    break;
            // Determine whether the property has been found.
            if(count == indexes.Length)
                // Determine whether the return type can be converted
 to the properties type.
                if(CanConvertFrom(returnType, match[i].GetType()))
                    return match[i];
                else
                    continue;
        }
        return null;
    }
    // Determines whether type1 can be converted to type2. Check only
 for primitive types.
    private bool CanConvertFrom(Type type1,
 Type type2)
    {
        if(type1.IsPrimitive && type2.IsPrimitive)
        {
            TypeCode typeCode1 = Type.GetTypeCode(type1);
            TypeCode typeCode2 = Type.GetTypeCode(type2);
            // If both type1 and type2 have the same type, return true.
            if(typeCode1 == typeCode2)
                return true;
            // Possible conversions from Char follow.
            if(typeCode1 == TypeCode.Char)
                switch(typeCode2)
                {
                    case TypeCode.UInt16 : return
 true;
                    case TypeCode.UInt32 : return
 true;
                    case TypeCode.Int32  : return
 true;
                    case TypeCode.UInt64 : return
 true;
                    case TypeCode.Int64  : return
 true;
                    case TypeCode.Single : return
 true;
                    case TypeCode.Double : return
 true;
                    default              : return
 false;
                }
            // Possible conversions from Byte follow.
            if(typeCode1 == TypeCode.Byte)
                switch(typeCode2)
                {
                    case TypeCode.Char   : return
 true;
                    case TypeCode.UInt16 : return
 true;
                    case TypeCode.Int16  : return
 true;
                    case TypeCode.UInt32 : return
 true;
                    case TypeCode.Int32  : return
 true;
                    case TypeCode.UInt64 : return
 true;
                    case TypeCode.Int64  : return
 true;
                    case TypeCode.Single : return
 true;
                    case TypeCode.Double : return
 true;
                    default              : return
 false;
                }
            // Possible conversions from SByte follow.
            if(typeCode1 == TypeCode.SByte)
                switch(typeCode2)
                {
                    case TypeCode.Int16  : return
 true;
                    case TypeCode.Int32  : return
 true;
                    case TypeCode.Int64  : return
 true;
                    case TypeCode.Single : return
 true;
                    case TypeCode.Double : return
 true;
                    default              : return
 false;
                }
            // Possible conversions from UInt16 follow.
            if(typeCode1 == TypeCode.UInt16)
                switch(typeCode2)
                {
                    case TypeCode.UInt32 : return
 true;
                    case TypeCode.Int32  : return
 true;
                    case TypeCode.UInt64 : return
 true;
                    case TypeCode.Int64  : return
 true;
                    case TypeCode.Single : return
 true;
                    case TypeCode.Double : return
 true;
                    default              : return
 false;
                }
            // Possible conversions from Int16 follow.
            if(typeCode1 == TypeCode.Int16)
                switch(typeCode2)
                {
                    case TypeCode.Int32  : return
 true;
                    case TypeCode.Int64  : return
 true;
                    case TypeCode.Single : return
 true;
                    case TypeCode.Double : return
 true;
                    default              : return
 false;
                }
            // Possible conversions from UInt32 follow.
            if(typeCode1 == TypeCode.UInt32)
                switch(typeCode2)
                {
                    case TypeCode.UInt64 : return
 true;
                    case TypeCode.Int64  : return
 true;
                    case TypeCode.Single : return
 true;
                    case TypeCode.Double : return
 true;
                    default              : return
 false;
                }
            // Possible conversions from Int32 follow.
            if(typeCode1 == TypeCode.Int32)
                switch(typeCode2)
                {
                    case TypeCode.Int64  : return
 true;
                    case TypeCode.Single : return
 true;
                    case TypeCode.Double : return
 true;
                    default              : return
 false;
                }
            // Possible conversions from UInt64 follow.
            if(typeCode1 == TypeCode.UInt64)
                switch(typeCode2)
                {
                    case TypeCode.Single : return
 true;
                    case TypeCode.Double : return
 true;
                    default              : return
 false;
                }
            // Possible conversions from Int64 follow.
            if(typeCode1 == TypeCode.Int64)
                switch(typeCode2)
                {
                    case TypeCode.Single : return
 true;
                    case TypeCode.Double : return
 true;
                    default              : return
 false;
                }
            // Possible conversions from Single follow.
            if(typeCode1 == TypeCode.Single)
                switch(typeCode2)
                {
                    case TypeCode.Double : return
 true;
                    default              : return
 false;
                }
        }
        return false;
    }
}
public class MyClass1
{
    public short myFieldB;
    public int myFieldA; 
    public void MyMethod(long i, char
 k)
    {
        Console.WriteLine("\nThis is MyMethod(long i, char
 k)");
    }
    public void MyMethod(long i, long j)
    {
        Console.WriteLine("\nThis is MyMethod(long i, long j)");
    }
}
public class Binder_Example
{
    public static void Main()
    {
        // Get the type of MyClass1.
        Type myType = typeof(MyClass1);
        // Get the instance of MyClass1.
        MyClass1 myInstance = new MyClass1();
        Console.WriteLine("\nDisplaying the results of using
 the MyBinder binder.\n");
        // Get the method information for MyMethod.
        MethodInfo myMethod = myType.GetMethod("MyMethod", BindingFlags.Public
 | BindingFlags.Instance,
            new MyBinder(), new Type[] {typeof(short),
 typeof(short)}, null);
        Console.WriteLine(myMethod);
        // Invoke MyMethod.
        myMethod.Invoke(myInstance, BindingFlags.InvokeMethod, new
 MyBinder(), new Object[] {(int)32, (int)32},
 CultureInfo.CurrentCulture);
    }
}
using namespace System;
using namespace System::Reflection;
using namespace System::Globalization;
using namespace System::Runtime::InteropServices;
public ref class MyBinder: public
 Binder
{
public:
   MyBinder()
      : Binder()
   {}

private:
   ref class BinderState
   {
   public:
      array<Object^>^args;
   };

public:
   virtual FieldInfo^ BindToField( BindingFlags bindingAttr, array<FieldInfo^>^match,
 Object^ value, CultureInfo^ culture ) override
   {
      if ( match == nullptr )
            throw gcnew ArgumentNullException( "match" );

      // Get a field for which the value parameter can be converted
 to the specified field type.
      for ( int i = 0; i < match->Length;
 i++ )
         if ( ChangeType( value, match[ i ]->FieldType, culture
 ) != nullptr )
                  return match[ i ];

      return nullptr;
   }

   virtual MethodBase^ BindToMethod( BindingFlags bindingAttr, array<MethodBase^>^match,
 array<Object^>^%args, array<ParameterModifier>^ modifiers, CultureInfo^
 culture, array<String^>^names, [Out]Object^% state ) override
   {
      // Store the arguments to the method in a state Object*.
      BinderState^ myBinderState = gcnew BinderState;
      array<Object^>^arguments = gcnew array<Object^>(args->Length);
      args->CopyTo( arguments, 0 );
      myBinderState->args = arguments;
      state = myBinderState;
      if ( match == nullptr )
            throw gcnew ArgumentNullException;

      // Find a method that has the same parameters as those of the
 args parameter.
      for ( int i = 0; i < match->Length;
 i++ )
      {
         // Count the number of parameters that match.
         int count = 0;
         array<ParameterInfo^>^parameters = match[ i ]->GetParameters();

         // Go on to the next method if the number of parameters do
 not match.
         if ( args->Length != parameters->Length )
                  continue;

         // Match each of the parameters that the user expects the method
 to have.
         for ( int j = 0; j < args->Length;
 j++ )
         {
            // If the names parameter is not 0, then reorder args.
            if ( names != nullptr )
            {
               if ( names->Length != args->Length )
                              throw gcnew ArgumentException( "names and args
 must have the same number of elements." );

               for ( int k = 0; k < names->Length;
 k++ )
                  if ( String::Compare( parameters[ j ]->Name,
 names[ k ] ) == 0 )
                                    args[ j ] = myBinderState->args[ k ];
            }

            // Determine whether the types specified by the user can
 be converted to the parameter type.
            if ( ChangeType( args[ j ], parameters[ j ]->ParameterType,
 culture ) != nullptr )
                        count += 1;
            else
                        break;
         }
         if ( count == args->Length )
                  return match[ i ];
      }
      return nullptr;
   }

   virtual Object^ ChangeType( Object^ value, Type^ myChangeType, CultureInfo^ culture
 ) override
   {
      // Determine whether the value parameter can be converted to a
 value of type myType.
      if ( CanConvertFrom( value->GetType(), myChangeType )
 )

      // Return the converted Object*.
      return Convert::ChangeType( value, myChangeType ); //
 Return 0.
      else
            0;
   }

   virtual void ReorderArgumentArray( array<Object^>^%args,
 Object^ state ) override
   {
      // Return the args that had been reordered by BindToMethod.
      (safe_cast<BinderState^>(state))->args->CopyTo( args, 0 );
   }

   virtual MethodBase^ SelectMethod( BindingFlags bindingAttr, array<MethodBase^>^match,
 array<Type^>^types, array<ParameterModifier>^ modifiers ) override
   {
      if ( match == nullptr )
            throw gcnew ArgumentNullException( "match" );

      for ( int i = 0; i < match->Length;
 i++ )
      {
         // Count the number of parameters that match.
         int count = 0;
         array<ParameterInfo^>^parameters = match[ i ]->GetParameters();

         // Go on to the next method if the number of parameters do
 not match.
         if ( types->Length != parameters->Length )
                  continue;

         // Match each of the parameters that the user expects the method
 to have.
         for ( int j = 0; j < types->Length;
 j++ )

            // Determine whether the types specified by the user can
 be converted to parameter type.
            if ( CanConvertFrom( types[ j ], parameters[ j ]->ParameterType
 ) )
                        count += 1;
            else
                        break;

         // Determine whether the method has been found.
         if ( count == types->Length )
                  return match[ i ];
      }
      return nullptr;
   }

   virtual PropertyInfo^ SelectProperty( BindingFlags bindingAttr, array<PropertyInfo^>^match,
 Type^ returnType, array<Type^>^indexes, array<ParameterModifier>^ modifiers
 ) override
   {
      if ( match == nullptr )
            throw gcnew ArgumentNullException( "match" );

      for ( int i = 0; i < match->Length;
 i++ )
      {
         // Count the number of indexes that match.
         int count = 0;
         array<ParameterInfo^>^parameters = match[ i ]->GetIndexParameters();

         // Go on to the next property if the number of indexes do not
 match.
         if ( indexes->Length != parameters->Length )
                  continue;

         // Match each of the indexes that the user expects the property
 to have.
         for ( int j = 0; j < indexes->Length;
 j++ )
            // Determine whether the types specified by the user can
 be converted to index type.
            if ( CanConvertFrom( indexes[ j ], parameters[ j ]->ParameterType
 ) )
                        count += 1;
            else
                        break;

         // Determine whether the property has been found.
         if ( count == indexes->Length )

         // Determine whether the return type can be converted to the
 properties type.
         if ( CanConvertFrom( returnType, match[ i ]->GetType()
 ) )
                  return match[ i ];
         else
                  continue;
      }
      return nullptr;
   }

private:

   // Determines whether type1 can be converted to type2. Check only
 for primitive types.
   bool CanConvertFrom( Type^ type1, Type^ type2 )
   {
      if ( type1->IsPrimitive && type2->IsPrimitive
 )
      {
         TypeCode typeCode1 = Type::GetTypeCode( type1 );
         TypeCode typeCode2 = Type::GetTypeCode( type2 );

         // If both type1 and type2 have the same type, return true.
         if ( typeCode1 == typeCode2 )
                  return true;

         // Possible conversions from Char follow.
         if ( typeCode1 == TypeCode::Char )
         {
            switch ( typeCode2 )
            {
               case TypeCode::UInt16:
                  return true;

               case TypeCode::UInt32:
                  return true;

               case TypeCode::Int32:
                  return true;

               case TypeCode::UInt64:
                  return true;

               case TypeCode::Int64:
                  return true;

               case TypeCode::Single:
                  return true;

               case TypeCode::Double:
                  return true;

               default:
                  return false;
            }
         }

         // Possible conversions from Byte follow.
         if ( typeCode1 == TypeCode::Byte )
         {
            switch ( typeCode2 )
            {
               case TypeCode::Char:
                  return true;

               case TypeCode::UInt16:
                  return true;

               case TypeCode::Int16:
                  return true;

               case TypeCode::UInt32:
                  return true;

               case TypeCode::Int32:
                  return true;

               case TypeCode::UInt64:
                  return true;

               case TypeCode::Int64:
                  return true;

               case TypeCode::Single:
                  return true;

               case TypeCode::Double:
                  return true;

               default:
                  return false;
            }
         }

         // Possible conversions from SByte follow.
         if ( typeCode1 == TypeCode::SByte )
         {
            switch ( typeCode2 )
            {
               case TypeCode::Int16:
                  return true;

               case TypeCode::Int32:
                  return true;

               case TypeCode::Int64:
                  return true;

               case TypeCode::Single:
                  return true;

               case TypeCode::Double:
                  return true;

               default:
                  return false;
            }
         }

         // Possible conversions from UInt16 follow.
         if ( typeCode1 == TypeCode::UInt16 )
         {
            switch ( typeCode2 )
            {
               case TypeCode::UInt32:
                  return true;

               case TypeCode::Int32:
                  return true;

               case TypeCode::UInt64:
                  return true;

               case TypeCode::Int64:
                  return true;

               case TypeCode::Single:
                  return true;

               case TypeCode::Double:
                  return true;

               default:
                  return false;
            }
         }

         // Possible conversions from Int16 follow.
         if ( typeCode1 == TypeCode::Int16 )
         {
            switch ( typeCode2 )
            {
               case TypeCode::Int32:
                  return true;

               case TypeCode::Int64:
                  return true;

               case TypeCode::Single:
                  return true;

               case TypeCode::Double:
                  return true;

               default:
                  return false;
            }
         }

         // Possible conversions from UInt32 follow.
         if ( typeCode1 == TypeCode::UInt32 )
         {
            switch ( typeCode2 )
            {
               case TypeCode::UInt64:
                  return true;

               case TypeCode::Int64:
                  return true;

               case TypeCode::Single:
                  return true;

               case TypeCode::Double:
                  return true;

               default:
                  return false;
            }
         }

         // Possible conversions from Int32 follow.
         if ( typeCode1 == TypeCode::Int32 )
         {
            switch ( typeCode2 )
            {
               case TypeCode::Int64:
                  return true;

               case TypeCode::Single:
                  return true;

               case TypeCode::Double:
                  return true;

               default:
                  return false;
            }
         }

         // Possible conversions from UInt64 follow.
         if ( typeCode1 == TypeCode::UInt64 )
         {
            switch ( typeCode2 )
            {
               case TypeCode::Single:
                  return true;

               case TypeCode::Double:
                  return true;

               default:
                  return false;
            }
         }

         // Possible conversions from Int64 follow.
         if ( typeCode1 == TypeCode::Int64 )
         {
            switch ( typeCode2 )
            {
               case TypeCode::Single:
                  return true;

               case TypeCode::Double:
                  return true;

               default:
                  return false;
            }
         }

         // Possible conversions from Single follow.
         if ( typeCode1 == TypeCode::Single )
         {
            switch ( typeCode2 )
            {
               case TypeCode::Double:
                  return true;

               default:
                  return false;
            }
         }
      }

      return false;
   }

};

public ref class MyClass1
{
public:
   short myFieldB;
   int myFieldA;
   void MyMethod( long i, char k )
   {
      Console::WriteLine( "\nThis is MyMethod(long i, char
 k)" );
   }

   void MyMethod( long i, long j )
   {
      Console::WriteLine( "\nThis is MyMethod(long i, long j)" );
   }
};

int main()
{
   // Get the type of MyClass1.
   Type^ myType = MyClass1::typeid;

   // Get the instance of MyClass1.
   MyClass1^ myInstance = gcnew MyClass1;
   Console::WriteLine( "\nDisplaying the results of using
 the MyBinder binder.\n" );

   // Get the method information for MyMethod.
   array<Type^>^types = {short::typeid,short::typeid};
   MethodInfo^ myMethod = myType->GetMethod( "MyMethod", static_cast<BindingFlags>(BindingFlags::Public
 | BindingFlags::Instance), gcnew MyBinder, types, nullptr );
   Console::WriteLine( myMethod );

   // Invoke MyMethod.
   array<Object^>^obj = {32,32};
   myMethod->Invoke( myInstance, BindingFlags::InvokeMethod, gcnew MyBinder, obj,
 CultureInfo::CurrentCulture );
}
import System.*;
import System.Reflection.*;
import System.Globalization.*;

public class MyBinder extends Binder
{
    public MyBinder()
    {
    } //MyBinder

    private class BinderState
    {
        public Object args[];
    } //BinderState

    public FieldInfo BindToField(BindingFlags bindingAttr, FieldInfo
 match[], 
        Object value, CultureInfo culture)
    {
        if (match == null) {
            throw new ArgumentNullException("match");
        }

        // Get a field for which the value parameter can be converted
 
        // to the specified field type.
        for (int i = 0; i < match.length;
 i++) {
            if (ChangeType(value, 
                ((FieldInfo)match.get_Item(i)).get_FieldType(), culture) 
                != null) {
                return (FieldInfo)match.get_Item(i);
            }
        }

        return null;
    } //BindToField

    public MethodBase BindToMethod(BindingFlags bindingAttr, MethodBase
 match[],
        /**@ref
         */
        Object args[], ParameterModifier modifiers[], CultureInfo culture, 
        String names[],
        /**@ref
         */ Object state)
    {
        // Store the arguments to the method in a state object.
        BinderState myBinderState = new BinderState();
        Object arguments[] = new Object[args.length];

        args.CopyTo(arguments, 0);
        myBinderState.args = arguments;
        state = myBinderState;
        if (match == null) {
            throw new ArgumentNullException();
        }

        // Find a method that has the same parameters as those of the
 
        // args parameter.
        for (int i = 0; i < match.length;
 i++) {
            // Count the number of parameters that match.
            int count = 0;
            ParameterInfo parameters[] = ((MethodBase)match.get_Item(i)).
                GetParameters();

            // Go on to the next method if the number of 
            // parameters do not match.
            if (args.length != parameters.length) {
                continue;
            }

            // Match each of the parameters that the user expects 
            // the method to have.
            for (int j = 0; j < args.length;
 j++) {
                // If the names parameter is not null, then reorder
 args.
                if (names != null) {
                    if (names.length != args.length) {
                        throw new ArgumentException("names
 and args must have "
                            + "the same number of elements.");
                    }

                    for (int k = 0; k <
 names.length; k++) {
                        if (String.Compare(((ParameterInfo)parameters.
                            get_Item(j)).get_Name(), 
                            names.get_Item(k).ToString()) == 0) {

                            args[j] = myBinderState.args.get_Item(k);
                        }
                    }
                }

                // Determine whether the types specified by the user
 can be 
                // converted to the parameter type.
                if (ChangeType(args[j], ((ParameterInfo)parameters.get_Item(j)).
                    get_ParameterType(), culture) != null) {
                    count += 1;
                }
                else {
                    break;
                }
            }  
            // Determine whether the method has been found.
            if (count == args.length) {
                return (MethodBase)match.get_Item(i);
            }
        }
        return null;
    } //BindToMethod

    public Object ChangeType(Object value, Type myChangeType,
 
        CultureInfo culture)
    {
        // Determine whether the value parameter can be converted to
 a 
        // value of type myType.
        if (CanConvertFrom(value.GetType(), myChangeType)) {
            // Return the converted object.
            return Convert.ChangeType(value, myChangeType);
        }
        else {
            // Return null.
            return null;
        }
    } //ChangeType

    public void ReorderArgumentArray(
        /**@ref
         */Object args[], Object state)
    {
        // Return the args that had been reordered by BindToMethod.
        ((BinderState)state).args.CopyTo(args, 0);
    } //ReorderArgumentArray


    public MethodBase SelectMethod(BindingFlags bindingAttr, MethodBase
 match[], 
        Type types[], ParameterModifier modifiers[])
    {
        if (match == null) {
            throw new ArgumentNullException("match");
        }

        for (int i = 0; i < match.length;
 i++) {
            // Count the number of parameters that match.
            int count = 0;
            ParameterInfo parameters[] = ((MethodBase)match.get_Item(i)).
                GetParameters();

            // Go on to the next method if the number of parameters
 
            // do not match.
            if (types.length != parameters.length) {
                continue;
            }

            // Match each of the parameters that the user expects 
            // the method  to have.
            for (int j = 0; j < types.length;
 j++) {
                // Determine whether the types specified by the user
 can be 
                // converted to parameter type.
                if (CanConvertFrom((Type)types.get_Item(j), 
                    ((ParameterInfo)parameters.get_Item(j)).
                    get_ParameterType())) {

                    count += 1;
                }
                else {
                    break;
                } 
            }
            // Determine whether the method has been found.
            if (count == types.length) {
                return (MethodBase)match.get_Item(i);
            }
        }

        return null;
    } //SelectMethod

    public PropertyInfo SelectProperty(BindingFlags bindingAttr,
 
        PropertyInfo match[], Type returnType, Type indexes[], 
        ParameterModifier modifiers[])
    {
        if (match == null) {
            throw new ArgumentNullException("match");
        }

        for (int i = 0; i < match.length;
 i++) {
            // Count the number of indexes that match.
            int count = 0;
            ParameterInfo parameters[] = ((PropertyInfo)match.get_Item(i)).
                GetIndexParameters();

            // Go on to the next property if the number of indexes do
 not match.
            if (indexes.length != parameters.length) {
                continue;
            }

            // Match each of the indexes that the user expects 
            // the property to have.
            for (int j = 0; j < indexes.length;
 j++) {
                // Determine whether the types specified by the user
 
                // can be converted to index type.
                if (CanConvertFrom((Type)indexes.get_Item(j),
 
                    ((ParameterInfo)parameters.get_Item(j)).
                    get_ParameterType())) {

                    count += 1;
                }
                else {
                    break;
                } 
            }
            // Determine whether the property has been found.
            if (count == indexes.length) {
                // Determine whether the return type can be converted
 
                // to the properties type.
                if (CanConvertFrom(returnType, match.get_Item(i).GetType()))
 {
                    return (PropertyInfo)match.get_Item(i);
                }
                else {
                    continue;
                }
            }
        }
        return null;
    } //SelectProperty

    // Determines whether type1 can be converted to type2. 
    // Check only for primitive types.
    private boolean CanConvertFrom(Type type1, Type type2)
    {
        if (type1.get_IsPrimitive() && type2.get_IsPrimitive())
 {
            TypeCode typeCode1 = Type.GetTypeCode(type1);
            TypeCode typeCode2 = Type.GetTypeCode(type2);

            // If both type1 and type2 have the same type, return true.
            if (typeCode1.Equals(typeCode2)) {
                return true;
            }

            // Possible conversions from Char follow.
            if (typeCode1.Equals(TypeCode.Char)) {
                switch (typeCode2) {
                    case TypeCode.UInt16 :
                        return true;
                    case TypeCode.UInt32 : 
                        return true;
                    case TypeCode.Int32  : 
                        return true;
                    case TypeCode.UInt64 : 
                        return true;
                    case TypeCode.Int64  : 
                        return true;
                    case TypeCode.Single : 
                        return true;
                    case TypeCode.Double : 
                        return true;
                    default : 
                        return false;
                }
            }

            // Possible conversions from Byte follow.
            if (typeCode1.Equals(TypeCode.Byte)) {
                switch (typeCode2) {
                    case TypeCode.Char   : 
                        return true;
                    case TypeCode.UInt16 : 
                        return true;
                    case TypeCode.Int16  : 
                        return true;
                    case TypeCode.UInt32 : 
                        return true;
                    case TypeCode.Int32  : 
                        return true;
                    case TypeCode.UInt64 :
                        return true;
                    case TypeCode.Int64  :
                        return true;
                    case TypeCode.Single : 
                        return true;
                    case TypeCode.Double : 
                        return true;
                    default : 
                        return false;
                }
            }

            // Possible conversions from SByte follow.
            if (typeCode1.Equals(TypeCode.SByte)) {
                switch (typeCode2) {
                    case TypeCode.Int16  : 
                        return true;
                    case TypeCode.Int32  : 
                        return true;
                    case TypeCode.Int64  : 
                        return true;
                    case TypeCode.Single : 
                        return true;
                    case TypeCode.Double : 
                        return true;
                    default : 
                        return false;
                }
            }

            // Possible conversions from UInt16 follow.
            if (typeCode1.Equals(TypeCode.UInt16)) {
                switch (typeCode2) {
                    case TypeCode.UInt32 : 
                        return true;
                    case TypeCode.Int32  : 
                        return true;
                    case TypeCode.UInt64 : 
                        return true;
                    case TypeCode.Int64  : 
                        return true;
                    case TypeCode.Single : 
                        return true;
                    case TypeCode.Double : 
                        return true;
                    default : 
                        return false;
                }
            }

            // Possible conversions from Int16 follow.
            if (typeCode1.Equals(TypeCode.Int16)) {
                switch (typeCode2) {
                    case TypeCode.Int32  : 
                        return true;
                    case TypeCode.Int64  : 
                        return true;
                    case TypeCode.Single : 
                        return true;
                    case TypeCode.Double : 
                        return true;
                    default : 
                        return false;
                }
            }

            // Possible conversions from UInt32 follow.
            if (typeCode1.Equals(TypeCode.UInt32)) {
                switch (typeCode2) {
                    case TypeCode.UInt64 : 
                        return true;
                    case TypeCode.Int64  : 
                        return true;
                    case TypeCode.Single : 
                        return true;
                    case TypeCode.Double : 
                        return true;
                    default : 
                        return false;
                }
            }

            // Possible conversions from Int32 follow.
            if (typeCode1.Equals(TypeCode.Int32)) {
                switch (typeCode2) {
                    case TypeCode.Int64  : 
                        return true;
                    case TypeCode.Single : 
                        return true;
                    case TypeCode.Double : 
                        return true;
                    default : 
                        return false;
                }
            }

            // Possible conversions from UInt64 follow.
            if (typeCode1.Equals(TypeCode.UInt64)) {
                switch (typeCode2) {
                    case TypeCode.Single : 
                        return true;
                    case TypeCode.Double : 
                        return true;
                    default : 
                        return false;
                }
            }

            // Possible conversions from Int64 follow.
            if (typeCode1.Equals(TypeCode.Int64)) {
                switch (typeCode2) {
                    case TypeCode.Single : 
                        return true;
                    case TypeCode.Double : 
                        return true;
                    default : 
                        return false;
                }
            }

            // Possible conversions from Single follow.
            if (typeCode1.Equals(TypeCode.Single)) {
                switch (typeCode2) {
                    case TypeCode.Double : 
                        return true;
                    default : 
                        return false;
                }
            }
        }
        return false;
    } //CanConvertFrom
} //MyBinder

public class MyClass1
{
    public short myFieldB;
    public int myFieldA;

    public void MyMethod(long i, char
 k)
    {
        Console.WriteLine("\nThis is MyMethod(long i, char
 k)");
    } //MyMethod

    public void MyMethod(long i, long j)
    {
        Console.WriteLine("\nThis is MyMethod(long i, long j)");
    } //MyMethod
} //MyClass1

public class BinderExample
{
    public static void main(String[]
 args)
    {
        // Get the type of MyClass1.
        Type myType = MyClass1.class.ToType();

        // Get the instance of MyClass1.
        MyClass1 myInstance = new MyClass1();

        Console.WriteLine("\nDisplaying the results of using
 the "
            + "MyBinder binder.\n");

        // Get the method information for MyMethod.
        MethodInfo myMethod = myType.GetMethod("MyMethod", 
            BindingFlags.Public | BindingFlags.Instance, new MyBinder(),
 
            new Type[] { short.class.ToType(),
 short.class.ToType() }, null);
        Console.WriteLine(myMethod);

        // Invoke MyMethod.
        myMethod.Invoke(myInstance, BindingFlags.InvokeMethod, new
 MyBinder(),
            new Object[] { (Int32)32, (Int32)32 }, 
            CultureInfo.get_CurrentCulture());
    } //main
} //BinderExample
継承階層継承階層
System.Object
  System.Reflection.Binder
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Binder コンストラクタ


Binder メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド BindToField 指定されている一連のフィールドから、指定され基準基づいてフィールド選択します
パブリック メソッド BindToMethod 指定されている一連のメソッドから、実引数基づいて呼び出すメソッド選択します
パブリック メソッド ChangeType 指定されているオブジェクトの型を特定の型に変更します
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 ( Object から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 ( Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド ReorderArgumentArray BindToMethod から制御戻ったときに、args 引数BindToMethod から返され時点の値に復元します。
パブリック メソッド SelectMethod 指定されている一連のメソッドから、引数の型に基づいてメソッド選択します
パブリック メソッド SelectProperty 指定されている一連のプロパティから、指定され基準基づいてプロパティ選択します
パブリック メソッド ToString  現在の Object を表す String返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

Binder メンバ

メンバ候補リストからメンバ選択し実引数の型から仮引数の型への型変換実行します

Binder データ型公開されるメンバを以下の表に示します


プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド Binder  
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド BindToField 指定されている一連のフィールドから、指定され基準基づいてフィールド選択します
パブリック メソッド BindToMethod 指定されている一連のメソッドから、実引数基づいて呼び出すメソッド選択します
パブリック メソッド ChangeType 指定されているオブジェクトの型を特定の型に変更します
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 (Object から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 (Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド ReorderArgumentArray BindToMethod から制御戻ったときに、args 引数BindToMethod から返され時点の値に復元します。
パブリック メソッド SelectMethod 指定されている一連のメソッドから、引数の型に基づいてメソッド選択します
パブリック メソッド SelectProperty 指定されている一連のプロパティから、指定され基準基づいてプロパティ選択します
パブリック メソッド ToString  現在の Object を表す String返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

結合剤

【英】binder

粉末成形体強度高めるため添加する有機物あるいは無機物。たとえば,固体潤滑剤被膜(乾燥被膜)に用いる結合剤は固体潤滑剤粉末間の接着性固体潤滑剤下地との付着性高める。
その他、潤滑剤やメンテナンス用品、作業環境保護など工場・現場が必要としている商品や供給会社に関する情報については、「ジュンツウネット21」で見ることができます。 ⇒ 「ジュンツウネット21」

Binder

名前 バインダー; ビンダー

バインダー

(Binder から転送)

出典: フリー百科事典『ウィキペディア(Wikipedia)』 (2022/06/09 02:36 UTC 版)

バインダー: binder発音/ˈbaɪndə:/))




「バインダー」の続きの解説一覧

Binder

出典: フリー百科事典『ウィキペディア(Wikipedia)』 (2021/03/07 02:33 UTC 版)

Microsoft Office ツール」の記事における「Binder」の解説

Microsoft Binderは 、もともとMicrosoft Office 95972000含まれていたアプリケーションで、異な種類OLE 2.0オブジェクト例えば、文書スプレッドシートプレゼンテーションプロジェクト)を1つファイルにまとめることができた。Office 2000廃止された。 Microsoft Binderのファイル名拡張子は.OBD、Office Binderテンプレート形式は.OBTだった。 Microsoft Office Binder Wizardは、拡張子.OBZであった。 Binderファイルは、アドインインストールすることでOffice 2003までは開くことができた。 Office 97 Unbindは、Microsoft Webサイトからダウンロードすることができる。

※この「Binder」の解説は、「Microsoft Office ツール」の解説の一部です。
「Binder」を含む「Microsoft Office ツール」の記事については、「Microsoft Office ツール」の概要を参照ください。

ウィキペディア小見出し辞書の「Binder」の項目はプログラムで機械的に意味や本文を生成しているため、不適切な項目が含まれていることもあります。ご了承くださいませ。 お問い合わせ


英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「Binder」の関連用語

Binderのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Binderのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
実用日本語表現辞典実用日本語表現辞典
Copyright © 2024実用日本語表現辞典 All Rights Reserved.
デジタル大辞泉デジタル大辞泉
(C)Shogakukan Inc.
株式会社 小学館
日本画像学会日本画像学会
Copyright (C) 2024 The Imaging Society of Japan All rights reserved.
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.
鐵鋼スラグ協会鐵鋼スラグ協会
Copyright (C) 2024 Nippon Slag Association All Rights Reserved.
潤滑通信社潤滑通信社
copyright © 潤滑通信社 All Rights Reserved
日外アソシエーツ株式会社日外アソシエーツ株式会社
Copyright (C) 1994- Nichigai Associates, Inc., All rights reserved.
ウィキペディアウィキペディア
All text is available under the terms of the GNU Free Documentation License.
この記事は、ウィキペディアのバインダー (改訂履歴)の記事を複製、再配布したものにあたり、GNU Free Documentation Licenseというライセンスの下で提供されています。 Weblio辞書に掲載されているウィキペディアの記事も、全てGNU Free Documentation Licenseの元に提供されております。
ウィキペディアウィキペディア
Text is available under GNU Free Documentation License (GFDL).
Weblio辞書に掲載されている「ウィキペディア小見出し辞書」の記事は、WikipediaのMicrosoft Office ツール (改訂履歴)の記事を複製、再配布したものにあたり、GNU Free Documentation Licenseというライセンスの下で提供されています。

©2024 GRAS Group, Inc.RSS