public static String JsonName(this MemberInfo mi) { if (mi == null) { return(null); } var a_ji = mi.AttrOrNull <JsonIncludeAttribute>() ?? new JsonIncludeAttribute(mi.Name); return(a_ji.Name); }
public static bool HasAttr <T>(this MemberInfo mi) => mi.AttrOrNull <T>() != null;