C# Class System.Reflection.Binder.Default

Inheritance: Binder
Mostra file Open project: runefs/Marvin

Public Methods

Method Description
BindToField ( BindingFlags bindingAttr, FieldInfo match, object value, CultureInfo culture ) : FieldInfo
BindToMethod ( BindingFlags bindingAttr, MethodBase match, object &args, ParameterModifier modifiers, CultureInfo culture, string names, object &state ) : MethodBase
ChangeType ( object value, Type type, CultureInfo culture ) : object
SelectMethod ( BindingFlags bindingAttr, MethodBase match, Type types, ParameterModifier modifiers ) : MethodBase
SelectProperty ( BindingFlags bindingAttr, PropertyInfo match, Type returnType, Type indexes, ParameterModifier modifiers ) : PropertyInfo

Private Methods

Method Description
CompareCloserType ( Type t1, Type t2 ) : int
GetBetterMethod ( MethodBase m1, MethodBase m2, Type types ) : MethodBase
IsArrayAssignable ( Type object_type, Type target_type ) : bool
ReorderArgumentArray ( object &args, object state ) : void
ReorderParameters ( string names, object &args, MethodBase selected ) : void
SelectMethod ( BindingFlags bindingAttr, MethodBase match, Type types, ParameterModifier modifiers, bool allowByRefMatch ) : MethodBase
check_arguments ( Type types, ParameterInfo args, bool allowByRefMatch ) : bool
check_arguments_with_score ( Type types, ParameterInfo args ) : int
check_type ( Type from, Type to ) : bool
check_type_with_score ( Type from, Type to ) : int

Method Details

BindToField() public method

public BindToField ( BindingFlags bindingAttr, FieldInfo match, object value, CultureInfo culture ) : FieldInfo
bindingAttr BindingFlags
match FieldInfo
value object
culture System.Globalization.CultureInfo
return FieldInfo

BindToMethod() public method

public BindToMethod ( BindingFlags bindingAttr, MethodBase match, object &args, ParameterModifier modifiers, CultureInfo culture, string names, object &state ) : MethodBase
bindingAttr BindingFlags
match MethodBase
args object
modifiers ParameterModifier
culture System.Globalization.CultureInfo
names string
state object
return MethodBase

ChangeType() public method

public ChangeType ( object value, Type type, CultureInfo culture ) : object
value object
type Type
culture System.Globalization.CultureInfo
return object

SelectMethod() public method

public SelectMethod ( BindingFlags bindingAttr, MethodBase match, Type types, ParameterModifier modifiers ) : MethodBase
bindingAttr BindingFlags
match MethodBase
types Type
modifiers ParameterModifier
return MethodBase

SelectProperty() public method

public SelectProperty ( BindingFlags bindingAttr, PropertyInfo match, Type returnType, Type indexes, ParameterModifier modifiers ) : PropertyInfo
bindingAttr BindingFlags
match PropertyInfo
returnType Type
indexes Type
modifiers ParameterModifier
return PropertyInfo