SettingNameAttribute Class

Represents an attribute that defines the setting name of a property or field in a class for settings when serializing the value to the configuration file.

Definition

Namespace: Gemstone.Configuration
Assembly: Gemstone.Configuration (in Gemstone.Configuration.dll) Version: 1.0.128 -- Release Build+e642e346f6a184b82d0191f20af9f896bef9bb3d
[AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field)]
public sealed class SettingNameAttribute : Attribute
Inheritance
Object    Attribute    SettingNameAttribute

Remarks

This attribute allows consumers to override the name of the setting going into the configuration file, if the attribute doesn't exist the property or field name is used.

Constructors

SettingNameAttribute Creates a new SettingNameAttribute with the specified names value.

Properties

Name Gets the name used to serialize field or property into config file.
Names Gets the names used to serialize field or property into config file.
TypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)

Methods

EqualsReturns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
GetHashCodeReturns the hash code for this instance.
(Inherited from Attribute)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
MatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also