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# Tutorial
Generic 66 codes
Home
C# Tutorial
Generic
1 A derived class can add its own type parameters
2 A generic delegate
3 A generic iterator
4 A generic method
5 A more practical demonstration of a base class constraint
6 A nongeneric class can be the base class of a generic derived class
7 A reference constriant
8 A simple demonstration of a base class constraint
9 A simple generic class
10 A simple generic class hierarchy
11 A simple generic class with two type parameters
12 A value type constriant
13 Action collection
14 Add value to Generic List and display the array list using array indexing
15 Change contents in a generic List using array indexing
16 Constrained method calls
17 Create and use a generic Dictionary
18 Create generic Bag collection class based on generic List
19 Create relationship between two type parameters
20 Create Reverse Iterator
21 Creating a list from an array
22 Declaring a Generic Interface, Implementing a Generic Interface
23 Declaring a Generic with Multiple Type Parameters
24 Default generic parameter value
25 Default generic value
26 Demonstrate a new() constructor constraint
27 Demonstrate the default keyword
28 Enqueue and Dequeue value in a generic QueueT
29 Extends Collection
30 Generic and non Generic compare
31 Generic Collection
32 Generic Delegate
33 Generic IEnumeratorIEnumerable
34 Generic IEquatable
35 Generic Interface
36 Generic Interface for binary operation
37 Generic Method Demo
38 Generic Method Reflection
39 Generic Operator Overloading
40 Generic Pair
41 Generic Stack based on generic Array
42 Generic Type Reflection
43 IEnumeratorT
44 Implement generic IComparable T
45 Implement multiple generic interfaces by a non-generic class
46 Life without generics
47 List Capacity and Element Count
48 Multiple Argument Inference with value and object
49 Overriding a virtual method in a generic class
50 Provide different IComparer for a Class
51 Push and pop value in a generic StackT
52 Remove elements from generic List
53 Sort and search an array of objects
54 Static Field Per Closed Type
55 Store user-defined Objects in a ListT collection
56 Template method
57 Typeof Operator for generic collection
58 Use an interface constraint
59 Use foreach loop to display the generic list
60 Use generic IComparerT
61 Use generic list to store your own class
62 Use generic Statck to store your own class
63 Use multiple where clauses
64 Use the ContainsKey() method to check if mySortedList contains a key
65 Use the keys to obtain the values from a generic SortedListTK, TV
66 Where T