예제 #1
0
        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));
        }
예제 #2
0
 public bool Equals(XmlNullable <T> other)
 {
     return(other != null && other.actualValue.Equals(actualValue));
 }