C# Class AmazedSaint.Elastic.Lib.ElasticObject

See http://amazedsaint.blogspot.com/2010/02/introducing-elasticobject-for-net-40.html for details
Inheritance: System.Dynamic.DynamicObject, IElasticHierarchyWrapper, INotifyPropertyChanged
Afficher le fichier Open project: amazedsaint/ElasticObject Class Usage Examples

Méthodes publiques

Méthode Description
AddAttribute ( string key, ElasticObject value ) : void
AddElement ( ElasticObject element ) : void
Attribute ( string name ) : ElasticObject
ElasticObject ( ) : System
ElasticObject ( string name ) : System
Element ( string name ) : ElasticObject
GetAttributeValue ( string name ) : object
HasAttribute ( string name ) : bool
RemoveAttribute ( string key ) : void
RemoveElement ( ElasticObject element ) : void
SetAttributeValue ( string name, object obj ) : void
TryBinaryOperation ( BinaryOperationBinder binder, object arg, object &result ) : bool

Interpret the invocation of 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

Interpret a method call

TrySetMember ( SetMemberBinder binder, object value ) : bool

Catch a set member invocation

TryUnaryOperation ( UnaryOperationBinder binder, object &result ) : bool

Try the unary operation.

Private Methods

Méthode Description
AddAttribute ( string memberName, object value ) : void
CreateOrGetAttribute ( string memberName, object value ) : ElasticObject

Add a member to this element, with the specified value

ElasticObject ( string name, object value ) : System
OnPropertyChanged ( string prop ) : void

Method Details

AddAttribute() public méthode

public AddAttribute ( string key, ElasticObject value ) : void
key string
value ElasticObject
Résultat void

AddElement() public méthode

public AddElement ( ElasticObject element ) : void
element ElasticObject
Résultat void

Attribute() public méthode

public Attribute ( string name ) : ElasticObject
name string
Résultat ElasticObject

ElasticObject() public méthode

public ElasticObject ( ) : System
Résultat System

ElasticObject() public méthode

public ElasticObject ( string name ) : System
name string
Résultat System

Element() public méthode

public Element ( string name ) : ElasticObject
name string
Résultat ElasticObject

GetAttributeValue() public méthode

public GetAttributeValue ( string name ) : object
name string
Résultat object

HasAttribute() public méthode

public HasAttribute ( string name ) : bool
name string
Résultat bool

RemoveAttribute() public méthode

public RemoveAttribute ( string key ) : void
key string
Résultat void

RemoveElement() public méthode

public RemoveElement ( ElasticObject element ) : void
element ElasticObject
Résultat void

SetAttributeValue() public méthode

public SetAttributeValue ( string name, object obj ) : void
name string
obj object
Résultat void

TryBinaryOperation() public méthode

Interpret the invocation of a binary operation
public TryBinaryOperation ( BinaryOperationBinder binder, object arg, object &result ) : bool
binder System.Dynamic.BinaryOperationBinder
arg object
result object
Résultat bool

TryGetIndex() public méthode

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

TryGetMember() public méthode

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

TryInvokeMember() public méthode

Interpret a method call
public TryInvokeMember ( System binder, object args, object &result ) : bool
binder System
args object
result object
Résultat bool

TrySetMember() public méthode

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

TryUnaryOperation() public méthode

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