Changeset 7758 for branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/ResourceRegressionInstanceProvider.cs
- Timestamp:
- 04/24/12 15:22:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/ResourceRegressionInstanceProvider.cs
r7667 r7758 31 31 public abstract class ResourceRegressionInstanceProvider : RegressionInstanceProvider { 32 32 33 protected abstract string File Extension{ get; }33 protected abstract string FileName { get; } 34 34 35 35 public override IEnumerable<IDataDescriptor> GetDataDescriptors() { 36 var solutionsArchiveName = GetResourceName(File Extension+ @"\.zip");36 var solutionsArchiveName = GetResourceName(FileName + @"\.zip"); 37 37 if (!String.IsNullOrEmpty(solutionsArchiveName)) { 38 38 using (var solutionsZipFile = new ZipInputStream(GetType().Assembly.GetManifestResourceStream(solutionsArchiveName))) { … … 66 66 67 67 private string GetTempFileForResource(string resourceName) { 68 var instanceArchiveName = GetResourceName(File Extension+ @"\.zip");68 var instanceArchiveName = GetResourceName(FileName + @"\.zip"); 69 69 using (var instancesZipFile = new ZipFile(GetType().Assembly.GetManifestResourceStream(instanceArchiveName))) { 70 70 var entry = instancesZipFile.GetEntry(resourceName);
Note: See TracChangeset
for help on using the changeset viewer.