public override bool CompareTo(GenericValue param) { StateGenericValue <T> p = param as StateGenericValue <T>; DebugUtils.Assert(p != null, ""); return(CompareTo(p.Value)); }
public void Set <U>(string paraName, U value) { if (mParameters.ContainsKey(paraName)) { StateGenericValue <U> param = mParameters[paraName] as StateGenericValue <U>; DebugUtils.Assert(param != null, ""); if (!param.Value.Equals(value)) { param.Value = value; Update(paraName); } } }