What are Generics?
Answers were Sorted based on User's Feedback
Answer / rt
Generics was a new addition in .NET 2.0
With generics we can create reusable classes. It promotes code reusability.
With generics we create classes with placeholders(<T>), and while creating object of that class we declare a value for that placeholder(int,double,etc) and from then on that object is bind to that type.
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / kumar vaibhav
Generics is a data structure which allow you to create type-safe data structures without committing to actual data types. Generics provides significant performance boost and higher quality code by reusing data processing algorithms without duplicating type-specific code.
| Is This Answer Correct ? | 5 Yes | 1 No |
generics in dot net have two concept boxing and unboxing
boxing ... we can convert value type into reference type
unboxing... it is very unexplict operation
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / rama krishna
Generics are place holders for actuval types.
Generics are defenied with left and right angular brackets.
Generics allows you to define type safe data sturtures
without comiting to actual types.
Generics in .net let you reuse the code and effort you put
implemnting in it.once you develop,test and deploy ur
application it can be used with any data type with future
type also it will support.why bcoz Generics doen't force
boxing or unboxing for value types or downcasting the
refernce types.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / rajnesh
generic === generic is a Namespace just collection of
arrays & arraylist .
which are use in c#
using system .collection.Generic;
| Is This Answer Correct ? | 1 Yes | 2 No |
What's the c# syntax to catch any possible exception?
How many types of constructor are there in c#?
what is CSharp
In a memory when you Box and Unbox a value-type what happens?
What is callback method in c#?
What are data types in C#?
0 Answers TryTechnicals Pvt Ltd,
Why do you call it a process? What’s different between process and application in .net, not common computer usage, terminology?
What is eager loading in c#?
What is the difference between == and object.equals?
Explain publishers and subscribers in events.
What is the purpose of dependency injection?
What is argument in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)