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)); }
public static bool IsSupportedExcludeDocObjRec(PropertyInfo info) { return(!DocObjRef.IsDocObjRef(info) && IsSupported(info)); }