/// <summary> /// Static method which returns the object of XMLConfigurationAdapter to provide Singleton object /// </summary> /// <param name="strConfigFileName">Configuration File name</param> /// <returns></returns> public static XMLConfigurationAdapter GetXMLConfigurationAdapterObject(string strXMLFileName) { //No object created till now. Create new one and send it to caller if (Instance == null) { if (strXMLFileName == string.Empty) Instance = new XMLConfigurationAdapter(); else Instance = new XMLConfigurationAdapter(strXMLFileName); } //Returning object without cretaing new one again return Instance; }
/// <summary> /// Static method which returns the object of XMLConfigurationAdapter to provide Singleton object /// </summary> /// <param name="strConfigFileName">Configuration File name</param> /// <returns></returns> public static XMLConfigurationAdapter GetXMLConfigurationAdapterObject(string strXMLFileName) { //No object created till now. Create new one and send it to caller if (Instance == null) { if (strXMLFileName == string.Empty) { Instance = new XMLConfigurationAdapter(); } else { Instance = new XMLConfigurationAdapter(strXMLFileName); } } //Returning object without cretaing new one again return(Instance); }