generics in c#

Generic in c# -: Generics refer to the use of type parameters, which provide a way to design code templates that can operate with different data types. Specifically, it is possible to create generic methods, classes, interfaces, delegates, and events. Generic Methods-:  In the following example, there is a method that swaps two integer arguments. as like … Read more