Part A:
Write a 200- to 300-word short-answer response to the following:
(a) Explain generics in C#. What are reasons for using generics? How do generics apply to collections? Write the code for a small example using C# code.
Ref: Chapter 7, Starting Out with Visual C#, pages 444 to 455.
(b) Write a 200- to 300-word short-answer response to the following:
Provide an example in which polymorphism would be useful. Write the code for the example. Explain its use of polymorphism using C# code.
Ref: Chapter 10, Starting Out with Visual C#, page 599.
Part B:
Write a 200- to 300-word short-answer response to the following:
(a) What Event is raised when the class implements the INotifyPropertyChanged interface?
(b) How does the IDataErrorInfo interface triggers the display of the error message from a bound textbox?
Provide the XAML code needed for a textbox bound to the Classification property of the Fireman class shown in this Lecture's code example.
Ref: ValidationwithWPF project posted under Course Materials
How to use IDataErrorInfo
https://tarundotnet.wordpress.com/2011/03/03/wpf-tutorial-how-to-use-idataerrorinfo-in-wpf/