Example #1
0
        public bool Equals(Typed <T> other)
        {
            // Required type-check for derived classes using the base class TypedString.Equals(TypedString).
            if (other == null || !other.GetType().Equals(this.GetType()))
            {
                return(false);
            }

            var isEqual = this.Equals_Value(other);

            return(isEqual);
        }
        public static bool ValueEquals <T>(Typed <T> a, Typed <T> b)
        {
            var valueEquals = a.Value.Equals(b.Value);

            return(valueEquals);
        }
Example #3
0
        protected virtual bool Equals_Value(Typed <T> other)
        {
            var isEqual = this.Value.Equals(other.Value);

            return(isEqual);
        }