Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / Languages / C#4.0

C#4.0

C#4.0

Great Reads

by Anurag Prajesh
Add new user registeration information in XML with C#
by yazanjaradat
Ant-Colony Based Routing Algorithm (ARA) C# Simulation
by Nirosh
This tutorial is designed for .NET programmers who need to understand ‘Nido’ framework and its application.
by Suresh Dasari's
Auto Generate Code (CRUD) for 3 Layered architecture (Entity, Data Access & Business Layer) with Stored Procedures based on table design.

Latest Articles

by Anurag Prajesh
Add new user registeration information in XML with C#
by yazanjaradat
Ant-Colony Based Routing Algorithm (ARA) C# Simulation
by Nirosh
This tutorial is designed for .NET programmers who need to understand ‘Nido’ framework and its application.
by Suresh Dasari's
Auto Generate Code (CRUD) for 3 Layered architecture (Entity, Data Access & Business Layer) with Stored Procedures based on table design.

All Articles

Sort by Score

C#4.0 

by Rick Bassham
How to use the SqlChangeMonitor with the new MemoryCache class in .NET 4.0.
by gUrM33T
A simple workaround to avoid boxing and unboxing while still using a non-generic IList implementation
by Jeffrey T. Fritz
How to add real-time interactivity to a website that is written with ASP.NET WebForms
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.
by Rui Jarimba
You can use Metadata Providers to add microdata to your ASP.NET MVC applications.
by JasonShort
Buffer.BlockCopy is not as fast as you think
by Giorgi Dalakishvili
This post is part of a series about building a simple mathematical expression evaluator.
by M Sheik Uduman Ali
C# 4.0 Crash Course: Optional and Named Parameter
by outcoldman
C# 4.0 in a Nutshell, Fourth Edition
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.
by Paulo Morgado
C# 4.0: Alternative To Optional Arguments
by Paulo Morgado
C# 4.0: Covariance And Contravariance In Generics
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...
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.
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 [...]
by Paulo Morgado
As part of the co-evolution effort of C# and Visual Basic, C# 4.0 introduces Named and Optional Arguments.
by SonuKSingh
Types of constructors available in C#
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.
by Sohel_Rana
Covariance and Contravariance in C#
by Md. Rashim Uddin
How to define your own dialog box
by Bhupindra Singh
Dependency Injection in ASP.NET MVC4 and webapi using Ninject
by Md. Rashim Uddin
How to download different types of files in asp.net
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.
by Md. Rashim Uddin
Duplex service in WCF
by User 6619207
Entity Framework Code First and WCF Data Services
by De, Subhendu
This article will discuss how to use events in asp.net user control
by Pete O'Hanlon
Using the Task Parallel Library in .NET 4.0
by Bahrudin Hrnjica
Golden Ratio and GPdotNET v2 User Interface
by Abhishek Sur
Make your class library COM visible using few simple steps
by Allen C. Copeland Jr
Grokking the CLI - Part 1: Meta Mayhem
by Allen C. Copeland Jr
Grokking the CLI - Part 2: Meta Meanderings
by Kunal Chowdhury «IN»
Add "Select All" behaviour for all TextBoxes in your WPF application
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
by Libish Varghese Jacob
Configuring and using Entity Framework 4.1 for my Open Source project.
by atverma
How to test a class member that is not public using Visual Studio 2010
by Adnan Boz
How to use CPU instructions in C# to gain performace
by Md. Rashim Uddin
HTTPS Communication in WCF
by Duy H. Thai
Some frequently-used methods for image handling in .NET
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.
by atverma
INotifyPropertyChanging and INotifyPropertyChanged in Real Life using Expression Trees
by Ayobami Adewole
Introduction to jQuery in ASP.NET applications
by Dev Leader
IronPython: A quick WinForms introduction
by Shakeel Iqbal
Lambda Expression is one of the best features of C# 3.0
by JasonShort
LINQ Group By with NULL database values
by Paulo Morgado
LINQ: Enhancing Distinct With The PredicateEqualityComparer
by Paulo Morgado
LINQ: Enhancing Distinct with the SelectorEqualityComparer
by Paulo Morgado
LINQ: Introducing The Skip Last Operators
by Paulo Morgado
LINQ: Single vs. First
by Paulo Morgado
LINQ: Single vs SingleOrDefault
by Md. Rashim Uddin
How to log and trace WCF Soap messages?
by erik_nl
Logging with dynamic objects in .NET 4.0 (part 2-n) - user interaction logging
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.
by Adnan Boz
Massively Parallel Random Nunber Generation using CUDA C, Thrust and C#
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.
by Farooq Kaiser
In this article, I will explore named and optional parameters in C# 4.0.
by Debopam Pal
This example shows you how to create a nested GridView.
by Aron Weiler
Like the title says... a simple (very simple) page transition control for WPF
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.
by Sarath C
A simple Windows Phone 7 application
by Pragmateek
How to reduce the size of MongoDB documents generated from .NET/C#
by EngineerSpock
Turn on your brain and extract when its meaningful
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
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.
by Gil Fink
This post will introduce the select N+1 pitfall and explain how to avoid it in Entity Framework.
by Kyriakos Akriotis
SharePoint Debugging Assistant (free Visual Studio 2012/2013 add-in)
by Aron Weiler
Just wrote this to scan for open ports on some software... it's pretty fast!
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.
by outcoldman
This is a small sample of using code contracts.
by Shahriar Iqbal Chowdhury/Galib
Solve Mongo DB Element does not match any field or property of class
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?
by Salmanzz
State Design Pattern
by Pragmateek
Synchronization, Memory Visibility and Leaky Abstractions
by Pete O'Hanlon
Textbox Drag/Drop in WPF
by Paulo Morgado
The Evolution Of C#
by Sohel_Rana
C# 4.0 includes a new feature called Tuple.
by Chris_Green
Understanding BackgroundWorker threads and how to encapsulate your own thread class
by Pete O'Hanlon
Providing Undo/Redo across VMs (part 1 - simple properties)
by Joe Rattz
Using LINQ To Filter By Object Type and Then Quantify
by Dinesh K Mandal
Using MemoryCache in .NET 4.0
by atverma
Utility to Generate Word Documents from Templates Using Visual Studio 2010 and Open XML 2.0 SDK - Part 4
by Md. Rashim Uddin
Getting introduced to WCF WebSocket
by Chris_Green
Welcome Microsoft Delegate! Lambda Expressions right this way…
by Abhishek Sur
Working with tuple in C# 4.0
by Stephen Brannan
WPF Enumeration Data Provider