Beispiel #1
0
 /// <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));
 }
Beispiel #2
0
 public bool Equals(Id <T> other)
 {
     return(other.NumericId == NumericId);
 }