public static void AddOrReplace(IDatapointType dptype) { if (_list.ContainsKey(dptype.Id)) { _list.Remove(dptype.Id); } _list.Add(dptype.Id, dptype); }
public bool Equals(IDatapointType other) { var typedother = (DPType <TValue>)other; return(typedother != null && Id == other.Id); }