/// <summary> /// Returns true iff these represent the same underlying type /// and the SafeType has the same parent type. /// </summary> /// <param name="o">The other</param> /// <returns>true iff these represent the same underylying type /// and the TypeGroup has the same parent type</returns> public override bool Equals(object o) { if (o is SafeType <T> ) { SafeType <T> other = (SafeType <T>)o; return(RawType.Equals(other.RawType)); } return(false); }
/// <summary> /// Returns the generic type definition corresponding to this type. /// Will return the same type if this is already a generic type. /// </summary> /// <returns></returns> public SafeType <T> GetTypeErasure() { return(SafeType <T> .ForRawType(ReflectionUtil.GetTypeErasure(RawType))); }