Class ReflectivePropertyAccessor.OptimalPropertyAccessor  
  
  
    - Namespace
- Steeltoe.Common.Expression.Internal.Spring.Support
- Assembly
- Steeltoe.Common.Expression.dll
 
  
  
  
    [Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public class ReflectivePropertyAccessor.OptimalPropertyAccessor : ICompilablePropertyAccessor, IPropertyAccessor
   
  
    - Inheritance
- 
      
      ReflectivePropertyAccessor.OptimalPropertyAccessor 
    - Implements
- 
      
      
    
    - Inherited Members
- 
    
    
    
    
    
    
    
  
Constructors
  
  
  OptimalPropertyAccessor(InvokerPair)
  
  
  
  
  
    public OptimalPropertyAccessor(ReflectivePropertyAccessor.InvokerPair target)
   
  Parameters
  
    - targetReflectivePropertyAccessor.InvokerPair
Properties
  
  
  Member
  
  
  
  
  
    public MemberInfo Member { get; }
   
  Property Value
  
    - MemberInfo
  TypeDescriptor
  
  
  
  
  
    public Type TypeDescriptor { get; }
   
  Property Value
  
    - Type
Methods
  
  
  CanRead(IEvaluationContext, object, string)
  
  
  
  
  
    public bool CanRead(IEvaluationContext context, object target, string name)
   
  Parameters
  
    - contextIEvaluationContext
- targetobject
- namestring
Returns
  
    - bool
  CanWrite(IEvaluationContext, object, string)
  
  
  
  
  
    public bool CanWrite(IEvaluationContext context, object target, string name)
   
  Parameters
  
    - contextIEvaluationContext
- targetobject
- namestring
Returns
  
    - bool
  GenerateCode(string, ILGenerator, CodeFlow)
  
  
  
  
  
    public void GenerateCode(string propertyName, ILGenerator gen, CodeFlow cf)
   
  Parameters
  
    - propertyNamestring
- genILGenerator
- cfCodeFlow
  GetPropertyType()
  
  
  
  
  
    public Type GetPropertyType()
   
  Returns
  
    - Type
  GetSpecificTargetClasses()
  
  
  
  
  
    public IList<Type> GetSpecificTargetClasses()
   
  Returns
  
    - IList<Type>
  IsCompilable()
  
  
  
  
  
    public bool IsCompilable()
   
  Returns
  
    - bool
  Read(IEvaluationContext, object, string)
  
  
  
  
  
    public ITypedValue Read(IEvaluationContext context, object target, string name)
   
  Parameters
  
    - contextIEvaluationContext
- targetobject
- namestring
Returns
  
    - ITypedValue
  Write(IEvaluationContext, object, string, object)
  
  
  
  
  
    public void Write(IEvaluationContext context, object target, string name, object newValue)
   
  Parameters
  
    - contextIEvaluationContext
- targetobject
- namestring
- newValueobject