Esempio n. 1
0
 public bool IsCompatibleWith(ValueTypeBase valueType)
 {
     if (this is InfoValueType)
     {
         return(true);
     }
     if (valueType.GetType() != GetType())
     {
         return(false);
     }
     if (valueType.SupportsNumericalComparisons.Equals(SupportsNumericalComparisons) &&
         Enumerable.SequenceEqual(AcceptedValues, valueType.AcceptedValues))
     {
         return(true);
     }
     return(false);
 }
            public ScenarioCastTest(Lazurite.ActionsDomain.ValueTypes.ValueTypeBase valueType, string name, string id)
                : base((s) => Console.WriteLine(name + " " + s), () => valueType.DefaultValue, valueType, name, id, true, true, true)
            {

            }