Pergunta de entrevista da empresa GM Financial

What are generics in C#?

Resposta da entrevista

Sigiloso

31 de jan. de 2020

Generics in C# is its most powerful feature. It allows you to define the type-safe data structures. This out-turn in a remarkable performance boost and high-grade code, because it helps to reuse data processing algorithms without replicating type-specific code. Generic types perform better than normal system types because they reduce the need for boxing, unboxing, and type casting the variables or objects.