C# Класс WizardWrx.Core.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.
Наследование: GenericSingletonBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Add ( string configFileName, string propName, string propValue ) : void

Add a new unconfigured setting.

GetMissingPropsForFile ( string pstrConfigFileName ) : List

Return the list of parameters that are missing from the specified configuration file.

GetTheSingleInstance ( ) : UnconfiguredDLLSettings

Return a reference to the single instance after initializing it if needed.

Initializing the dictionary is handled by the private instance constructor.

Приватные методы

Метод Описание
UnconfiguredDLLSettings ( ) : System

Singletons keep ALL their constructors private.

Описание методов

Add() публичный Метод

Add a new unconfigured setting.
public Add ( string configFileName, string propName, string propValue ) : void
configFileName string /// Identify the affected configuration file. ///
propName string /// Identify the name of the missing property. ///
propValue string /// Recird its default value. ///
Результат void

GetMissingPropsForFile() публичный Метод

Return the list of parameters that are missing from the specified configuration file.
public GetMissingPropsForFile ( string pstrConfigFileName ) : List
pstrConfigFileName string /// Specify the name of the file for which the list is wanted. ///
Результат List

GetTheSingleInstance() публичный статический Метод

Return a reference to the single instance after initializing it if needed.
Initializing the dictionary is handled by the private instance constructor.
public static GetTheSingleInstance ( ) : UnconfiguredDLLSettings
Результат UnconfiguredDLLSettings