Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / .NET / .NET4

.NET4

.NET4

Great Reads

by Anurag Prajesh
Add new user registeration information in XML with C#
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.
by Necmettin Demir
"How to series" about MVC, jQuery, JSON, paging, mapRoute.

Latest Articles

by Anurag Prajesh
Add new user registeration information in XML with C#
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.
by Necmettin Demir
"How to series" about MVC, jQuery, JSON, paging, mapRoute.

All Articles

Sort by Score

.NET4 

by Wayne Ye
A complete Impersonation demo in C#.NET
by kishore Gaddam
Advanced MEF Programming
by Rion Williams
Applying conditional attributes in ASP.NET MVC Views.
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 Manoj.Kumar12
Authentication against CRM contact using custom STS
by Cruz Boon
Let’s say, we have a survey requirement. See how we can store multiple selections in a field by using bitwise.
by JasonShort
Buffer.BlockCopy is not as fast as you think
by outcoldman
C# 4.0 in a Nutshell, Fourth Edition
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 Abhishek Sur
Code Contracts in .NET 4.0 & its Internals
by Ritesh Ramesh
Code Management on a budget
by Brij
Concurrent Collections with .NET 4.0
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 Martin Jarvis
How to convert accented characters to simple characters
by Rajneesh Kumar Verma
This article will guide you to Create, Read, Update and Delete Data using Angular JS in ASP.NET MVC 4
by Abhijit Jana
CSS Friendly Menu Control in ASP.NET 4.0
by Adrian Alexander
Data-binding among complex expressions in C#
by Md. Rashim Uddin
How to download different types of files in asp.net
by Md. Rashim Uddin
Duplex service in WCF
by Shahriar Iqbal Chowdhury/Galib
Embrace reflection and export any List collection to CSV
by Rui Jarimba
A simple Entity Framework T4 template that generates GetHashCode() method
by User 6619207
Entity Framework Code First and WCF Data Services
by Amogh Natu
This post explains the cause and solution for the HttpException: maxRequestLength exceeded.
by Sky Sanders
Exploring Web.config - system.web/httpModules
by Rion Williams
Generating an MD5 hash from a string using LINQ.
by Mayur V Lohite
Generic Repository Pattern MVC
by ManojKumar19
Hands on Lab for MVVM, Value Converter, XAML Binding, Delegate Command pattern, INotifyPropertyChange, Lambda Expression, LINQ etc. in Silverlight/WPF project
by atverma
How dynamic language runtime (DLR) festure in .NET Framework 4 is a book for debugging COM objects
by atverma
How to host a service in Azure and expose using WCF and Visual Studio 2010
by Adam Zuckerman
A generic extension method that allows my program to limit an input to a specific range
by atverma
How to test a class member that is not public using Visual Studio 2010
by Salmanzz
How to create a Date Picker Composite Control in ASP.NET (C#)
by Md. Rashim Uddin
HTTPS Communication in WCF
by Morshed Anwar
Implementing Repository Pattern with EF4 POCO support.
by Paulo Morgado
With Rx, events are first class citizens that can be passed around and composed as needed in a very simple way.
by atverma
INotifyPropertyChanging and INotifyPropertyChanged in Real Life using Expression Trees
by piyush_singh
How to install SharePoint online management shell on client side
by Matthew Dennis
This is the first in a series of articles about using the Munq DI IOC Container and IOC containers in general.
by Christopher John Paul
JQuery Confirm Box is very simple, and it can be easily customized
by izualx
First, let me introduce my development enviroment. I’m using Visual Studio 2010 with Office 2010 and all my VSTO applications are basing on VSTO 4.0 and .Net Framework 4.0. All my demo code is basing on them and if you are using VS 2008, you can port these code to VS2008 very easily.
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 JasonShort
LINQPad helps you learn LINQ
by erik_nl
Logging with dynamic objects in .NET 4.0 (part 1-n)
by erik_nl
Logging with dynamic objects in .NET 4.0 (part 2-n) - user interaction logging
by Andriy Buday
MEF is the Framework which allows you to load extensions to your application easily. It does discovery and composition of parts you need to be included in your application at run-time. You could extend your behavior simply by adding a new Plugin.
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 User 271009
Much improved .NET 4.0 WPF text rendering
by Ondrej_Uzovic
Simple example showing how to implement the communication scenario where subscribing applications can receive notification messages from more publishing applications.
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 Ivan Krivyakov
How to install a NuGet package in 19 easy steps
by Leung Yat Chun
Reduce the property declaration code to one line, yet still usable directly.
by User 6619207
The IObservable(T) and IObserver(T) interfaces are part of base class library of .NET 4.0. It's great that there is now a out of the box solution to implement the observer pattern. This was overdue, because other languages provide classes to implement this pattern already since a long time.
by Rajneesh Kumar Verma
Using OData and WCF Service and visualize result using LinqPad
by Shivprasad koirala
This blog explains C# Out and REF parameters in detail.
by Raymund Macaalay
Parallel programming is easier than ever using .NET Framework 4
by Paulo Morgado
Patch For ASP.NET Vulnerability Available
by Alexey Kurakin
This article describes generic priority queue implementation in C#, which uses min-heap as underlying storage.
by Sarath C
A simple Windows Phone 7 application
by Ondrej_Uzovic
Simple example showing how to implement a communication scenario where one application sends notifications to other applications.
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 Ondrej_Uzovic
Simple example showing how Silverlight application can receive messages from a standalone desktop application
by Ondrej_Uzovic
Very simple example showing how to send a message from Silverlight application to standalone desktop application
by Imran Abdul Ghani
Simple steps to enable tracing in WCF
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 Arik Poznanski
How to configure your Visual Studio 2010 to step into the source code of .NET Framework 4.0.
by Pragmateek
Synchronization, Memory Visibility and Leaky Abstractions
by Pete O'Hanlon
Textbox Drag/Drop in WPF
by Sam Meacham
So what’s wrong with EF’s TPT inheritance? The SQL that EF generates. With some simple testing (2 or 3 subclasses) everything may appear to be fine. In fact, you may even be impressed that EF manages to fetch all the data you need in a single trip, indeed, in a single query.
by Paulo Morgado
The Evolution Of C#
by dibley1973
The stored procedure framework now supports dynamic fields within multiple recordsets
by Jeffrey T. Fritz
HttpHandlers had their place, but going forward, I'm going to use WebAPI whenever I need to transmit data over HTTP to browsers or any other connected client.
by Martin Jarvis
How to improve readability with shorter String.Format statements
by Abhishek Sur
Some of both Documented and Undocumented Keywords that we dont use often like Check, StackAlloc, Fixed,default,@variables,Nullables, __arglist,__reftype etc are explained with simple examples
by Pete O'Hanlon
Providing Undo/Redo across VMs (part 1 - simple properties)
by Martin Hinshelwood
Staring from the original Command Line Parser v1.0 code, I wanted to be able to add multiple commands, or even nest commands. The result is a nice simple commanding architecture conducive to creating multiple commands.
by Leung Yat Chun
This post explains how to use ContextMenuHelperEx in DirectoryInfoEx to simplify ContextMenu construction under .NET 4.0 Framework.
by Dinesh K Mandal
Using MemoryCache in .NET 4.0
by Paulo Morgado
How it can be used in a simple application
by Paulo Morgado
Web Site Globalization With ASP.NET Routing
by Jeffrey T. Fritz
As a follow-up to my previous article about WebAPI, I received an interesting question from a friend on LinkedIn: Is there a way to emit data in Protobuf format?
by Kunal Chowdhury «IN»
In this post, I will discuss about developing a simple multitouch application using .NET 3.5 SP1.
by Stephen Brannan
WPF Enumeration Data Provider
by Arik Poznanski
Back in this post I showed you how you can easily add a fade-in / fade-out effect to a UIElement that changes its Visibility property, using a simple attached property.Some people encountered a problem using this property when they bind the UIElement to a model which initially hides the control.
by Sebastian Solnica
How to load module debugging symbols (PDB files) into the debugger and how to bind them with source files
by Sebastian Solnica
Writing a .NET debugger – breakpoints