Api Sandbox MemberDescription
class

MemberDescription

public class MemberDescription

Wraps MemberInfo but with caching and sandboxing. Returned by TypeLibrary and TypeDescription.

Properties

Name Type Description
TypeDescription TypeDescription The type that we're a member of
DeclaringType TypeDescription The type that actually defined this member. This may be different from TypeDescription if this member is inherited from a base class.
Name String Name of this type member.
Identity Int32 An integer that represents this member. Based off its type and name.
Title String Display name or title of this type member.
Description String Description of this type member. This usually provided from the summary XML comment above the definition.
Icon String The icon for this, if provided via the [Icon] attribute
Group String The group - usually provided via the [Group] attribute
ReadOnly Boolean If this is marked as [ReadOnly]
Order Int32 The display order - usually provided via the [Order] attribute
Tags String[] Tags are usually provided via the [Tags] attribute
Aliases String[] Aliases allow this to be found by alternative names.
Attributes Attribute[] Attributes on this member
IsStatic Boolean True if static
IsPublic Boolean True if publicly accessible
IsFamily Boolean
IsMethod virtual Boolean True if we're a method
IsProperty virtual Boolean True if we're a property
IsField virtual Boolean True if we're a field
SourceLine Int32 The line number of this member
SourceFile String The file containing this member

Methods

DisplayInfo GetDisplayInfo()

Access the full DisplayInfo for this type. This is faster than creating the DisplayInfo every time we need it.

Boolean IsNamed(String name)

Utility function to check whether this string matches this type. Will search name and classname.

Boolean HasTag(String tag)

Returns true if Tags contains this tag

Boolean HasAttribute()

Whether or not this has at least one of the specified attribute.

Boolean HasAttribute(Type t)

Whether or not this has at least one of the specified attribute.

T GetCustomAttribute()

Returns the first of Attributes of the passed in type. Or null.

Assembly: Sandbox.Reflection Namespace: Sandbox Full Name: Sandbox.MemberDescription