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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Limitations of Generics

Posted By:      Posted Date: September 08, 2010    Points: 0   Category :ASP.Net
1. Can anyone explain me the basic disadvantage og generics and delegates? 2. Also i would like to know the the basic reason why generics were introduces apart from TYPE SAFETY???  3. What is the difference between Error and Exception ? 4. What is the difference between shadowing and overriding? Note: Request you to please don't send any links and  please explain with examples. Any help APPRECIATED.

View Complete Post

More Related Resource Links

TreeSelector : playing with generics and type inference

create a generic way to define a selection starting from a tree of objects, the most simpler way as possible.

Let's start with the beginning...
Here is a very simple little interface defining a node of the tree, basically, a value and the references to the child nodes.

Advanced Basics: Reflection and Generics


This month Advanced Basics flaunts the power of generics and reflection and shows how you get more flexible and efficient development by combining the two.

Ken Getz

MSDN Magazine January 2008

Netting C++: Mapping Templates to Generics


In this installment, Stanley Lippman continues to port his ISO-C++ Text Query Language application to the Microsoft .NET Framework and C++/CLI.

Stanley Lippman

MSDN Magazine April 2007

Pure C++: How Templates and Generics Work Together


I'm closing out this series of columns on generic programming in the Microsoft® . NET Framework by showing how templates and generics do and do not work together, and pointing out a pitfall with the current implementation of templates under Visual C++® 2005.

Stanley B. Lippman

MSDN Magazine April 2006

.NET Column: Introducing Generics in the CLR


Generics are an extension of the CLR type system that allow developers to define types for which certain details are left unspecified. These details are specified when the code is referenced by consumer code, making for enhanced flexibility. Jason Clark explains how.

Jason Clark

MSDN Magazine Visual Studio 2005 Guided Tour 2006

Pure C++: CLR Generics Versus C++ Templates


Visual Studio® 2005 brings the type parameter model of generic programming to the Microsoft® . NET Framework. C++/CLI supports two type parameter mechanisms-common language runtime (CLR) generics and C++ templates.

Stanley B. Lippman

MSDN Magazine June 2005

Dynamic Data Use And Limitations


I have been looking at dynamic data based applications for a little while now and it looks like this technology could be deployed in many scenarios. In my case I am interested in using it to deliver relatively small database applications to small to medium sized companies, often replacing data in homespun spreadsheets with a well ordered database. The attraction to me being that dynamic data allows the application to be created (and subsequently altered) much more efficiently than with lots of hand coded web forms.

What experience have others had using this technology on live sites, have you come across any road blocks or gotchas in terms of performance, security or general functionality? Is it being used in a diverse range of scenarios?

Serialization and generics : problem with xmlinclude

Hello everyone. I've got a hierarchy of class like this: [Serializable] [xmlinclude(DiscreteDomain)] public abstract class Domain { } [Serializable] [xmlinclude(DiscreteDomain<>)] public abstract class DiscreteDomain : Domain { } [Serializable] public sealed class DiscreteDomain<T> : DiscreteDomain { } I can't serialize an object of type DiscreteDomain<T> because xmlinclude can't be used with a generics like DiscreteDomain<> (a type must be specified but i can't).   How can I serialize this type of object ?   Thx, JP

vs 2010 Web Developer Express Limitations

What is the different between the vs 2010 Web Developer Express and the full version of 2010? With the vs 2010 Web Developer Express will I be able to use all types of databases (MSSQL, MySQL, Access, ect) and enitity frame work?

Limitations Of SSRS

Hi All, I am parikshit currently i am working BI Technology. I have to find out all the limitations of SSRS? also Why and when we use SSRS ? Thank you, Please give me answer. it is benifitial to all. please... Parikshit    

Reporting Services 2008 Limitations.

Hi All, I want to share the limitaions of SSRS 2008. 1) Blank Page issue with Dynamic Columns and Rows. 2) Global Parameters Can not be used in Body of the Report. 3) Details under the adjecent Groups will have issue with data. Nevermind if i am my assumption are wrong please correct me :) Please add the limitaions and issues which i am not listed above. Thanks, Veeren.  

Linq to SQL and Generics

I'm using something like the following code (programatically mapped) to save on linq to sql:     SaveEmployee(Employee employee)     {         MyCompanyContext context = new MyCompanyContext();         context.Employees.InsertOnSubmit(employee);         context.SubmitChanges();     } Now I'm trying to implement a new architecture, using CRUD and generic methods, like:     Save(T entity)     {             MyCompanyContext context = new MyCompanyContext();             //context.Employees.InsertOnSubmit(employee);             //context.SubmitChanges();     } But I'm having a hard time to code the two commented lines. Any tip? Best regards, André

Generics with Interface constraint from WCF.

Hello Not sure this is possible, but there might be a smart person out there who can answer it. Heck, maybe its simple :) I have a class that consumes an WCF service. That class contains the following generic method:   private void BuildTree<T, U>(T tree, U rootNode, ref List<U> listToBeBuilt) where T : ITreeDefinition, IEnumerable<T> where U : ITreeDefinition { ... }  Basically, it builds a tree based on generic data etc. However, it can't work without ITreeDefinition:   public interface ITreeDefinition { string GetRoot { get; set; } string GetChild { get; set; } }    This interface is contained in the WCF service, and used like so:   [DataContract] [KnownType(typeof(ITreeDefinition))] public class CaseStructureInfo : ITreeDefinition { #region OtherCode ... #endregion // Defines what properties to use to build a treetable. [DataMember] public string GetRoot { get { return SagsNr; } set { SagsNr = value; } } [DataMember] public string GetChild { get { return Hovedsag; } set { Hovedsag = value; } } }    The problem: The constraint "ITreeDefinition" is unknown to the generic method, because it is only visible in the WCF service. Can anyone help me out with this? Ps.  For the sake of understanding, here is the rest of the generic method... it is recursive, so

With CTE Limitations

Hi,  Is there any limitations on how many With CTEs you can use in a Stored Procedure? I have a SP which has 3 temp tables. I am trying to use With CTE instead of temp tables. The reason is to index them and have better performance.  Thanks in advance. Best Wishes, Arbi --- Please vote if you find this posting was helpful or Mark it as answered.

using table valued parameters for stored procedures any limitations

I am thinking of using a table valued parameter for my new stored procedure, but wonder if there are any performance implications to be aware of and is the limitation of using statistics applicable with table value parameters, i.e do they keep statistics and will this affect the judgement of query plans i.e estimated number of rows, from my experience table variables do suffer from this problem but I would like to confirm if it applies to table value parameters as well.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

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