public bool Equals(TermNodeWithGuid tnwguid) { if (tnwguid == null) { return(false); } return(this.GUID.Equals(tnwguid.GUID)); }
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)); }