示例#1
0
        public static bool IsSupported(FieldInfo info)
        {
            bool isClass          = info.FieldType.IsClass;
            bool isInterface      = info.FieldType.IsInterface;
            bool isDocLeaf        = info.FieldType.Equals(typeof(IDocLeaf));
            bool supportsIDocLeaf = info.FieldType.GetInterface(typeof(IDocLeaf).Name) != null;

            return
                (((isClass && supportsIDocLeaf) || (isInterface && isDocLeaf)) &&
                 !DocObjRef.IsDocObjRef(info));
        }
示例#2
0
 public static bool IsSupportedExcludeDocObjRec(PropertyInfo info)
 {
     return(!DocObjRef.IsDocObjRef(info) && IsSupported(info));
 }