Method GetFieldPath
GetFieldPath<TType, TValue>(Expression<Func<TType, TValue>>)
Returns a string path from an expression - mostly used to retrieve serialized properties without hardcoding the field path. Safer, and allows for proper refactoring.
선언
public static string GetFieldPath<TType, TValue>(Expression<Func<TType, TValue>> expr)
파라미터
타입 | 이름 | 설명 |
---|---|---|
Expression<Func<TType, TValue>> | expr |
반환
타입 | 설명 |
---|---|
string |
타입 파라미터
이름 | 설명 |
---|---|
TType | |
TValue |