Class EnumDisplayNameAttribute
Specifies the display name for a property, event, or public void method which takes no arguments.
Inheritance
System.Object
System.Attribute
EnumDisplayNameAttribute
Implements
System.Runtime.InteropServices._Attribute
Inherited Members
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.Match(System.Object)
System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfoCount(System.UInt32)
System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfo(System.UInt32, System.UInt32, System.IntPtr)
System.Attribute.System.Runtime.InteropServices._Attribute.GetIDsOfNames(System.Guid, System.IntPtr, System.UInt32, System.UInt32, System.IntPtr)
System.Attribute.System.Runtime.InteropServices._Attribute.Invoke(System.UInt32, System.Guid, System.UInt32, System.Int16, System.IntPtr, System.IntPtr, System.IntPtr, System.IntPtr)
System.Attribute.TypeId
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Experior.Interfaces.dll
Syntax
[AttributeUsage(AttributeTargets.Field)]
public class EnumDisplayNameAttribute : Attribute, _Attribute
Constructors
EnumDisplayNameAttribute()
Initializes a new instance of the Experior.Core.Properties.EnumDisplayNameAttribute class.
Declaration
public EnumDisplayNameAttribute()
EnumDisplayNameAttribute(String)
Initializes a new instance of the Experior.Core.Properties.EnumDisplayNameAttribute class using the display name.
Declaration
public EnumDisplayNameAttribute(string displayName)
Parameters
Type |
Name |
Description |
System.String |
displayName |
The display name.
|
Fields
Default
Specifies the default value for the Experior.Core.Properties.EnumDisplayNameAttribute. This field is read-only.
Declaration
public static readonly EnumDisplayNameAttribute Default
Field Value
Properties
DisplayName
Gets the display name for a property, event, or public void method that takes no arguments stored in this attribute.
Declaration
public virtual string DisplayName { get; }
Property Value
Type |
Description |
System.String |
The display name.
|
DisplayNameValue
Gets or sets the display name.
Declaration
protected string DisplayNameValue { get; set; }
Property Value
Type |
Description |
System.String |
The display name.
|
Methods
Equals(Object)
Determines whether two Experior.Core.Properties.EnumDisplayNameAttribute instances are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
The Experior.Core.Properties.EnumDisplayNameAttribute to test the value equality of.
|
Returns
Type |
Description |
System.Boolean |
true if the value of the given object is equal to that of the current object; otherwise, false.
|
Overrides
System.Attribute.Equals(System.Object)
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
A hash code for the current Experior.Core.Properties.EnumDisplayNameAttribute.
|
Overrides
System.Attribute.GetHashCode()
IsDefaultAttribute()
Determines if this attribute is the default.
Declaration
public override bool IsDefaultAttribute()
Returns
Type |
Description |
System.Boolean |
true if the attribute is the default value for this attribute class; otherwise, false.
|
Overrides
System.Attribute.IsDefaultAttribute()
Implements
System.Runtime.InteropServices._Attribute