Changeset 14711 for branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/OptionalConstrainedValueParameter.cs
- Timestamp:
- 03/03/17 11:41:43 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceOverhaul/HeuristicLab.Parameters/3.3/OptionalConstrainedValueParameter.cs
r13368 r14711 32 32 /// </summary> 33 33 [Item("OptionalConstrainedValueParameter", "A parameter whose value has to be chosen from a set of valid values or is null.")] 34 [Storable Class("4C7B6C72-3684-4E0E-9BEC-9F8D20AC6152")]34 [StorableType("4C7B6C72-3684-4E0E-9BEC-9F8D20AC6152")] 35 35 public class OptionalConstrainedValueParameter<T> : Parameter, IConstrainedValueParameter<T> where T : class, IItem { 36 36 public override Image ItemImage { … … 67 67 if ((value != null) && (val == null)) 68 68 throw new InvalidOperationException( 69 string.Format(" Typemismatch. Value is not a \"{0}\".",69 string.Format("MemberSelection mismatch. Value is not a \"{0}\".", 70 70 typeof(T).GetPrettyName()) 71 71 );
Note: See TracChangeset
for help on using the changeset viewer.