C# Class AmazedSaint.Elastic.ElasticExpandoObject

Inheritance: System.Dynamic.DynamicObject, INotifyPropertyChanged
Mostra file Open project: amazedsaint/ElasticObject Class Usage Examples

Private Properties

Property Type Description
CreateOrGetAttribute ElasticExpandoObject
OnPropertyChanged void

Public Methods

Method Description
ElasticExpandoObject ( ) : System
ElasticExpandoObject ( object objToWrap ) : System
ElasticExpandoObject ( object value, ElasticExpandoObject parent, string name ) : System
ElasticExpandoObject ( string name ) : System
GetDynamicMemberNames ( ) : IEnumerable
TryBinaryOperation ( BinaryOperationBinder binder, object arg, object &result ) : bool

Catch a binary operation

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

Handle the indexer operations

TryGetMember ( GetMemberBinder binder, object &result ) : bool

Catch a get member invocation

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

Catch a set member invocation

TryUnaryOperation ( UnaryOperationBinder binder, object &result ) : bool

Try the unary operation.

Private Methods

Method Description
CreateOrGetAttribute ( string memberName, object value ) : ElasticExpandoObject

Add a member to this element, with the specified value

OnPropertyChanged ( string prop ) : void

Method Details

ElasticExpandoObject() public method

public ElasticExpandoObject ( ) : System
return System

ElasticExpandoObject() public method

public ElasticExpandoObject ( object objToWrap ) : System
objToWrap object
return System

ElasticExpandoObject() public method

public ElasticExpandoObject ( object value, ElasticExpandoObject parent, string name ) : System
value object
parent ElasticExpandoObject
name string
return System

ElasticExpandoObject() public method

public ElasticExpandoObject ( string name ) : System
name string
return System

GetDynamicMemberNames() public method

public GetDynamicMemberNames ( ) : IEnumerable
return IEnumerable

TryBinaryOperation() public method

Catch a binary operation
public TryBinaryOperation ( BinaryOperationBinder binder, object arg, object &result ) : bool
binder System.Dynamic.BinaryOperationBinder
arg object
result object
return bool

TryGetIndex() public method

Handle the indexer operations
public TryGetIndex ( GetIndexBinder binder, object indexes, object &result ) : bool
binder System.Dynamic.GetIndexBinder
indexes object
result object
return bool

TryGetMember() public method

Catch a get member invocation
public TryGetMember ( GetMemberBinder binder, object &result ) : bool
binder System.Dynamic.GetMemberBinder
result object
return bool

TryInvokeMember() public method

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

TrySetMember() public method

Catch a set member invocation
public TrySetMember ( SetMemberBinder binder, object value ) : bool
binder System.Dynamic.SetMemberBinder
value object
return bool

TryUnaryOperation() public method

Try the unary operation.
public TryUnaryOperation ( UnaryOperationBinder binder, object &result ) : bool
binder System.Dynamic.UnaryOperationBinder
result object
return bool