C# Beginner to advanced - Lesson 54 - Generics

مجله پرشین تک
مجله پرشین تک
63 بار بازدید - 6 سال پیش - Generics: Generics are introduced in
Generics: Generics are introduced in C# 2.0. Generics allow us to design classes and methods decoupled from the data types. Generics classes are extensively used by Collection classes available in System.Collections.Generic namespace. Example: One way of making IsEqual() method reusable, is to use object type parameters. Since every type in .Net directly or indirectly inherit from System.Object type, IsEqual() method works with any data type, but the problem is performance degradation due to boxing and unb
6 سال پیش در تاریخ 1397/03/11 منتشر شده است.
63 بـار بازدید شده
... بیشتر