Esempio n. 1
0
        public static HashCodeBuilder AddProperties(
            this HashCodeBuilder hashCodeBuilder,
            IEnumerable <PropertyDescriptor> properties)
        {
            foreach (var property in properties)
            {
                hashCodeBuilder.AddCode(BuildProperty(property.Type, property.Name));
            }

            return(hashCodeBuilder);
        }
Esempio n. 2
0
 public static HashCodeBuilder AddProperty(
     this HashCodeBuilder hashCodeBuilder,
     PropertyDescriptor descriptor)
 {
     return(hashCodeBuilder.AddCode(BuildProperty(descriptor.Type, descriptor.Name)));
 }