Class ReflectivePropertyAccessor.OptimalPropertyAccessor
Inheritance
System.Object
ReflectivePropertyAccessor.OptimalPropertyAccessor
Implements
IPropertyAccessor
Assembly: Steeltoe.Common.Expression.dll
Syntax
public class OptimalPropertyAccessor : object, ICompilablePropertyAccessor
Constructors
|
Edit this page
View Source
OptimalPropertyAccessor(ReflectivePropertyAccessor.InvokerPair)
Declaration
public OptimalPropertyAccessor(ReflectivePropertyAccessor.InvokerPair target)
Parameters
Properties
|
Edit this page
View Source
Member
Declaration
public MemberInfo Member { get; }
Property Value
Type |
Description |
MemberInfo |
|
|
Edit this page
View Source
TypeDescriptor
Declaration
public Type TypeDescriptor { get; }
Property Value
Methods
|
Edit this page
View Source
CanRead(IEvaluationContext, Object, String)
Declaration
public bool CanRead(IEvaluationContext context, object target, string name)
Parameters
Type |
Name |
Description |
IEvaluationContext |
context |
|
System.Object |
target |
|
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
CanWrite(IEvaluationContext, Object, String)
Declaration
public bool CanWrite(IEvaluationContext context, object target, string name)
Parameters
Type |
Name |
Description |
IEvaluationContext |
context |
|
System.Object |
target |
|
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
GenerateCode(String, ILGenerator, CodeFlow)
Declaration
public void GenerateCode(string propertyName, ILGenerator gen, CodeFlow cf)
Parameters
Type |
Name |
Description |
System.String |
propertyName |
|
ILGenerator |
gen |
|
CodeFlow |
cf |
|
|
Edit this page
View Source
GetPropertyType()
Declaration
public Type GetPropertyType()
Returns
|
Edit this page
View Source
GetSpecificTargetClasses()
Declaration
public IList<Type> GetSpecificTargetClasses()
Returns
Type |
Description |
IList<Type> |
|
|
Edit this page
View Source
IsCompilable()
Declaration
public bool IsCompilable()
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Read(IEvaluationContext, Object, String)
Declaration
public ITypedValue Read(IEvaluationContext context, object target, string name)
Parameters
Type |
Name |
Description |
IEvaluationContext |
context |
|
System.Object |
target |
|
System.String |
name |
|
Returns
Type |
Description |
ITypedValue |
|
|
Edit this page
View Source
Write(IEvaluationContext, Object, String, Object)
Declaration
public void Write(IEvaluationContext context, object target, string name, object newValue)
Parameters
Type |
Name |
Description |
IEvaluationContext |
context |
|
System.Object |
target |
|
System.String |
name |
|
System.Object |
newValue |
|
Implements
IPropertyAccessor