public SampleDataSet ImportSampleDataFromXmlFile(string dataSourceName, string xmlFileName) { SampleDataSet dataSet = (SampleDataSet)null; bool flag = false; try { dataSet = this.CreateSampleDataSet(DataSetContext.SampleData, dataSourceName, false); if (dataSet != null) { flag = dataSet.ImportFromXml(xmlFileName, false); } } finally { if (!flag && dataSet != null) { this.SafelyRemoveSampleDataAndRootFolder(dataSet, true); dataSet = (SampleDataSet)null; } } return(dataSet); }