Changeset 2948 for trunk/sources/HeuristicLab.Parameters
- Timestamp:
- 03/06/10 03:30:37 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Parameters/3.3/ValueParameter.cs
r2947 r2948 35 35 get { return base.Value; } 36 36 set { 37 if ( value == null) throw new ArgumentNullException();37 if ((value == null) && (Value != null)) throw new ArgumentNullException(); 38 38 base.Value = value; 39 39 } 40 40 } 41 41 42 private ValueParameter() : base() { } 42 public ValueParameter() : base() { } 43 public ValueParameter(string name) : base(name) { } 43 44 public ValueParameter(string name, T value) : base(name, value) { } 45 public ValueParameter(string name, string description) : base(name, description) { } 44 46 public ValueParameter(string name, string description, T value) : base(name, description, value) { } 45 46 public override IDeepCloneable Clone(Cloner cloner) {47 ValueParameter<T> clone = new ValueParameter<T>(Name, Description, Value);48 cloner.RegisterClonedObject(this, clone);49 clone.Value = (T)cloner.Clone(Value);50 return clone;51 }52 47 } 53 48 }
Note: See TracChangeset
for help on using the changeset viewer.