Skip to main content

TypeAccessor

Provides by-name member-access to objects of a given type

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

Properties

CreateNewSupported

Does this type support new instances via a parameterless constructor?

View Source
Declaration
public virtual bool CreateNewSupported { get; }

Item[Object, String]

Get or set the value of a named member on the target instance

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

Methods

CreateNew()

Create a new instance of this type

View Source
Declaration
public virtual object CreateNew()
Returns

System.Object

Create(Type)

Provides a type-specific accessor, allowing by-name access for all objects of that type

The accessor is cached internally; a pre-existing accessor may be returned

View Source
Declaration
public static TypeAccessor Create(Type type)
Returns

ServiceStack.Text.FastMember.TypeAccessor

Parameters
TypeName
System.Typetype