Create an Observable Collection. Listen to its Collection Changed Event and display message on UI for each operation.
1. Addition: “Element ‘x’ is added in collection”
2. Removal: “Element ‘x’ is removed from collection”
Use enum NotifyCollectionChangedAction to differentiate the action
Exercise 1: Extension methods on int
1. IsOdd
2. IsEven
3. IsPrime
4. IsDivisibleBy (taking one parameter excluding the first this parameter)
Comments
Leave a comment