Table of Contents

Class MemberAccessor

Namespace
LinqToDB.Reflection
Assembly
linq2db.dll
public class MemberAccessor
Inheritance
MemberAccessor
Extension Methods

Constructors

MemberAccessor(TypeAccessor, MemberInfo, EntityDescriptor?)

public MemberAccessor(TypeAccessor typeAccessor, MemberInfo memberInfo, EntityDescriptor? ed)

Parameters

typeAccessor TypeAccessor
memberInfo MemberInfo
ed EntityDescriptor

Properties

Getter

[Obsolete("Use GetValue method instead")]
public Func<object, object?>? Getter { get; }

Property Value

Func<object, object>

GetterExpression

[Obsolete("Use GetGetterExpression method instead")]
public LambdaExpression GetterExpression { get; }

Property Value

LambdaExpression

HasGetter

public bool HasGetter { get; }

Property Value

bool

HasSetter

public bool HasSetter { get; }

Property Value

bool

IsComplex

public bool IsComplex { get; }

Property Value

bool

MemberInfo

public MemberInfo MemberInfo { get; }

Property Value

MemberInfo

Name

public string Name { get; }

Property Value

string

Setter

[Obsolete("Use SetValue method instead")]
public Action<object, object?>? Setter { get; }

Property Value

Action<object, object>

SetterExpression

[Obsolete("Use GetSetterExpression method instead")]
public LambdaExpression SetterExpression { get; }

Property Value

LambdaExpression

Type

public Type Type { get; }

Property Value

Type

TypeAccessor

public TypeAccessor TypeAccessor { get; }

Property Value

TypeAccessor

Methods

GetGetterExpression(Expression)

public Expression GetGetterExpression(Expression instance)

Parameters

instance Expression

Returns

Expression

GetSetterExpression(Expression, Expression)

public Expression GetSetterExpression(Expression instance, Expression value)

Parameters

instance Expression
value Expression

Returns

Expression

GetValue(object)

public virtual object? GetValue(object o)

Parameters

o object

Returns

object

SetValue(object, object?)

public virtual void SetValue(object o, object? value)

Parameters

o object
value object