Skip to main content

ObjectAccessor

Represents an individual object, allowing access to members by-name

Assembly: ServiceStack.Text.dll
View Source
Declaration
public abstract class ObjectAccessor

Properties

Item[String]

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

View Source
Declaration
public abstract object this[string name] { get; set; }

Target

The object represented by this instance

View Source
Declaration
public abstract object Target { get; }

Methods

Equals(Object)

Use the target types definition of equality

View Source
Declaration
public override bool Equals(object obj)
Returns

System.Boolean

Parameters
TypeName
System.Objectobj

GetHashCode()

Obtain the hash of the target object

View Source
Declaration
public override int GetHashCode()
Returns

System.Int32

ToString()

Use the target's definition of a string representation

View Source
Declaration
public override string ToString()
Returns

System.String

Create(Object)

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

View Source
Declaration
public static ObjectAccessor Create(object target)
Returns

ServiceStack.Text.FastMember.ObjectAccessor

Parameters
TypeName
System.Objecttarget