DamienG

Stories submitted by DamienG

Observing change events on a List<T> in C#(damieng.com)

submitted by DamienGDamienG(1405) 5 years, 11 months ago

List<T> is a useful container for managing simple lists of objects but what happens when you want to be notified of changes? This article presents an ObservableList<T> class that provides IList<T> functionality with the addition of Changed and Cleared events. read more...

add a comment |category: |Views: 1592

tags: another

Automatic comparison operator overloading in C#(damieng.com)

submitted by DamienGDamienG(1405) 5 years, 11 months ago

How to get Equals, !=, <, >, <=, >= by just implementing CompareTo in C#. read more...

add a comment |category: |Views: 11

tags: another

IEnumerable<T> casting to IEnumerable<BaseClassOfT>(damieng.com)

submitted by DamienGDamienG(1405) 5 years, 11 months ago

Ever had the scenario whereby you want to expose your generic collection only to find what you really want to expose is a collection of your subtype or interface supported by your type? This article shows you a simple lightweight generic wrapper. read more...

add a comment |category: |Views: 10

tags: another