Click here to Skip to main content
15,887,746 members
Everything / .NET / .NET4

.NET4

.NET4

Great Reads

by Igor Ladnik
Wrapper to facilitate usage of TCP sockets
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 Nish Nishant
An ExifReader class in C# that supports custom formatting and extraction. StyleCop compliant code, with demos for WPF and Windows Forms.
by defwebserver
How using the Silverlight DataTrigger allows you to run a process and then raise another when using View Model (MVVM)

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 Ralf Meier
In this article, I demonstrate how to integrate Shelly® relays into my smart home, controlling the devices through routines in VB.NET.
by Sufyan S Jabr
All that you need to know when working with MSDTC, troubleshooting and problem solving.

All Articles

Sort by Title

.NET4 

17 May 2010 by Sarang Date
Any string input can have these many possible states1) String is null2) String is empty3) String contains nothing but white space4) String has some contentTill now, .NET had static method for stringbool string.IsNullOrEmpty()which handled first two conditions for...
12 Aug 2010 by jfriedman
public static class StringExtensions { public static bool IsNullOrWhitespace(this string s) { if (null == s) return true; return string.IsNullOrEmpty(s.Trim()); } }
31 May 2016 by Yaseer Mumtaz
.NET interview questions and answers with real world examples and code snippets
14 Mar 2014 by Nikita D. Sinelnikov
HowTo: make the report background (elements) of Microsoft .NET Report (.rdlc) non-printable
19 Jan 2015 by JatinKhimani
Develop a web application in 3 layer architecture code style
26 Nov 2014 by Sambhav Yadav - Sam D Silva
ASP.NET page/master page/user control's life cycle from the perspective of Session and View State
14 Oct 2013 by S. M. Ahasan Habib
I will demonstrate a generic factory method which will create object from interface type parameter from an assembly (either current or provided) with the help of reflection
3 Sep 2014 by PEtter Ekrann, Martin Helgesen
A strange idea I had for doing multithreading more managable.
17 Jul 2014 by Marlon Hizole
22 Dec 2012 by scott_liu
By use of a cutomized metadata provider, MVC model data annotation validation messages can be localized in a simple and elegant way.
17 Jan 2015 by LLLLGGGG
A really simple implementation of a C# menu for console applications
27 Jan 2013 by Alessandro Lentini
This tip is connected to my previous one. I show how to use .NET 4.0 BlockingCollection in a simple way.
26 Nov 2012 by nilotpalbarpujari
VS 2010 style toolbox written in C#
14 Sep 2014 by Mario Vernari
Here is a simple trick for simulating the shared-sizing feature of the WPF Grid even in a StackPanel fashion.
4 Jun 2013 by V R Shukla
How to access Active Director users on a WinNT network and show them in a dropdown list.
20 Dec 2013 by Subodh Raikar
Accessing SSRS Reports from SharePoint Site using C#
17 Apr 2014 by gunjan k saxena
This tip will help to create an action filter to compress the contents like Json, partial view, etc.
7 Mar 2014 by Vipin_Arora
Adapter Design Pattern in C#
28 Dec 2014 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Ever wondered how to add HTML file contents to the aspx page by code. Take a look at the implementation.
14 Nov 2014 by Anurag Prajesh
Add new user registeration information in XML with C#
11 Jul 2013 by Purushotham Agaraharam
Setup file creation and adding a connection string custom control.
14 Dec 2014 by MarkLTX
Automatically implement INotifyPropertyChanged for every property in Entity Framework 6.0 entity classes
10 May 2015 by Ankit Bansal MVP
This articles explains the insertion of data into SQL Database using Stored Procedures with Output Parameters. Some Bootstrapping is also used to create a good looking HTML.
13 Mar 2014 by BradodarB
Simple example outlining how to optionally employ AHAH based views in an MVC application.
27 Jan 2015 by HiDensity
Class providing methods to count up a string using a definable character set.
27 Nov 2012 by Gianmaria Gregori
How to add a random sliding effect to the Bakery home page
6 Aug 2012 by Mukund Thakker
19 May 2013 by Yossi Yaari
A basic yet generic state machine implementation
28 Mar 2013 by Vasudevan Deepak Kumar
This is a simple class/demo application that shows how to check whether the account that is being used to run the application has administrative rights.
11 Feb 2019 by Steffen Ploetz
Compare the speed of generic collections running on .NET Framework 4.6.1, .NET Core 2.1 and Mono/.NET 4.5 based on the framework's version of List against Loys's version of AList.
26 Jul 2015 by Alaa Ben Fatma
Generate your arrays using a GUI tool
24 Oct 2011 by AlexCode
Adding support for IHttpHandler on ASP.NET Routing
7 Nov 2011 by AlexCode
Hi guys, I have a new version of this.Although it works as expected for the majority of cases, I found a problem on the previous version of this code, that is, it reuses the HttpHandler for different requests and that can be a problem on more complex implementations where inner properties are...
1 Dec 2014 by Anurag Prajesh
How to add banner and slideshow in your website with adrotator
28 Jul 2014 by Ruhollah Heidarpour
Just another ASP.NET Persian(Jalali/Shamsi/Solar) / Gregorian Datepicker
23 May 2012 by BalaG Ganesan
ASP.NET MVC4 - Bundling and Minification
5 Oct 2012 by TheCoolCoder
Numbering for Multilevel ASP.Net Treeview using CSS Counters
9 Jan 2014 by nasir_ml
ASP.NET textbox validation made easy.
2 Mar 2016 by Akhil Mittal
Helper class to compare two class objects while unit testing
11 Sep 2014 by Francesco Bagnasco
Just a quick sample to clarify what we can do and what we can't
4 Jun 2014 by arpanmukherjee1
RelayCommand.CanExecute in MVVM with attributes not WPF Requery
12 Dec 2016 by Suresh Dasari's
Auto Generate Code (CRUD) for 3 Layered architecture (Entity, Data Access & Business Layer) with Stored Procedures based on table design.
12 Nov 2015 by Eduardo Yost
Creating a Web User Control containing an AutoCompleteExtender for data through WCF (JSON) allowing to store the entity selected through EntityFramework. Entity object serialization from the server to the client and the client to the server.
11 Feb 2015 by Emiliano El Mariachi
Here is a small library to help you have an automatic undo/redo feature without explicit dependency on Undo/Redo system.
15 Jan 2016 by veen_rp
Big lists (>1,000,000 items) can cause out-of-memory errors raised by .NET. Manage them by a List of List(Of T)
10 Apr 2013 by Jason Curl
Using System.IO.Stream default implementation of BeginRead() and BeginWrite() may result in unexpected deadlocks.
26 Oct 2015 by Hernán Hegykozi
This tip will show how to perform a backup and restore database from an application in VB.NET 2010.
5 Mar 2013 by Saddoud Anis
Allow your applications the ability to backup and restore your PostgreSQL databases.
11 Aug 2014 by Jdarmanovich
Basic MVVM pattern for binding items to a listbox in WPF
14 Jan 2013 by Kundan Singh Chouhan
Simplest, best and most robust architecture.
5 Aug 2014 by saurav ray
Article determines how to bind a crystal report with a virtual database
7 Jul 2013 by Amit_Mittal
An easy way to bind XAML with properties defined in code behind
9 Nov 2012 by Houssem_Dellai
23 Dec 2012 by RobLazarus
This books is a tour de force and a must-have for any ASP.NET MVC developer as it will save you hours of time and frustration researching solutions to the various questions you may encounter when using MVC 4.
23 Dec 2012 by Oleksandr Kulchytskyi
This tip explains how to increase performance in serialization by using MessagePack
20 Aug 2013 by Jitendra Ballia
Building data access layer using enterprise library
10 Jan 2014 by deepi2014
This tip is to showcase how to write “Native C Library” so that it can be used for Cross Platform with .NET interoperability with Native C Libraries.
19 Aug 2015 by charles922
Program that continuously monitors the NXT via Bluetooth
15 Aug 2015 by Rakesh Vemula
A Windows application which processes your code and shows how much time it takes to execute your code.
13 Oct 2015 by dibley1973
A simple C# extension method to convert List into a delimited text string. Ideal for creating CSV files!
16 Aug 2012 by Maddog Mike B
A message server using named pipes and the Async CTP library (async and await keywords)
10 Mar 2014 by caed
C# - Read Text File, Match a Word in First Line, Move File if Word Matches
27 Mar 2013 by metastruct
When WebClient, HttpRequest, and all else fail, BITSadmin solves your download woes
17 Jan 2014 by deepi2014
An attempt to taking up an existing published article “C#.NET Interoperability with Native C Libraries on Cross Platform” towards the next level.
14 Oct 2010 by InActive
How to use the .NET DateTime class in C++ to generate a basic calendar via a console program
17 Nov 2012 by Michele Ziparo
An effective way to implement a caching system in Silverlight (MVVM) RIA
15 Oct 2012 by Houssem Dellai
Developing a Windows Phone app step by step
25 Feb 2011 by David Thielen
Calling a J# DLL from .NET 4.0
25 Jun 2014 by SibeeshKV
Calling an ASMX webservice from other server using jquery and PHP
3 Jun 2014 by jayant jaiswal
14 Jun 2014 by Kaveh Yazdi Nezhad
A simple solution to capture entire HTML code of a web page which is displaying on Internet Explorer
1 Feb 2014 by Madhav Hatwalne
Caution when you are disabling a checkbox in Edit View
21 Oct 2013 by Sitang Ruan
Central jQuery Version Control
27 Dec 2013 by Kees van Spelde
How to change resolution before starting an application
3 Oct 2011 by Manfred Rudolf Bihy
Using SendMessage and the PARAFORMAT structure, one can easily change the line spacing in a RichTextBox control
23 Aug 2012 by Purushotham Agaraharam
Dynamic changing of version number using SolutionInfo.cs through out the application.
19 Sep 2012 by Trilok Arora
Introduction to Charts in .NET 4
26 Nov 2014 by SergVoloshyn
Main program for testing modem or GSM phones by AT commands, use only standard classes and libraries.
15 Jun 2017 by Ordiales
Create default interface implementation or whatever you want with runtime checking not implemented members
22 Oct 2014 by jelo pasiolan
This class is useful for HTTP web request and gets the response from the server. If the response is JSON or XML, this class also contains a method to parse or deserialize the response.
26 Feb 2014 by Narendra Singh Rathore
How to clear all textbox text on one click
4 Jul 2013 by sumit_kapadia
Create and Bind gridview at client side with Jquery Template and ajax in asp.net
11 Oct 2012 by markmnl
Method to clone an EntityObject without serilization or detaching it
27 May 2014 by Matus Kovacik
This component allows to overlay grid with colored blocks spanning across multiple columns.
19 Nov 2015 by B.O.B.
A simple extension to add an item that has a data source bound to combobox.items
5 Aug 2013 by Physlcu$
A custom ComboBox that supports live filtering of items by Substring-Search or any other Lamda-Expression
17 Oct 2011 by omid rezaei hanjani
Customized implementation of the Singleton pattern using Generics.
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 Apr 2014 by Arthur Peka
A tutorial to compare .NET objects
10 Sep 2009 by Abhishek Sur
It is to be noted, .NET has lately introducedResponse.RedirectParmanent() after a long await. The main motive of this is tohave permanent response redirection to the Search Engines.Response.RedirectParmanent() is an extension function introduced in .NET 4.0.Themain motive of it is to indicate
30 May 2013 by KK Kod
How to compress JavaScript and CSS files in a web application to reduce page loading time, using GZIP.
9 Aug 2013 by Kishan Zunjare
Configure email providers like SMTP/GMail using Dependency Injection.
31 Oct 2014 by Shivarajbk
This tip explains how to write RESTFUL WCF service for Android applications.
10 Sep 2014 by Surya Kiran Bonugu
Client Web Application which consumes OAUTH enabled restful WCF service using JavaScript