public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj.GetType() == typeof(T)) { return(Equals((T)obj)); } XmlNullable <T> xmlObj = obj as XmlNullable <T>; return(xmlObj != null && Equals(xmlObj)); }
public bool Equals(XmlNullable <T> other) { return(other != null && other.actualValue.Equals(actualValue)); }