public override bool Equals(object obj) { if (obj == null || typeof(Identity) != obj.GetType()) { return(false); } return(Sid.Equals(((Identity)obj).Sid)); }
private void CompareSid(string sid_name, Sid left, Sid right) { if (left is null && right is null) { return; } if (left is null) { WriteWarning($"{sid_name} left not present."); return; } if (right is null) { WriteWarning($"{sid_name} right not present."); return; } if (!left.Equals(right)) { WriteWarning($"{sid_name} SIDs mismatch, left {left} right {right}."); } }