메소드 |
설명 |
|
CanConvertFrom ( Type fromType, Type toType, bool toNotNullable, NarrowingLevel level ) : bool |
Determines if a conversion exists from fromType to toType at the specified narrowing level. toNotNullable is true if the target variable doesn't allow null values. |
|
Convert ( object obj, Type toType ) : object |
Converts an object at runtime into the specified type. |
|
ConvertExpression ( Expression expr, Type toType, ConversionResultKind kind, Microsoft.Scripting.Actions.Calls.OverloadResolverFactory resolverFactory ) : Expression |
Converts the provided expression to the given type. The expression is safe to evaluate multiple times. |
|
GetAllExtensionMembers ( Type type, string name ) : MemberGroup |
Gets the extension members of the given name from the provided type. Base classes are also searched for their extension members. Once any of the types in the inheritance hierarchy provide an extension member the search is stopped. |
|
GetExtensionMembers ( Type declaringType, string name ) : MemberGroup |
Gets the extension members of the given name from the provided type. Subclasses of the type and their extension members are not searched. |
|
GetExtensionTypes ( Type t ) : IList |
|
|
GetMember ( MemberRequestKind action, Type type, string name ) : MemberGroup |
Gets the members that are visible from the provided type of the specified name. The default implemetnation first searches the type, then the flattened heirachy of the type, and then registered extension methods. |
|
GetObjectTypeName ( object arg ) : string |
|
|
GetTypeName ( Type t ) : string |
|
|
IncludeExtensionMember ( MemberInfo member ) : bool |
|
|
MakeCallExpression ( Microsoft.Scripting.Actions.Calls.OverloadResolverFactory resolverFactory, MethodInfo method ) : DynamicMetaObject |
|
|
MakeContainsGenericParametersError ( MemberTracker tracker ) : ErrorInfo |
|
|
MakeConversionError ( Type toType, Expression value ) : ErrorInfo |
|
|
MakeGenericAccessError ( MemberTracker info ) : ErrorInfo |
|
|
MakeMissingMemberError ( Type type, DynamicMetaObject self, string name ) : ErrorInfo |
Provides a way for the binder to provide a custom error message when lookup fails. Just doing this for the time being until we get a more robust error return mechanism. Deprecated, use the non-generic version instead |
|
MakeMissingMemberErrorForAssign ( Type type, DynamicMetaObject self, string name ) : ErrorInfo |
|
|
MakeMissingMemberErrorForAssignReadOnlyProperty ( Type type, DynamicMetaObject self, string name ) : ErrorInfo |
|
|
MakeMissingMemberErrorForDelete ( Type type, DynamicMetaObject self, string name ) : ErrorInfo |
|
|
MakeMissingMemberErrorInfo ( Type type, string name ) : ErrorInfo |
|
|
MakeSetValueTypeFieldError ( Microsoft.Scripting.Actions.FieldTracker field, DynamicMetaObject instance, DynamicMetaObject value ) : ErrorInfo |
|
|
MakeStaticAssignFromDerivedTypeError ( Type accessingType, DynamicMetaObject self, MemberTracker assigning, DynamicMetaObject assignedValue, Microsoft.Scripting.Actions.Calls.OverloadResolverFactory context ) : ErrorInfo |
Called when a set is attempting to assign to a field or property from a derived class through the base class. The default behavior is to allow the assignment. |
|
MakeStaticPropertyInstanceAccessError ( PropertyTracker tracker, bool isAssignment ) : ErrorInfo |
|
|
MakeStaticPropertyInstanceAccessError ( PropertyTracker tracker, bool isAssignment, IList parameters ) : ErrorInfo |
Creates an ErrorInfo object when a static property is accessed from an instance member. The default behavior is throw an exception indicating that static members properties be accessed via an instance. Languages can override this to customize the exception, message, or to produce an ErrorInfo object which reads or writes to the property being accessed. |
|
PreferConvert ( Type t1, Type t2 ) : Candidate |
Provides ordering for two parameter types if there is no conversion between the two parameter types. |
|
ReturnMemberTracker ( Type type, MemberTracker memberTracker ) : DynamicMetaObject |
Provides an opportunity for languages to replace all MemberTracker's with their own type. Alternatlely a language can expose MemberTracker's directly. |
|