5 using System.Reflection;
6 using SiliconStudio.Core.Reflection;
8 namespace SiliconStudio.
Paradox.Engine
12 private readonly
int order;
14 private readonly
string name;
16 private readonly
string category;
18 private readonly
string description;
20 public DisplayAttribute(
int order ,
string name = null,
string category = null,
string description = null)
24 this.category = category;
25 this.description = description;
28 public DisplayAttribute(
string name = null,
string category = null,
string description = null) : this(0, name, category, description)
48 public string Category
56 public string Description
66 return IsDisplayable(obj.GetType());
71 return type.GetTypeInfo().GetCustomAttributes(typeof(
DisplayAttribute),
true).GetEnumerator().MoveNext();
76 var attributes = type.GetTypeInfo().GetCustomAttributes(typeof(
DisplayAttribute),
true);
82 var attributes = memberInfo.GetCustomAttributes(typeof(
DisplayAttribute),
true);
static bool IsDisplayable(object obj)
DisplayAttribute(int order, string name=null, string category=null, string description=null)
DisplayAttribute(string name=null, string category=null, string description=null)
static DisplayAttribute GetDisplay(MemberInfo memberInfo)
static DisplayAttribute GetDisplay(Type type)
static bool IsDisplayable(Type type)