public static string GetDescriptionOr <T>(this T x, Expression <Func <T, object> > expression, string defaultVal, ReflectionOptions options = ReflectionOptions.Default) { return(x is null ? defaultVal : TypeReflections.GetDescriptionOr(expression, defaultVal, options)); }
public static string GetDescriptionOr(this MemberInfo member, string defaultVal, ReflectionOptions options = ReflectionOptions.Default) { return(TypeReflections.GetDescriptionOr(member, defaultVal, options)); }