/// <summary> /// "Casts" a strongly type ID representing a derived type to a base type. /// </summary> public static Id <TOut> As <TIn, TOut>(this Id <TIn> id) where TOut : Element where TIn : TOut { return(new Id <TOut>(id.NumericId)); }
public bool Equals(Id <T> other) { return(other.NumericId == NumericId); }