示例#1
0
        public bool Equals(correlation <T> other)
        {
            if (other == null)
            {
                return(false);
            }

            if (id.Equals(other.id))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
示例#2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            correlation <T> corrObj = obj as correlation <T>;

            if (corrObj == null)
            {
                return(false);
            }
            else
            {
                return(Equals(corrObj));
            }
        }