C# 클래스 Dynamitey.DynamicObjects.ExtensionToInstanceProxy

Proxy that can turn extension methods into instance methods
상속: BaseForwarder
파일 보기 프로젝트 열기: ekonbenefits/dynamitey 1 사용 예제들

공개 메소드들

메소드 설명
ExtensionToInstanceProxy ( dynamic target, Type extendedType, Type staticTypes, Type instanceHints = null ) : System

Initializes a new instance of the ExtensionToInstanceProxy class.

TryGetMember ( GetMemberBinder binder, object &result ) : bool

Provides the implementation for operations that get member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.

TryInvokeMember ( System binder, object args, object &result ) : bool

Tries the invoke member.

보호된 메소드들

메소드 설명
CreateSelf ( object target, Type extendedType, Type staticTypes, Type instanceHints ) : ExtensionToInstanceProxy

Creates the self.

InvokeStaticMethod ( String_OR_InvokeMemberName name, object args ) : object

Invokes the static method.

비공개 메소드들

메소드 설명
IsExtendedType ( object target ) : bool

메소드 상세

CreateSelf() 보호된 메소드

Creates the self.
protected CreateSelf ( object target, Type extendedType, Type staticTypes, Type instanceHints ) : ExtensionToInstanceProxy
target object The target.
extendedType System.Type Type of the extended.
staticTypes System.Type The static types.
instanceHints System.Type The instance hints.
리턴 ExtensionToInstanceProxy

ExtensionToInstanceProxy() 공개 메소드

Initializes a new instance of the ExtensionToInstanceProxy class.
Don't Nest ExtensionToInstance Objects
public ExtensionToInstanceProxy ( dynamic target, Type extendedType, Type staticTypes, Type instanceHints = null ) : System
target dynamic The target.
extendedType System.Type Type of the extended.
staticTypes System.Type The static types.
instanceHints System.Type The instance hints.
리턴 System

InvokeStaticMethod() 보호된 메소드

Invokes the static method.
protected InvokeStaticMethod ( String_OR_InvokeMemberName name, object args ) : object
name String_OR_InvokeMemberName The name.
args object The args.
리턴 object

TryGetMember() 공개 메소드

Provides the implementation for operations that get member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.
public TryGetMember ( GetMemberBinder binder, object &result ) : bool
binder System.Dynamic.GetMemberBinder Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member on which the dynamic operation is performed. For example, for the Console.WriteLine(sampleObject.SampleProperty) statement, where sampleObject is an instance of the class derived from the class, binder.Name returns "SampleProperty". The binder.IgnoreCase property specifies whether the member name is case-sensitive.
result object The result of the get operation. For example, if the method is called for a property, you can assign the property value to .
리턴 bool

TryInvokeMember() 공개 메소드

Tries the invoke member.
public TryInvokeMember ( System binder, object args, object &result ) : bool
binder System The binder.
args object The args.
result object The result.
리턴 bool