C# 클래스 Dynamitey.DynamicObjects.Dummy

Dummy that just returns null or default for everything.
상속: BaseObject
파일 보기 프로젝트 열기: ekonbenefits/dynamitey

공개 메소드들

메소드 설명
Dummy ( ) : System

Initializes a new instance of the Dummy class.

TryGetIndex ( System binder, object indexes, object &result ) : bool

Tries the index of the get.

TryGetMember ( System 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

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

TrySetIndex ( System binder, object indexes, object value ) : bool

Tries the index of the set.

TrySetMember ( System binder, object value ) : bool

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

메소드 상세

Dummy() 공개 메소드

Initializes a new instance of the Dummy class.
public Dummy ( ) : System
리턴 System

TryGetIndex() 공개 메소드

Tries the index of the get.
public TryGetIndex ( System binder, object indexes, object &result ) : bool
binder System The binder.
indexes object The indexes.
result object The result.
리턴 bool

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 ( System binder, object &result ) : bool
binder System 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() 공개 메소드

Provides the implementation for operations that invoke a member. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as calling a method.
public TryInvokeMember ( System binder, object args, object &result ) : bool
binder System Provides information about the dynamic operation. The binder.Name property provides the name of the member on which the dynamic operation is performed. For example, for the statement sampleObject.SampleMethod(100), where sampleObject is an instance of the class derived from the class, binder.Name returns "SampleMethod". The binder.IgnoreCase property specifies whether the member name is case-sensitive.
args object The arguments that are passed to the object member during the invoke operation. For example, for the statement sampleObject.SampleMethod(100), where sampleObject is derived from the class, is equal to 100.
result object The result of the member invocation.
리턴 bool

TrySetIndex() 공개 메소드

Tries the index of the set.
public TrySetIndex ( System binder, object indexes, object value ) : bool
binder System The binder.
indexes object The indexes.
value object The value.
리턴 bool

TrySetMember() 공개 메소드

Provides the implementation for operations that set member values. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property.
public TrySetMember ( System binder, object value ) : bool
binder System Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member to which the value is being assigned. For example, for the statement sampleObject.SampleProperty = "Test", 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.
value object The value to set to the member. For example, for sampleObject.SampleProperty = "Test", where sampleObject is an instance of the class derived from the class, the is "Test".
리턴 bool