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