Description
The Value
property of the AliasAttribute
class provides an array of strings representing the alternate names or aliases for the class to which this attribute is applied. These aliases can be used to reference the class in a more flexible manner, allowing for multiple identifiers to be associated with a single class.
Usage
To use the Value
property, apply the AliasAttribute
to a class and specify the desired aliases as an array of strings. This can be useful for providing alternative names for a class, which can be accessed through the DisplayInfo
library.
Example
[Alias("MyClassAlias1", "MyClassAlias2")]
public class MyClass
{
// Class implementation
}