Пример #1
0
        public static bool operator ==(BasePath path1, object path2)
        {
            if (BasePath.ReferenceEquals(path1, null))
            {
                return(BasePath.ReferenceEquals(path2, null));
            }

            return(path1.Equals(path2));
        }
Пример #2
0
        public override bool Equals(object obj)
        {
            BasePath basePath = obj as BasePath;

            if (!BasePath.ReferenceEquals(basePath, null))
            {
                return(this.Equals(basePath));
            }

            return(false);
        }