Пример #1
0
        /// <inheritdoc/>
        public override int GetHashCode()
        {
            var hashCode = new HashCodeBuilder();

            hashCode.Add(Name, StringComparer.OrdinalIgnoreCase);
            hashCode.Add(Value);
            return(hashCode.ToHashCode());
        }
Пример #2
0
        public override int GetHashCode()
        {
            var hashCode = new Azure.Core.HashCodeBuilder();

            if (Name != null)
            {
                hashCode.Add(Name, System.StringComparer.Ordinal);
            }
            hashCode.Add(Size);

            return(hashCode.ToHashCode());
        }