2081 1

CSC378 · 2081 · 10 marks

Distinguish between collection and generics. What are named and positional attribute parameters? Write a program to create your own exception when the user gives subject name than 'C#'.

Distinguish between collection and generics. What are named and positional attribute parameters? Write a program to create your own exception when the user gives subject name than 'C#'.[10]

NET Centric ComputingChapter 1: Language PreliminariesAttributes

--- Basis Collection Generics --------- Namespace System.Collections System.Collections.Generic Type Safety Not type-safe; stores objects of any type Type-safe; stores objects of a specific type Data Type Works with object type (non-generic) Works with a specific declared type <T Boxing/Unboxing ...