This is an attempt to create a version of Generic List that aggregates values when objects are added/updated/removed to the list.
The list uses reflection to figure out which property of the stored objects to aggregate by and currently supports adding, removing and updating by string, double and int properties of the stored type.
This project comes with the code for the list as well as a test project.
There are basically 3 properties you need to set before using this just like any other Generic List.
*bool RemoveOnNull*: This property defines whether items should be removed from the list when the aggregated values reach 0 (for numbers) or "" for strings.
*string AggregatePropertyName*: the name of the property in the class you'll be storing in the list.
*List PropertiesToAggregate*: A list of property names that should be aggregated when the *AggregatePropertyName* property of the item being added/removed from the list matches an item in the list.
Use Patent Claims
Include Install Instructions
These details are provided for information only. No information here is legal advice and should not be used as such.