protected bool Equals(WindowsAuthData other) { var baseEqual = string.Equals(Name, other.Name) && Enabled.Equals(other.Enabled) && Equals(Databases.Count, other.Databases.Count) && Equals(FileSystems.Count, other.FileSystems.Count); if (baseEqual == false) { return(false); } for (int i = 0; i < Databases.Count; i++) { if (Databases[i].Equals(other.Databases[i]) == false) { return(false); } } for (int i = 0; i < FileSystems.Count; i++) { if (FileSystems[i].Equals(other.FileSystems[i]) == false) { return(false); } } return(true); }
protected bool Equals(WindowsAuthData other) { var baseEqual = string.Equals(Name, other.Name) && Enabled.Equals(other.Enabled) && Equals(Databases.Count, other.Databases.Count); if(baseEqual == false) return false; for (int i = 0; i < Databases.Count; i++) { if(Databases[i].Equals(other.Databases[i]) == false) return false; } return true; }