Ejemplo 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);
        }
Ejemplo n.º 2
0
 public static HashCodeBuilder AddProperty(
     this HashCodeBuilder hashCodeBuilder,
     PropertyDescriptor descriptor)
 {
     return(hashCodeBuilder.AddCode(BuildProperty(descriptor.Type, descriptor.Name)));
 }