How does c# generics and c++ templates compare?
Answer / Areena Asraf
Although both C# Generics and C++ Templates allow for type parameters, there are some differences. Generics in C# provide stronger type safety at compile time as they can enforce the type restrictions you specify, whereas C++ Templates generate code at compile time for each specific type, potentially leading to less efficient execution.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is deferred execution?
What is the use of ispostback in c#?
can we create an empty interface with no definitions? If so, how it should be called in the class?
What is an escape sequence?
How do I do implement a trace?
What is expression c#?
what is the use of master pages. how to use it
If dll and exe files are same it means you can deploy both the files in gac?
What are the types of access modifiers?
What is a three-tier application.
What is the use of private constructor in c#?
If multiple interfaces are inherited and they have conflicting method names; What will happen ?
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)