Generics in C#.
Generics in c# is used to make the code reusable and which intern decreases the code redundancy and increases the performance and type safety in c# programming
Namespace – “System.Collections.Generic” is available in C# and this should be used over “System.Collections” types.
Generics in c#
Generics is concept and it implementation is called Generics
collection. Generics is not Generics collection.
Namespace – “System.Collections.Generic” is available in C# and this should be used over “System.Collections” types.
Public, Static and void variables & method in C#.
Public declared variables or methods are accessible anywhere in the programm.
Static declared variables or methods are globally accessible without creating an instance of the class.
Static member are by default not globally accessible it depends upon the type of access modified used.Static variables are called with class name.
The compiler stores the address of the method as the entry point and uses this information to begin execution before any objects are created. And Void is a type modifier that states that the method or variable does not return any value.
Generics in c#
Generics is concept and it implementation is called Generics
collection. Generics is not Generics collection.

0 Comments