DisplayInfoclass

Collects all the relevant info (such as description, name, icon, etc) from attributes and other sources about a type or type member.

objectDisplayInfo
Namespace
Sandbox
Assembly
Sandbox.Reflection
Declaration
public sealed struct Sandbox.DisplayInfo

Methods6

Showing 6 methods

public static Sandbox.DisplayInfo For(object t, bool inherit = True)PUBLICSTATIC

Retrieves display info about a given objects type.

ParameterTypeDescription
tobjectThe type to look up display info for.
inherit = TrueboolWhether to load in base type's display info first, then overrides all possible fields with given type's information.
Returns:DisplayInfoThe display info. Will contain empty fields on failure.

public static Sandbox.DisplayInfo ForMember(System.Reflection.MemberInfo t, bool inherit = True)PUBLICSTATIC

Retrieves display info about a given member or type.

ParameterTypeDescription
tMemberInfoThe member to look up display info for.
inherit = TrueboolIf member given is a `System.Type`, loads in base type's display info first, then overrides all possible fields with given type's information.
Returns:DisplayInfoThe display info. Will contain empty fields on failure.

public static Sandbox.DisplayInfo ForType(System.Type t, bool inherit = True)PUBLICSTATIC

Retrieves display info about a given type.

ParameterTypeDescription
tTypeThe type to look up display info for.
inherit = TrueboolWhether to load in base type's display info first, then overrides all possible fields with given type's information.
Returns:DisplayInfoThe display info. Will contain empty fields on failure.

public bool HasTag(string t)PUBLIC

Returns whether this type or member has given tag. (`TagAttribute`)

ParameterTypeDescription
tstringThe tag to test.
Returns:boolWhether the tag is present or not

On this page