C# Class FastMember.ObjectAccessor

Represents an individual object, allowing access to members by-name
Datei anzeigen Open project: mgravell/fast-member Class Usage Examples

Public Methods

Method Description
Create ( object target ) : ObjectAccessor

Wraps an individual object, allowing by-name access to that instance

Create ( object target, bool allowNonPublicAccessors ) : ObjectAccessor

Wraps an individual object, allowing by-name access to that instance

Equals ( object obj ) : bool

Use the target types definition of equality

GetHashCode ( ) : int

Obtain the hash of the target object

ToString ( ) : string

Use the target's definition of a string representation

this ( string name ) : object

Get or Set the value of a named member for the underlying object

Method Details

Create() public static method

Wraps an individual object, allowing by-name access to that instance
public static Create ( object target ) : ObjectAccessor
target object
return ObjectAccessor

Create() public static method

Wraps an individual object, allowing by-name access to that instance
public static Create ( object target, bool allowNonPublicAccessors ) : ObjectAccessor
target object
allowNonPublicAccessors bool
return ObjectAccessor

Equals() public method

Use the target types definition of equality
public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

Obtain the hash of the target object
public GetHashCode ( ) : int
return int

ToString() public method

Use the target's definition of a string representation
public ToString ( ) : string
return string

this() public abstract method

Get or Set the value of a named member for the underlying object
public abstract this ( string name ) : object
name string
return object