.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Interview Question >> C# >> Post New Question Subscribe to Interview Questions

What is Generic

Posted By :Ashutosh Jha     Posted Date :May 23, 2014    Points :40   Category :C# 
Generic help us to create flexible strong type collection.

Generic basically separate the logic from the datatype in order maintain better re usability, better maintainability etc.

You can also find related Interview Question to What is Generic  below: 

What Are the Generic Delegates?

The System namespace defines five new generic delegates. The first is EventHandler defined as:

public delegate void EventHandler(object sender,E e) where E : EventArgs (More...)

What Are the Generic Methods of System.Array?

The System.Array type is extended with many generic static methods. The generic static methods are designed to automate and streamline common tasks of working with arrays, such as iterating over the array and performing an action on each element, scanning the array looking for a value that matches a certain criteria (a predicate), converting and sorting the array, and so on. Below is a partial listing of these static methods (More...)

How Do I Reflect Generic Types?

Like most other things done with reflection, you use the class Type. Type can represent generic types with specific type arguments (called bounded types), or unspecified (unbounded) types.

Both typeof and GetType() can operate on type parameters:

Copy Code
public class MyClass
public void SomeMethod(T t)
Type type = typeof(T);
Debug.Assert(type == t.GetType());
} (More...)

Give Some Examples of Generic Classes?

List,Queue,Stack,LinkedList,HashSet (More...)

Examples of Generic Classes?

List,HashSet (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend