Lecture overview -- Keyboard shortcut: 'u'  Previous page: The classes IntSet and StringSet -- Keyboard shortcut: 'p'  Next page: Problems -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 4 : 21
Object-oriented Programming in C#
Generic Types and Methods
The class ObjectSet

A set of Objects fulfills all needs, but ...

/user/normark/oop-csharp-1/sources/c-sharp/set/short/object/set.csThe class ObjectSet.


/user/normark/oop-csharp-1/sources/c-sharp/set/short/object/app.csA client of ObjectSet - working with sets of Die objects.


/user/normark/oop-csharp-1/sources/c-sharp/set/short/object/outputOutput from the ObjectSet client program.


/user/normark/oop-csharp-1/sources/c-sharp/set/short/object/app-misc.csA client of ObjectSet - working with set of different types.


/user/normark/oop-csharp-1/sources/c-sharp/set/short/object/output-miscOutput from the the client of ObjectSet - the version that works with sets of different types.


Class ObjectSet is not type safe

Use of class Object as element type requires a lot of casting