Example #1
0
 /// <summary>
 /// Static method which returns the object of DBConfigurationAdapter to provide Singleton object
 /// </summary>
 /// <param name="strConnectionString">Database connection string</param>
 /// <returns></returns>
 public static RegistryConfigurationAdapter GetRegistryConfigurationAdapterObject(string strRegistryString)
 {
     //No object created till now. Create new one and send it to caller
     if (Instance == null)
     {
         Instance = new RegistryConfigurationAdapter(strRegistryString);
     }
     //Returning objec without cretaing new one again
     return(Instance);
 }
 /// <summary>
 /// Static method which returns the object of DBConfigurationAdapter to provide Singleton object
 /// </summary>
 /// <param name="strConnectionString">Database connection string</param>
 /// <returns></returns>
 public static RegistryConfigurationAdapter GetRegistryConfigurationAdapterObject(string strRegistryString)
 {
     //No object created till now. Create new one and send it to caller
     if (Instance == null)
     {
         Instance = new RegistryConfigurationAdapter(strRegistryString);
     }
     //Returning objec without cretaing new one again
     return Instance;
 }