public static bool TryCreate(out IConfigTestDataService service) { var section = ConfigurationManager.GetSection(SectionName) as TestDataSection; if (section == null) { service = null; return false; } service = new SectionConfigTestDataService(section); return true; }
public static bool TryCreate(out IConfigTestDataService service) { var section = ConfigurationManager.GetSection(SectionName) as TestDataSection; if (section == null) { service = null; return(false); } service = new SectionConfigTestDataService(section); return(true); }