Table of Contents

Class TypeAccessor

Namespace
LinqToDB.Reflection
Assembly
linq2db.dll
public abstract class TypeAccessor
Inheritance
TypeAccessor
Derived
Extension Methods

Properties

this[int]

public MemberAccessor this[int index] { get; }

Parameters

index int

Property Value

MemberAccessor

this[string]

public MemberAccessor this[string memberName] { get; }

Parameters

memberName string

Property Value

MemberAccessor

Members

public List<MemberAccessor> Members { get; }

Property Value

List<MemberAccessor>

ObjectFactory

public IObjectFactory? ObjectFactory { get; set; }

Property Value

IObjectFactory

Type

public abstract Type Type { get; }

Property Value

Type

Methods

AddMember(MemberAccessor)

protected void AddMember(MemberAccessor member)

Parameters

member MemberAccessor

CreateInstance()

public virtual object CreateInstance()

Returns

object

CreateInstanceEx()

public object CreateInstanceEx()

Returns

object

GetAccessor(Type)

public static TypeAccessor GetAccessor(Type type)

Parameters

type Type

Returns

TypeAccessor

GetAccessor<T>()

public static TypeAccessor<T> GetAccessor<T>()

Returns

TypeAccessor<T>

Type Parameters

T