Click here to Skip to main content
15,867,568 members
Everything / Programming Languages / C# 4.0

C# 4.0

C#4.0

Great Reads

by Igor Ladnik
Wrapper to facilitate usage of TCP sockets
by Sacha Barber
It would probably be like Cinch, an MVVM framework for WPF.
by Roman Kiss
This article describes a design, implementation and usage of the Custom Routing Manager for managing messages via Routing Service built-in .Net 4 Technology.
by Adam David Hill
All the juicy tricks and scandalous shortcuts which helped us ship our competition game on time

Latest Articles

by Elmue
An easy to use 3D control which can be integrated into an application in a few minutes
by NikStar
Using OutgoingMessageProperties and OperationContextScope to implement authorization by http header for WCF client that communicates with non WCF-based web services.
by Siddhartha S.
WPF smart client demo of nitty gritty of MVVM for a real life LOB application
by Shivprasad koirala
Understanding two terminologies - reflection and dynamic keyword

All Articles

Sort by Score

C# 4.0 

28 Sep 2009 by Pete O'Hanlon
3 Feb 2017 by tranthanhtu.vn
In "REST - Overview" article, I were introduced the basic rules in RESTful, Can you show me how to implement in WebApi?Ok, in this article, we will learn how to implement those rules in WebApi using C#.Where could I get sourcode was used in this article?Please checkout the code at https://github.com
30 Sep 2013 by Md. Rashim Uddin
How to download different types of files in asp.net
19 May 2011 by Aron Weiler
Like the title says... a simple (very simple) page transition control for WPF
23 Jul 2012 by Neeraj Kaushik1980
This article demonstrates implementation of knockoutjs observable viewmodel with jquery and ASP.NET MVC 3 and how to bind viewmodel with HTML controls.
13 Apr 2010 by Paulo Morgado
LINQ: Single vs. First
28 Jul 2012 by hoonzis
Pex is a tool which helps generate inputs for unit test. Moles is a stub framework used to isolate the unit tests from code which is not being tested. In this post, I will try to describe an attempt to use Pex and Moles to test a typical business layer.
15 Jun 2016 by Allen C. Copeland Jr
Grokking the CLI - Part 1: Meta Mayhem
15 Apr 2010 by Paulo Morgado
LINQ: Enhancing Distinct with the SelectorEqualityComparer
8 Oct 2012 by Bahrudin Hrnjica
Golden Ratio and GPdotNET v2 User Interface
18 Mar 2014 by Pragmateek
How to reduce the size of MongoDB documents generated from .NET/C#
5 Apr 2014 by Pragmateek
Synchronization, Memory Visibility and Leaky Abstractions
23 Jul 2010 by atverma
In this blog, I’ll focus on Content Controls and Open XML 2.0 SDK from the experience I gained in the last 2 months.
29 Sep 2010 by outcoldman
This is a small sample of using code contracts.
1 Jul 2017 by outcoldman
C# 4.0 in a Nutshell, Fourth Edition
24 Jan 2012 by atverma
Utility to Generate Word Documents from Templates Using Visual Studio 2010 and Open XML 2.0 SDK - Part 4
7 Apr 2014 by Dev Leader
IronPython: A quick WinForms introduction
16 Jun 2016 by Allen C. Copeland Jr
Grokking the CLI - Part 2: Meta Meanderings
15 Apr 2010 by Joe Rattz
Using LINQ To Filter By Object Type and Then Quantify
15 Apr 2010 by Paulo Morgado
15 Apr 2010 by Paulo Morgado
LINQ: Enhancing Distinct With The PredicateEqualityComparer
23 Apr 2012 by Giorgi Dalakishvili
This post is part of a series about building a simple mathematical expression evaluator.
29 Jun 2014 by Kyriakos Akriotis
SharePoint Debugging Assistant (free Visual Studio 2012/2013 add-in)
21 Jul 2015 by EngineerSpock
Turn on your brain and extract when its meaningful
12 Dec 2010 by Paulo Morgado
LINQ: Introducing The Skip Last Operators
14 May 2011 by Nikos Baxevanis
This post aims to provide a way to implement lazy initialization in a multi threaded environment using the SingleInstance(Of T) Class.
10 Jan 2011 by erik_nl
Logging with dynamic objects in .NET 4.0 (part 2-n) - user interaction logging
30 Mar 2011 by Chris_Green
Understanding BackgroundWorker threads and how to encapsulate your own thread class
2 Apr 2011 by Chris_Green
Welcome Microsoft Delegate! Lambda Expressions right this way…
4 May 2011 by Philip Laureano
LinFu.DynamicObject is flexible enough that it can let you build object instances at runtime and then 'strongly' duck type those object instances to any interface that matches the intended duck type.
11 Feb 2013 by Stephen Brannan
WPF Enumeration Data Provider
27 Nov 2013 by Debopam Pal
This example shows you how to create a nested GridView.
16 Apr 2010 by Paulo Morgado
C# 4.0: Covariance And Contravariance In Generics
18 Aug 2010 by Gil Fink
This post will introduce the select N+1 pitfall and explain how to avoid it in Entity Framework.
16 Jul 2012 by Libish Varghese Jacob
Configuring and using Entity Framework 4.1 for my Open Source project.
29 Sep 2013 by Md. Rashim Uddin
22 Sep 2011 by Adnan Boz
Massively Parallel Random Nunber Generation using CUDA C, Thrust and C#
7 Aug 2017 by JasonShort
In this article, I want to cover a particular problem I have had many times over the years. How do you speed up multithreaded apps that are bound by blocking functions, or long running I/O operations?
24 Aug 2009 by Salmanzz
In this post, I will explain you how I have embedded JavaScript, images and stylesheet to my previous article.
1 Feb 2010 by Pete O'Hanlon
Providing Undo/Redo across VMs (part 1 - simple properties)
11 May 2012 by Md. Rashim Uddin
How to log and trace WCF Soap messages?
22 Mar 2010 by Kunal Chowdhury «IN»
One of the new features in C# 4.0 – Named and Optional Parameters. Actually these are not a single feature, but two different features.
26 Feb 2011 by Adnan Boz
How to use CPU instructions in C# to gain performace
3 May 2010 by Pete O'Hanlon
Using the Task Parallel Library in .NET 4.0
14 Sep 2009 by Abhishek Sur
Make your class library COM visible using few simple steps
22 May 2013 by Jeffrey T. Fritz
How to add real-time interactivity to a website that is written with ASP.NET WebForms
18 Apr 2010 by Paulo Morgado
The major feature of C# 4.0 is dynamic programming - not just dynamic typing, but dynamic in a broader sense, which means talking to anything that is not statically typed to be a .NET object.
27 Dec 2010 by Nikos Baxevanis
This post aims to provide a way to implement the Model View ViewModel (MVVM) architectural pattern using Plain Old CLR Objects (POCOs) while taking full advantage of .NET 4.0 DynamicObject Class.
23 Sep 2010 by atverma
How to test a class member that is not public using Visual Studio 2010
5 Jul 2010 by JasonShort
LINQ Group By with NULL database values
28 Apr 2010 by Duy H. Thai
Some frequently-used methods for image handling in .NET
3 Apr 2012 by Rui Jarimba
You can use Metadata Providers to add microdata to your ASP.NET MVC applications.
25 Jan 2012 by Ayobami Adewole
Introduction to jQuery in ASP.NET applications
27 Dec 2012 by Jeffrey T. Fritz
I've been spending a bit of time over the past month looking into ALL of ASP.NET, not just MVC or SignalR or WebAPI.  
15 Jun 2012 by Rick Bassham
How to use the SqlChangeMonitor with the new MemoryCache class in .NET 4.0.
27 Nov 2011 by Dinesh K Mandal
11 Oct 2013 by SonuKSingh
Types of constructors available in C#
23 Jul 2010 by atverma
INotifyPropertyChanging and INotifyPropertyChanged in Real Life using Expression Trees
30 Jun 2013 by Md. Rashim Uddin
Getting introduced to WCF WebSocket
15 Apr 2010 by Paulo Morgado
LINQ: Single vs SingleOrDefault
16 Nov 2013 by Debopam Pal
Using Microsoft.Office.Interop.Excel library, you can bring your data from your database against LINQ query and store them into an Excel Sheet.
26 Jan 2011 by Abhishek Sur
Working with tuple in C# 4.0
19 Mar 2012 by Md. Rashim Uddin
How to define your own dialog box
20 Aug 2010 by Steve Maier
The same database and the same RIA Services can be used as a Web Service by using some simple additions to the setup of your project.
7 Jun 2009 by StormySpike
So, I was curious today, I had some code that used dynamic and was wondering what the heck the compiler was doing on the back end. So, I wrote up a very small test program, and tore into it using Reflector. The version of Reflector I used still only decompiles to C# 3, so it [...]
8 Feb 2010 by Shakeel Iqbal
Lambda Expression is one of the best features of C# 3.0
15 Mar 2015 by Shahriar Iqbal Chowdhury/Galib
Solve Mongo DB Element does not match any field or property of class
13 Dec 2010 by M Sheik Uduman Ali
C# 4.0 Crash Course: Optional and Named Parameter
5 Oct 2009 by Sohel_Rana
C# 4.0 includes a new feature called Tuple.
15 Apr 2010 by Paulo Morgado
As part of the co-evolution effort of C# and Visual Basic, C# 4.0 introduces Named and Optional Arguments.
17 Apr 2010 by Paulo Morgado
C# 4.0: Alternative To Optional Arguments
31 Jul 2010 by atverma
Criteria behind choosing IDisposable, IComponent, Component, MarshalByValueComponent and base Control classes(System.Windows.Form.Control and System.Web.UI.Control) while implementing a Class
5 Jun 2009 by StormySpike
System.Xml.Linq is a great library, it lets us very easily manipulate XML, in very close fashion to how we would interact with other data sources. My only issue is that it tends to seem a little redundant...
19 May 2011 by Aron Weiler
Just wrote this to scan for open ports on some software... it's pretty fast!
28 Mar 2010 by Sohel_Rana
Covariance and Contravariance in C#
16 Aug 2009 by Farooq Kaiser
In this article, I will explore named and optional parameters in C# 4.0.
28 Jun 2012 by Bhupindra Singh
Dependency Injection in ASP.NET MVC4 and webapi using Ninject
24 Aug 2009 by Kunal Chowdhury «IN»
Add "Select All" behaviour for all TextBoxes in your WPF application
7 Aug 2017 by JasonShort
Buffer.BlockCopy is not as fast as you think
10 Sep 2010 by User 6619207
Entity Framework Code First and WCF Data Services
18 May 2009 by gUrM33T
A simple workaround to avoid boxing and unboxing while still using a non-generic IList implementation
6 Jan 2011 by De, Subhendu
This article will discuss how to use events in asp.net user control