Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Interview Questions
What is Generic
Posted By :
Posted Date :
May 23, 2014
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
What Are the Generic Delegates?
The System namespace defines five new generic delegates. The first is EventHandler
public delegate void EventHandler
(object sender,E e) where E : EventArgs
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
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:
public class MyClass
public void SomeMethod(T t)
Type type = typeof(T);
Debug.Assert(type == t.GetType());
Generic Collections are located in which NameSpace?
Give Some Examples of Generic Classes?
Examples of Generic Classes?
Quick Links For Interview Questions Categories:
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
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
Terms of Service
Tell A Friend