Description
The Aliases
property of the TypeDescription
class provides an array of string aliases associated with the described type. These aliases can be used to reference the type in different contexts or by different names, offering flexibility in how the type is identified and utilized within the Sandbox environment.
Usage
To access the Aliases
property, you need an instance of the TypeDescription
class. This property is read-only and returns an array of strings. You can iterate over this array to retrieve all aliases associated with the type.
Example
// Assume 'typeDescription' is an instance of TypeDescription
string[] aliases = typeDescription.Aliases;
foreach (string alias in aliases)
{
// Use each alias as needed
Console.WriteLine(alias);
}