예제 #1
0
        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);
        }
예제 #2
0
파일: Reflect.cs 프로젝트: narve/DV8.Html
 public static bool HasAttr <T>(this MemberInfo mi) => mi.AttrOrNull <T>() != null;