Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
C#
Generics 72 codes
Home
C#
Generics
1 A base class constraint
2 A derived class with its own type parameters
3 A generic class with two generic parameters
4 A Generic Class with Two Type Parameters
5 A generic delegate being initialized with a normal method
6 A generic Point structure
7 A new() constructor constraint
8 A non-generic class can be the base class of a generic derived class
9 A prototypical generic method
10 A simple generic class
11 A simple generic class hierarchy
12 A simple generic delegate
13 A type parameter can be used as a constraint
14 Add Collection Items with IComparable interface implementation
15 Add object in a hierarchy into a generic Collection
16 Add user-defined object to generic Collection
17 Call ToString on generic type
18 Combination of Overriding Generic Methods
19 Combining inheritance of generic types and constraints
20 Comparing Instances of a Type Parameter
21 Constructor constraint
22 Convert Dictionary to String
23 Convert event to use generic delegate
24 Create relationship between two type parameters
25 Custom Generic ISerializable
26 Declare the generic class
27 Default Constructor Constraint
28 Demonstrate a generic interface
29 Demonstrate a generic method
30 Demonstrate a generic struct
31 Demonstrate a reference constraint
32 Demonstrate a value type constraint
33 Demonstrate the default keyword
34 Derivation Constraint
35 Deserialize generic type
36 Generic Anonymous Methods
37 Generic Binary Tree
38 Generic class with interface
39 Generic Collection and List
40 Generic collection class
41 Generic Delegate and non-generic delegate
42 Generic Fields
43 Generic Interface Demo
44 Generic methods can overload nongeneric methods
45 Generic parameter interface
46 Generic Queue
47 Generic TreeNode
48 Generics and Delegates
49 Implement generic IEnumerable
50 Implement generic IEnumerable and IEnumerator
51 Implements IComparableT
52 Inherit Type Parameter
53 List To String
54 Nested generic Types
55 Nested Types
56 Output the type information about the generic parameters
57 Overriding a virtual method in a generic class
58 Reference for Generic Types
59 Reference Type Constraint
60 Represents a generic collection of keyvalue pairs The enumerator returns the values in the order assigned
61 Serialization for generic type
62 Serialize and Deserialize generic objects
63 Sort by Name
64 String list and String set
65 The overriding method cannot change the inherited constraints
66 There are five types of constraints
67 This is a prototypical generic method
68 This Reference for Generic Types
69 Two Generic parameters
70 Use an interface constraint
71 Use multiple where clauses
72 Walk through a tree recursively