Answers

Question and Answer:

  Home  Unity Developer

⟩ Tell us what are some of the features of generics in C#?

Generics allow a developer to define a class or method that can work with virtually any data type by delaying specification of the programming elements’ data types until they are needed. Generics come with a number of features.

☛ They make C# code reusable, type safe, and performance optimized.

☛ They allow the developer to create generic classes, methods, events, delegates, and interfaces.

☛ They allow the developer to create generic collection classes in the System.Collections.Generic namespace.

☛ They make it possible to get real-time information on the types used in a generic data type at runtime via reflection.

 206 views

More Questions for you: