- Timestamp:
- 01/13/09 15:07:31 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CEDMA-Refactoring-Ticket419/HeuristicLab.CEDMA.Core/DataSetList.cs
r992 r1116 41 41 store = value; 42 42 Action reload = ReloadList; 43 lock (dataSetList) {43 lock (dataSetList) { 44 44 dataSetList.Clear(); 45 45 } … … 58 58 59 59 private void ReloadList() { 60 IList<Statement>statements = store.Select(new Statement(Ontology.AnyEntity, Ontology.PredicateInstanceOf, Ontology.TypeDataSet));61 foreach (Statement s in statements) {60 var statements = store.Select(new Statement(Ontology.AnyEntity, Ontology.PredicateInstanceOf, Ontology.TypeDataSet)); 61 foreach (Statement s in statements) { 62 62 DataSet d = new DataSet(store, s.Subject); 63 lock (dataSetList) {63 lock (dataSetList) { 64 64 dataSetList.Add(d); 65 65 } … … 70 70 public IEnumerator<DataSet> GetEnumerator() { 71 71 List<DataSet> dataSets = new List<DataSet>(); 72 lock (dataSets) {72 lock (dataSets) { 73 73 dataSets.AddRange(dataSetList); 74 74 }
Note: See TracChangeset
for help on using the changeset viewer.