ExpressionReflectionOptimizer
Assembly: ServiceStack.Text.dll
View Source
public sealed class ExpressionReflectionOptimizer : ReflectionOptimizer
Properties
Provider
View Source
public static ExpressionReflectionOptimizer Provider { get; }
Methods
UseType(Type)
View Source
public override Type UseType(Type type)
Returns
System.Type
Parameters
Type | Name |
---|---|
System.Type | type |
CreateGetter(PropertyInfo)
View Source
public override GetMemberDelegate CreateGetter(PropertyInfo propertyInfo)
Returns
ServiceStack.GetMemberDelegate
Parameters
Type | Name |
---|---|
System.Reflection.PropertyInfo | propertyInfo |
GetExpressionLambda(PropertyInfo)
View Source
public static Expression<GetMemberDelegate> GetExpressionLambda(PropertyInfo propertyInfo)
Returns
System.Linq.Expressions.Expression<ServiceStack.GetMemberDelegate>
Parameters
Type | Name |
---|---|
System.Reflection.PropertyInfo | propertyInfo |
CreateGetter<T>(PropertyInfo)
View Source
public override GetMemberDelegate<T> CreateGetter<T>(PropertyInfo propertyInfo)
Returns
ServiceStack.GetMemberDelegate<T>
Parameters
Type | Name |
---|---|
System.Reflection.PropertyInfo | propertyInfo |
Type Parameters
T
GetExpressionLambda<T>(PropertyInfo)
View Source
public static Expression<GetMemberDelegate<T>> GetExpressionLambda<T>(PropertyInfo propertyInfo)
Returns
System.Linq.Expressions.Expression<ServiceStack.GetMemberDelegate<<T>>>
Parameters
Type | Name |
---|---|
System.Reflection.PropertyInfo | propertyInfo |
Type Parameters
T
CreateSetter(PropertyInfo)
View Source
public override SetMemberDelegate CreateSetter(PropertyInfo propertyInfo)
Returns
ServiceStack.SetMemberDelegate
Parameters
Type | Name |
---|---|
System.Reflection.PropertyInfo | propertyInfo |
CreateSetter<T>(PropertyInfo)
View Source
public override SetMemberDelegate<T> CreateSetter<T>(PropertyInfo propertyInfo)
Returns
ServiceStack.SetMemberDelegate<T>
Parameters
Type | Name |
---|---|
System.Reflection.PropertyInfo | propertyInfo |
Type Parameters
T
SetExpressionLambda<T>(PropertyInfo)
View Source
public static Expression<SetMemberDelegate<T>> SetExpressionLambda<T>(PropertyInfo propertyInfo)
Returns
System.Linq.Expressions.Expression<ServiceStack.SetMemberDelegate<<T>>>
Parameters
Type | Name |
---|---|
System.Reflection.PropertyInfo | propertyInfo |
Type Parameters
T
CreateGetter(FieldInfo)
View Source
public override GetMemberDelegate CreateGetter(FieldInfo fieldInfo)
Returns
ServiceStack.GetMemberDelegate
Parameters
Type | Name |
---|---|
System.Reflection.FieldInfo | fieldInfo |
CreateGetter<T>(FieldInfo)
View Source
public override GetMemberDelegate<T> CreateGetter<T>(FieldInfo fieldInfo)
Returns
ServiceStack.GetMemberDelegate<T>
Parameters
Type | Name |
---|---|
System.Reflection.FieldInfo | fieldInfo |
Type Parameters
T
CreateSetter(FieldInfo)
View Source
public override SetMemberDelegate CreateSetter(FieldInfo fieldInfo)
Returns
ServiceStack.SetMemberDelegate
Parameters
Type | Name |
---|---|
System.Reflection.FieldInfo | fieldInfo |
CreateSetter<T>(FieldInfo)
View Source
public override SetMemberDelegate<T> CreateSetter<T>(FieldInfo fieldInfo)
Returns
ServiceStack.SetMemberDelegate<T>
Parameters
Type | Name |
---|---|
System.Reflection.FieldInfo | fieldInfo |
Type Parameters
T
CreateSetterRef<T>(FieldInfo)
View Source
public override SetMemberRefDelegate<T> CreateSetterRef<T>(FieldInfo fieldInfo)
Returns
ServiceStack.SetMemberRefDelegate<T>
Parameters
Type | Name |
---|---|
System.Reflection.FieldInfo | fieldInfo |
Type Parameters
T
IsDynamic(Assembly)
View Source
public override bool IsDynamic(Assembly assembly)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Reflection.Assembly | assembly |
CreateConstructor(Type)
View Source
public override EmptyCtorDelegate CreateConstructor(Type type)
Returns
ServiceStack.EmptyCtorDelegate
Parameters
Type | Name |
---|---|
System.Type | type |
Inherited Methods
CreateConstructor(Type)
View Source
public abstract EmptyCtorDelegate CreateConstructor(Type type)
Returns
ServiceStack.EmptyCtorDelegate
Parameters
Type | Name |
---|---|
System.Type | type |
CreateGetter(FieldInfo)
View Source
public abstract GetMemberDelegate CreateGetter(FieldInfo fieldInfo)
Returns
ServiceStack.GetMemberDelegate
Parameters
Type | Name |
---|---|
System.Reflection.FieldInfo | fieldInfo |
CreateGetter(PropertyInfo)
View Source
public abstract GetMemberDelegate CreateGetter(PropertyInfo propertyInfo)
Returns
ServiceStack.GetMemberDelegate
Parameters
Type | Name |
---|---|
System.Reflection.PropertyInfo | propertyInfo |
CreateGetter<T>(FieldInfo)
View Source
public abstract GetMemberDelegate<T> CreateGetter<T>(FieldInfo fieldInfo)
Returns
ServiceStack.GetMemberDelegate<T>
Parameters
Type | Name |
---|---|
System.Reflection.FieldInfo | fieldInfo |
Type Parameters
T
CreateGetter<T>(PropertyInfo)
View Source
public abstract GetMemberDelegate<T> CreateGetter<T>(PropertyInfo propertyInfo)
Returns
ServiceStack.GetMemberDelegate<T>
Parameters
Type | Name |
---|---|
System.Reflection.PropertyInfo | propertyInfo |
Type Parameters
T
CreateSetter(FieldInfo)
View Source
public abstract SetMemberDelegate CreateSetter(FieldInfo fieldInfo)
Returns
ServiceStack.SetMemberDelegate
Parameters
Type | Name |
---|---|
System.Reflection.FieldInfo | fieldInfo |
CreateSetter(PropertyInfo)
View Source
public abstract SetMemberDelegate CreateSetter(PropertyInfo propertyInfo)
Returns
ServiceStack.SetMemberDelegate
Parameters
Type | Name |
---|---|
System.Reflection.PropertyInfo | propertyInfo |
CreateSetter<T>(FieldInfo)
View Source
public abstract SetMemberDelegate<T> CreateSetter<T>(FieldInfo fieldInfo)
Returns
ServiceStack.SetMemberDelegate<T>
Parameters
Type | Name |
---|---|
System.Reflection.FieldInfo | fieldInfo |
Type Parameters
T
CreateSetter<T>(PropertyInfo)
View Source
public abstract SetMemberDelegate<T> CreateSetter<T>(PropertyInfo propertyInfo)
Returns
ServiceStack.SetMemberDelegate<T>
Parameters
Type | Name |
---|---|
System.Reflection.PropertyInfo | propertyInfo |
Type Parameters
T
CreateSetterRef<T>(FieldInfo)
View Source
public abstract SetMemberRefDelegate<T> CreateSetterRef<T>(FieldInfo fieldInfo)
Returns
ServiceStack.SetMemberRefDelegate<T>
Parameters
Type | Name |
---|---|
System.Reflection.FieldInfo | fieldInfo |
Type Parameters
T
IsDynamic(Assembly)
View Source
public abstract bool IsDynamic(Assembly assembly)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Reflection.Assembly | assembly |
UseType(Type)
View Source
public abstract Type UseType(Type type)
Returns
System.Type
Parameters
Type | Name |
---|---|
System.Type | type |