Class UnconfiguredDLLSettings
Organize the DLL configuration values that were omitted from the associated configuration file. Since multiple classes can and do share a DLL configuration file, this class must be a Singleton.
Inherited Members
Namespace: WizardWrx.Core
Assembly: WizardWrx.Core.dll
Syntax
public class UnconfiguredDLLSettings : GenericSingletonBase<UnconfiguredDLLSettings>
Properties
| Improve this Doc View SourceCount
Expose the Count property of the dictionary.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceAdd(String, String, String)
Add a new unconfigured setting.
Declaration
public void Add(string configFileName, string propName, string propValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | configFileName | Identify the affected configuration file. |
System.String | propName | Identify the name of the missing property. |
System.String | propValue | Recird its default value. |
GetMissingPropsForFile(String)
Return the list of parameters that are missing from the specified configuration file.
Declaration
public List<UnconfiguredDLLSettings.UnconfiguredSetting> GetMissingPropsForFile(string pstrConfigFileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | pstrConfigFileName | Specify the name of the file for which the list is wanted. |
Returns
Type | Description |
---|---|
List<UnconfiguredDLLSettings.UnconfiguredSetting> | The return value is a list of UnconfiguredSetting objects, which may be empty. |
GetTheSingleInstance()
Return a reference to the single instance after initializing it if needed.
Declaration
public static UnconfiguredDLLSettings GetTheSingleInstance()
Returns
Type | Description |
---|---|
UnconfiguredDLLSettings | This method overrides the like-named method on the base class, so that it can initialize its Dictionary object. |
Remarks
Initializing the dictionary is handled by the private instance constructor.