Exemple #1
0
        public bool Equals(TermNodeWithGuid tnwguid)
        {
            if (tnwguid == null)
            {
                return(false);
            }

            return(this.GUID.Equals(tnwguid.GUID));
        }
Exemple #2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj.GetType() == typeof(TermNode))
            {
                return(base.Equals(obj));
            }

            if (obj.GetType() != typeof(TermNodeWithGuid))
            {
                return(false);
            }

            TermNodeWithGuid tnwguid = obj as TermNodeWithGuid;

            return(this.Equals(tnwguid));
        }