Class ReflectivePropertyAccessor.OptimalPropertyAccessor
public class ReflectivePropertyAccessor.OptimalPropertyAccessor : ICompilablePropertyAccessor, IPropertyAccessor
- Inheritance
-
ReflectivePropertyAccessor.OptimalPropertyAccessor
- Implements
- Inherited Members
Constructors
OptimalPropertyAccessor(InvokerPair)
public OptimalPropertyAccessor(ReflectivePropertyAccessor.InvokerPair target)
Parameters
Properties
Member
public MemberInfo Member { get; }
Property Value
TypeDescriptor
public Type TypeDescriptor { get; }
Property Value
Methods
CanRead(IEvaluationContext, object, string)
public bool CanRead(IEvaluationContext context, object target, string name)
Parameters
context
IEvaluationContexttarget
objectname
string
Returns
CanWrite(IEvaluationContext, object, string)
public bool CanWrite(IEvaluationContext context, object target, string name)
Parameters
context
IEvaluationContexttarget
objectname
string
Returns
GenerateCode(string, ILGenerator, CodeFlow)
public void GenerateCode(string propertyName, ILGenerator gen, CodeFlow cf)
Parameters
propertyName
stringgen
ILGeneratorcf
CodeFlow
GetPropertyType()
public Type GetPropertyType()
Returns
GetSpecificTargetClasses()
public IList<Type> GetSpecificTargetClasses()
Returns
IsCompilable()
public bool IsCompilable()
Returns
Read(IEvaluationContext, object, string)
public ITypedValue Read(IEvaluationContext context, object target, string name)
Parameters
context
IEvaluationContexttarget
objectname
string
Returns
Write(IEvaluationContext, object, string, object)
public void Write(IEvaluationContext context, object target, string name, object newValue)
Parameters
context
IEvaluationContexttarget
objectname
stringnewValue
object