Class UnconfiguredDLLSettings.UnconfiguredSetting
Settings are organized into a private collection that belongs to the singleton.
Inheritance
Namespace: WizardWrx.Core
Assembly: WizardWrx.Core.dll
Syntax
public class UnconfiguredSetting : IComparable<UnconfiguredDLLSettings.UnconfiguredSetting>
Constructors
| Improve this Doc View SourceUnconfiguredSetting(String, String, String)
All interaction is expected to be with this constructor.
Declaration
public UnconfiguredSetting(string configFileName, string propertyName, string propertyValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | configFileName | Settings are associated with a named configuration file. Only its base name matters, however. |
System.String | propertyName | Each property name must be unique within the scope of its configuration file. |
System.String | propertyValue | The default property value is recorded herein for reference. |
Properties
| Improve this Doc View SourceConfigFileName
Gets or sets the configuration file name
Declaration
public string ConfigFileName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PropName
Gets or sets the property name
Declaration
public string PropName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PropValue
Gets or sets the default value assigned to the property
Declaration
public string PropValue { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceEquals(Object)
Override the Equals method on the base class to give a value that contains the absolute (fully qualified) configuration value name, composed of the configuration file name and the key name.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Comparand |
Returns
Type | Description |
---|---|
System.Boolean | True if this instance and the other refer to the same configuration file key. |
GetHashCode()
Return a hash code based on the equality value.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The return value is the hash code that corresponds to the equality value. |
ToString()
Return a concatenated string composed of the name of the configuration file followed by the configuration value name.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The return value is the configuration file name and key name, separated by an underscore character. |