C# Класс System.DefaultBinder

Наследование: System.Reflection.Binder
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BindToField ( BindingFlags bindingAttr, FieldInfo match, Object value, System.Globalization.CultureInfo cultureInfo ) : FieldInfo
BindToMethod ( BindingFlags bindingAttr, MethodBase canidates, Object &args, ParameterModifier modifiers, System.Globalization.CultureInfo cultureInfo, String names, Object &state ) : MethodBase
ChangeType ( Object value, Type type, System.Globalization.CultureInfo cultureInfo ) : Object
ExactBinding ( MethodBase match, Type types, ParameterModifier modifiers ) : MethodBase
ExactPropertyBinding ( PropertyInfo match, Type returnType, Type types, ParameterModifier modifiers ) : PropertyInfo
ReorderArgumentArray ( Object &args, Object state ) : void
SelectMethod ( BindingFlags bindingAttr, MethodBase match, Type types, ParameterModifier modifiers ) : MethodBase
SelectProperty ( BindingFlags bindingAttr, PropertyInfo match, Type returnType, Type indexes, ParameterModifier modifiers ) : PropertyInfo

Приватные методы

Метод Описание
CanConvertPrimitive ( RuntimeType source, RuntimeType target ) : bool
CanConvertPrimitiveObjectToType ( Object source, RuntimeType type ) : bool
CompareMethodSigAndName ( MethodBase m1, MethodBase m2 ) : bool
CreateParamOrder ( int paramOrder, ParameterInfo pars, String names ) : bool
FindMostDerivedNewSlotMeth ( MethodBase match, int cMatches ) : MethodBase
FindMostSpecific ( ParameterInfo p1, int paramOrder1, Type paramArrayType1, ParameterInfo p2, int paramOrder2, Type paramArrayType2, Type types, Object args ) : int
FindMostSpecificField ( FieldInfo cur1, FieldInfo cur2 ) : int
FindMostSpecificMethod ( MethodBase m1, int paramOrder1, Type paramArrayType1, MethodBase m2, int paramOrder2, Type paramArrayType2, Type types, Object args ) : int
FindMostSpecificProperty ( PropertyInfo cur1, PropertyInfo cur2 ) : int
FindMostSpecificType ( Type c1, Type c2, Type t ) : int
GetHierarchyDepth ( Type t ) : int
ReorderParams ( int paramOrder, Object vars ) : void

Описание методов

BindToField() публичный метод

public BindToField ( BindingFlags bindingAttr, FieldInfo match, Object value, System.Globalization.CultureInfo cultureInfo ) : FieldInfo
bindingAttr BindingFlags
match System.Reflection.FieldInfo
value Object
cultureInfo System.Globalization.CultureInfo
Результат System.Reflection.FieldInfo

BindToMethod() публичный метод

public BindToMethod ( BindingFlags bindingAttr, MethodBase canidates, Object &args, ParameterModifier modifiers, System.Globalization.CultureInfo cultureInfo, String names, Object &state ) : MethodBase
bindingAttr BindingFlags
canidates System.Reflection.MethodBase
args Object
modifiers System.Reflection.ParameterModifier
cultureInfo System.Globalization.CultureInfo
names String
state Object
Результат System.Reflection.MethodBase

ChangeType() публичный метод

public ChangeType ( Object value, Type type, System.Globalization.CultureInfo cultureInfo ) : Object
value Object
type Type
cultureInfo System.Globalization.CultureInfo
Результат Object

ExactBinding() публичный статический метод

public static ExactBinding ( MethodBase match, Type types, ParameterModifier modifiers ) : MethodBase
match System.Reflection.MethodBase
types Type
modifiers System.Reflection.ParameterModifier
Результат System.Reflection.MethodBase

ExactPropertyBinding() публичный статический метод

public static ExactPropertyBinding ( PropertyInfo match, Type returnType, Type types, ParameterModifier modifiers ) : PropertyInfo
match System.Reflection.PropertyInfo
returnType Type
types Type
modifiers System.Reflection.ParameterModifier
Результат System.Reflection.PropertyInfo

ReorderArgumentArray() публичный метод

public ReorderArgumentArray ( Object &args, Object state ) : void
args Object
state Object
Результат void

SelectMethod() публичный метод

public SelectMethod ( BindingFlags bindingAttr, MethodBase match, Type types, ParameterModifier modifiers ) : MethodBase
bindingAttr BindingFlags
match System.Reflection.MethodBase
types Type
modifiers System.Reflection.ParameterModifier
Результат System.Reflection.MethodBase

SelectProperty() публичный метод

public SelectProperty ( BindingFlags bindingAttr, PropertyInfo match, Type returnType, Type indexes, ParameterModifier modifiers ) : PropertyInfo
bindingAttr BindingFlags
match System.Reflection.PropertyInfo
returnType Type
indexes Type
modifiers System.Reflection.ParameterModifier
Результат System.Reflection.PropertyInfo