- Timestamp:
- 06/28/17 22:55:27 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/3.3/MultiOperator.cs
r14185 r15084 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Linq; 24 25 using HeuristicLab.Collections; 25 26 using HeuristicLab.Common; … … 52 53 } 53 54 } 55 56 IEnumerable<IOperator> IMultiOperator.Operators { get { return operators.AsEnumerable(); } } 54 57 55 58 [StorableConstructor] … … 69 72 private void AfterDeserialization() { 70 73 Initialize(); 74 } 75 76 public virtual bool AddOperator(IOperator op) { 77 var tOp = op as T; 78 if (tOp == null) return false; 79 operators.Add(tOp); 80 return true; 81 } 82 83 public virtual bool RemoveOperator(IOperator op) { 84 var tOp = op as T; 85 if (tOp == null) return false; 86 return operators.Remove(tOp); 71 87 } 72 88
Note: See TracChangeset
for help on using the changeset viewer.