August 2003
Intermediate to advanced
928 pages
32h 1m
English
Binder
This type is used by the .NET runtime for
method argument conversion. It is
responsible for such things as determining whether it is permissible
to pass a short to a method that takes a
long parameter. If you need to override
.NET’s default conversion rules, you could subclass
this type (however, most programmers will never need to do this). For
more details, see the .NET Framework SDK documentation on this type.
public abstract class Binder { // Protected Constructors protected Binder( ); // Public Instance Methods public abstract FieldInfo BindToField(BindingFlagsbindingAttr, FieldInfo[ ]match, objectvalue, System.Globalization.CultureInfoculture); public abstract MethodBase BindToMethod(BindingFlagsbindingAttr, MethodBase[ ]match, ref object[ ]args, ParameterModifier[ ]modifiers, System.Globalization.CultureInfoculture, string[ ]names, out objectstate); public abstract object ChangeType(objectvalue, Typetype, System.Globalization.CultureInfoculture); public abstract void ReorderArgumentArray(ref object[ ]args, objectstate); public abstract MethodBase SelectMethod(BindingFlagsbindingAttr, MethodBase[ ]match, Type[ ]types, ParameterModifier[ ]modifiers); public abstract PropertyInfo SelectProperty(BindingFlagsbindingAttr, PropertyInfo[ ]match, TypereturnType, Type[ ]indexes, ParameterModifier[ ]modifiers); }
System.Type.DefaultBinder
Multiple types