API ReferenceSandbox
DisplayInfoclass
Collects all the relevant info (such as description, name, icon, etc) from attributes and other sources about a type or type member.
object→DisplayInfo
Methods6
Showing 6 methods
public static Sandbox.DisplayInfo For(object t, bool inherit = True)
Retrieves display info about a given objects type.
| Parameter | Type | Description |
|---|---|---|
| t | object | The type to look up display info for. |
| inherit = True | bool | Whether to load in base type's display info first, then overrides all possible fields with given type's information. |
public static Sandbox.DisplayInfo ForMember(System.Reflection.MemberInfo t, bool inherit = True)
Retrieves display info about a given member or type.
| Parameter | Type | Description |
|---|---|---|
| t | MemberInfo | The member to look up display info for. |
| inherit = True | bool | If member given is a `System.Type`, loads in base type's display info first, then overrides all possible fields with given type's information. |
public static Sandbox.DisplayInfo ForType(System.Type t, bool inherit = True)
Retrieves display info about a given type.
| Parameter | Type | Description |
|---|---|---|
| t | Type | The type to look up display info for. |
| inherit = True | bool | Whether to load in base type's display info first, then overrides all possible fields with given type's information. |
public bool HasTag(string t)
Returns whether this type or member has given tag. (`TagAttribute`)
| Parameter | Type | Description |
|---|---|---|
| t | string | The tag to test. |
Returns:
boolWhether the tag is present or notNo results match this filter.