示例#1
0
        public static PropertyDrawer GetDrawer(FieldInfo field)
        {
            Type type = AttributeUtility.GetPropertyAttribute(field);

            return(GetDrawer(type));
        }
示例#2
0
 public static Type GetPropertyAttribute(FieldInfo field)
 {
     return(AttributeUtility.GetPropertyAttribute(AttributeUtility.GetCustomAttributes(field)) ?? field.FieldType);
 }
示例#3
0
 public static Type GetCustomDrawerAttribute(Type type)
 {
     return(AttributeUtility.GetCustomDrawerAttribute(AttributeUtility.GetCustomAttributes(type)));
 }
示例#4
0
 public static string GetTooltip(this FieldInfo field)
 {
     return(AttributeUtility.GetTooltip(AttributeUtility.GetCustomAttributes(field)));
 }
示例#5
0
 public static string GetTooltip(this Type type)
 {
     return(AttributeUtility.GetTooltip(AttributeUtility.GetCustomAttributes(type)));
 }
示例#6
0
 public static string GetTooltip(this object obj)
 {
     return(AttributeUtility.GetTooltip(obj.GetType()));
 }