public static HashCodeBuilder AddProperties( this HashCodeBuilder hashCodeBuilder, IEnumerable <PropertyDescriptor> properties) { foreach (var property in properties) { hashCodeBuilder.AddCode(BuildProperty(property.Type, property.Name)); } return(hashCodeBuilder); }
public static HashCodeBuilder AddProperty( this HashCodeBuilder hashCodeBuilder, PropertyDescriptor descriptor) { return(hashCodeBuilder.AddCode(BuildProperty(descriptor.Type, descriptor.Name))); }