Generics in C# in Hindi (हिंदी) | Advantages of Generic classes | List vs array list | C# generics

Описание к видео Generics in C# in Hindi (हिंदी) | Advantages of Generic classes | List vs array list | C# generics

In this video, we will discuss about Generics in .Net.

Generics allow you to define the specification of the data type of programming elements in a class or a method, until it is actually used in the program. In other words, generics allow you to write a class or method that can work with any data type.

You write the specifications for the class or the method, with substitute parameters for data types. When the compiler encounters a constructor for the class or a function call for the method, it generates code to handle the specific data type.

First we will look at what are generics and why they are useful, then we will how a Generic List is better than an array list. We will also see a real world example of how and when to use generics in your code in C#.

In this series we learn about some of the advanced topics in C# which are very important for someone looking for a career in C# development. We learn about working of these topics in Hindi with proper code examples to improve our knowledge and advance in C#.

---------------------------------------------------------------------------------------------

My setup:

Mic: https://amzn.to/3CqNqn5
Laptop: https://amzn.to/3rogkOe
Keyboard: https://amzn.to/3CoAtd9
Mouse: https://amzn.to/3M1Zj5R

Комментарии

Информация по комментариям в разработке