Click here to Skip to main content
15,881,872 members
Everything / Generics

Generics

generics

Great Reads

by Thomas Nielsen - getCore
This article will take a dive into one of the reasons why code sometimes sands over.
by Muraad Nofal
A haskell monad/(applicative)functor like interface in C# that extends IEnumerable.
by Razi Syed
Easily bind a class to .NET data controls like GridView, FormView, etc., and get an updated object or list back in the code-behind effortlessly.
by Andrew Rissing
How to get that last little nagging line to be covered...

Latest Articles

by Robert P. Howard
How to deserialize a JSON string that contains nested polymorphic objects
by Aram Tchekrekjian
Demystifying generics in C#
by johnniealan
ArcNet Protocol basics
by Bertus van Zyl
A tutorial about generics in C#, aimed at beginners

All Articles

Sort by Score

Generics 

2 Apr 2011 by Andrew Rissing
How to get that last little nagging line to be covered...
16 Aug 2011 by Damian Flynn
Here's a couple of gems...From IList to DataTable.From DataTable to array of T.// DataTable: from IListpublic static DataTable ToDataTable(this IList iList){ DataTable dataTable = new DataTable(); PropertyDescriptorCollection propertyDescriptorCollection = ...
2 Sep 2014 by DiponRoy
Let’s see how to make a simple model or Entity mapper using reflections in C#
31 Jan 2015 by Mayur Shah
Markup Extension that allows you to declare Generic classes in Xaml
1 Feb 2017 by BrettPerry
A helper class to run functions in an asynchronous pattern using the Func delegate
25 Jul 2014 by Kishor Deshpande
Methods which facilitate the conversion from string to value type
13 Aug 2011 by Vano Maisuradze
Very nice!I've modified ToCollection(this DataTable dt) extension function, so if DataTable column names and class property names are different, then you can use this alternative:public static List ToCollection(this DataTable table, Dictionary dic){ List lst = new...
6 Feb 2015 by Richard Deeming
This is an alternative for "Markup Extension for Generic classes"
5 Oct 2012 by Bryan Lyman
Generic list wrapper that returns a smaller strongly typed sub-list which modifies the parent-list when changed, without using events
14 Feb 2011 by Henry Minute
Sorting Lists Using an Anonymous Delegate
26 Mar 2011 by jc3po
How generics can be used to sort lists easily and efficiently.
30 Aug 2011 by Ilka Guigova
Sample use of generics and type retrieval
5 Oct 2011 by Paulo Zemek
All classes are naturally Lazy loaded.So a better implementation will be:public class Singletonwhere T: new(){ public static readonly T Instance = new T();}You will notice that before calling the singleton class, the object will not be loaded.Surely there are...
4 Aug 2015 by Abdul Ahad Monty
Convert DataTable to List using Generics.
9 May 2017 by Ammar Shaukat
C# 7.0 has been introduced with many new useful features. One of them is new datatype "ValueTuple". In this article, I'll be writing about Tuples in C# 7 briefly.
12 Jun 2011 by nit_singh
This is an example to Convert from a datatable to a specific type of collection using Generic
6 Feb 2017 by BrettPerry
A helper class to run func in ThreadPool.QueueUserWorkItem and receive the response from a delegate
10 Sep 2014 by DiponRoy
Let's make a lambda expression from a property name of a particular entity, and use it for OrderBy shorting
20 Nov 2014 by Jakob Lithner
Dapper offers fast database handling with custom SQL strings. This wrapper simplifies life by taking generic POCO objects and creates necessary SQL strings on the fly, and it is still very fast!
9 Apr 2014 by Nowaki
Matrix, Quaternion and three Vector structures with IL generated at runtime to provide support for all number types.
21 Jan 2015 by MahendraChawhan
Extension method for Generic Collection to DataTable
11 Jul 2016 by Alberto Nuti
In a console application, there is often the need to ask (and validate) some data from users. For this reason, I have created a function that makes use of generics and delegates to speed up programming.
14 Nov 2014 by Hrishi Gupte
Processing Collection in C# .NET using multiple threads
5 Mar 2017 by DotNetSteve
Creating an extension class for View Models to save public properties using Generics and Delegates, replacing a reflection implementation
11 Nov 2015 by Yuriy Magurdumov
Simple generic data structure to maintain hierarchical objects
19 Oct 2014 by Nikita Mazhara
Describes how to implement generic methods for Microsoft Fakes Stubs and Shims using reflection constructed delegates at runtime
8 Nov 2011 by manish31383
How to do controlled ThreadPooling using .NET Framework 4.0.
12 Mar 2015 by ThiagoTane
This is an alternative for "Simple Model/Entity Mapper in C#"
17 Oct 2011 by omid rezaei hanjani
Customized implementation of the Singleton pattern using Generics.
1 Oct 2011 by omid rezaei hanjani
Customized implementation of the Observer pattern using Generics.