Class ReflectionSetHelper
- Namespace
- ShapezShifter.SharpDetour
- Assembly
- ShapezShifter.dll
public static class ReflectionSetHelper
- Inheritance
-
objectReflectionSetHelper
Methods
Set<TObject, TField>(TObject, Expression<Func<TObject, TField>>, TField)
public static Hook Set<TObject, TField>(this TObject obj, Expression<Func<TObject, TField>> expr, TField value) where TObject : class
Parameters
objTObjectexprExpression<Func<TObject, TField>>valueTField
Returns
- Hook
Type Parameters
TObjectTField
Set<TStruct, TField>(ref TStruct, Expression<Func<TStruct, TField>>, TField)
public static Hook Set<TStruct, TField>(this ref TStruct structure, Expression<Func<TStruct, TField>> expr, TField value) where TStruct : struct
Parameters
structureTStructexprExpression<Func<TStruct, TField>>valueTField
Returns
- Hook
Type Parameters
TStructTField
TryGetAccessedProperty<TObject, TField>(Expression<Func<TObject, TField>>, out PropertyInfo)
public static bool TryGetAccessedProperty<TObject, TField>(Expression<Func<TObject, TField>> expression, out PropertyInfo property)
Parameters
expressionExpression<Func<TObject, TField>>propertyPropertyInfo
Returns
- bool
Type Parameters
TObjectTField