Changeset 2987 for trunk/sources/HeuristicLab.Parameters/3.3/Parameter.cs
- Timestamp:
- 03/10/10 03:40:18 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Parameters/3.3/Parameter.cs
r2834 r2987 43 43 get { return dataType; } 44 44 } 45 protected IItem cachedActualValue; 45 46 public IItem ActualValue { 46 get { return GetActualValue(); } 47 set { SetActualValue(value); } 47 get { 48 if (cachedActualValue == null) cachedActualValue = GetActualValue(); 49 return cachedActualValue; 50 } 51 set { 52 cachedActualValue = value; 53 SetActualValue(value); 54 } 48 55 } 49 56 [Storable] … … 54 61 if (value != executionContext) { 55 62 executionContext = value; 63 cachedActualValue = null; 56 64 OnExecutionContextChanged(); 57 65 }
Note: See TracChangeset
for help on using the changeset viewer.