Method FindProperty
FindProperty<T, TValue>(Expression<Func<T, TValue>>)
To use with extreme caution. It not really get the property but try to find a field with similar name Hence inheritance override of property is not supported. Also variable rename will silently break the search.
Declaration
public static string FindProperty<T, TValue>(Expression<Func<T, TValue>> expr)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, TValue>> | expr | Expression returning the value seeked |
Returns
Type | Description |
---|---|
string | serialization path of the seeked property |
Type Parameters
Name | Description |
---|---|
T | Entry type of expr |
TValue | Type of the value |