Unity Developer Question:

Download Job Interview Questions and Answers PDF

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

Unity Developer Interview Question
Unity Developer Interview Question

Answer:

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.

Download Unity Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me you name three ways to pass parameters to a method in C#?Explain what a "lot of work" looks like to you?