Combination of Overriding Generic Methods : Generic Constraint : Generics C# Source Code


Custom Search

C# Source Code » Generics » Generic Constraint »

 

Combination of Overriding Generic Methods








    
 

/*
Base Method    Derived Method        Comments

Nongeneric     Generic (open)        Permitted

Nongeneric     Generic (closed)      Permitted

Generic (open) Nongeneric            Not permitted

Generic (open) Generic (open)        Permitted; must use the same type parameters

Generic (open) Generic (closed)      Not permitted

Generic (closed) Nongeneric          Permitted

Generic (closed) Generic (closed)    Permitted

Generic (closed)  Generic (open)     Not permitted
*/

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Generics
» Generic Constraint