public override bool Equals(object? obj) { if (obj is Namespace ns && Name == ns.Name) { if (ParentNamespace is null) return ns.ParentNamespace is null; if (!(ns.ParentNamespace is null)) return ParentNamespace.Equals(ns.ParentNamespace); } return false; }
public override bool Equals(object?obj) { if (obj is Namespace ns && Name == ns.Name) { if (ParentNamespace is null) { return(ns.ParentNamespace is null); } if (!(ns.ParentNamespace is null)) { return(ParentNamespace.Equals(ns.ParentNamespace)); } } return(false); }