Equals() public static method

public static Equals ( ChangesetLink a, ChangesetLink b ) : bool
a ChangesetLink
b ChangesetLink
return bool
        public static bool Equals(ChangesetLink a, ChangesetLink b) {
            if(a == null) {
                return b == null;
            }

            return a.Equals(b);
        }
Ejemplo n.º 2
0
        public static bool Equals(ChangesetLink a, ChangesetLink b)
        {
            if (a == null)
            {
                return(b == null);
            }

            return(a.Equals(b));
        }
Ejemplo n.º 3
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            var other = (ChangesetWriterEntity)obj;

            return(AlwaysCreate == other.AlwaysCreate && Disabled == other.Disabled &&
                   string.Equals(ChangeComment, other.ChangeComment) && ChangesetLink.Equals(Link, other.Link));
        }