Changeset 2987
- Timestamp:
- 03/10/10 03:40:18 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Parameters/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Parameters/3.3/LookupParameter.cs
r2932 r2987 44 44 } 45 45 public new T ActualValue { 46 get { return (T)GetActualValue(); } 47 set { SetActualValue(value); } 46 get { 47 if (cachedActualValue == null) cachedActualValue = GetActualValue(); 48 return (T)cachedActualValue; 49 } 50 set { 51 cachedActualValue = value; 52 SetActualValue(value); 53 } 48 54 } 49 55 -
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.