Пример #1
0
 protected bool Equals(EvRole other)
 {
     return(string.Equals(Name, other.Name) &&
            string.Equals(Description, other.Description) &&
            string.Equals(DisplayName, other.DisplayName) &&
            GroupScope == other.GroupScope &&
            IsSecurityGroup.Equals(other.IsSecurityGroup));
 }
Пример #2
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = (Name != null ? Name.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (DisplayName != null ? DisplayName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ GroupScope.GetHashCode();
                hashCode = (hashCode * 397) ^ IsSecurityGroup.GetHashCode();

                return(hashCode);
            }
        }