Click here to Skip to main content
15,892,768 members
Everything / Programming Languages / C# 3.0

C# 3.0

C#3.0

Great Reads

by Jeffrey Walton
Import and export Cryptographic Keys in PKCS#8 and X.509 formats, using Crypto++, C#, and Java.
by Daniel Vaughan
Calcium provides much of what one needs to rapidly build a multifaceted and sophisticated modular application. Includes a host of modules and services, and an infrastructure that is ready to use in your next application.
by Dark Daskin
Article describes how to build an assembly that exposes functions to unmanaged code without C++/CLI
by Sacha Barber
It would probably be like Cinch, an MVVM framework for WPF.

Latest Articles

by Shivprasad koirala
Design Pattern FAQ - Interview Questions (Quick Reference)
by Harsha T, Amarnath S, S Mahesh Reddy
A simple viewer of images stored in the DICOM 3.0 File Format (C#). The file should have raw pixel data, uncompressed. Window Level functionality is also provided.
by AlexeyYakovlev
This paper demonstrates a technique of building Sprache parsers using grammar inheritance.
by Randy Kroeger
This article provides an example on how you can change application configuration settings within an existing ClickOnce publish, update the manifest files, followed by using the Mage utility for updating the manifest using the existing cert file.

All Articles

Sort by Title

C# 3.0 

22 May 2010 by Vinayaka Krishna Shenoy
.Net Performance tip - 2
22 May 2010 by DaveAuld
Here is a better evaluation of performance in .Net of the If / Switch operations;http://www.blackwasp.co.uk/SpeedTestIfElseSwitch.aspx[^]
15 Nov 2010 by qlipoth
All too often, I have to match disparate objects 1 to 1
19 Jan 2015 by JatinKhimani
Develop a web application in 3 layer architecture code style
20 Jan 2015 by charles922
3D programming with OpenGl and C# to create an interactive puzzle
12 Mar 2012 by Muthu Nadar
This article will explain about null coalescing operator along with its advantage and disadvantage.
5 Nov 2014 by Jeong, WonYoung(Brad)
Making BitField with C# alternative to BitField made with union and struct of C++
8 Sep 2008 by cesar_boucas
A custom derivative of ServiceHostFactory to control how WCF service hosts are created.
18 Apr 2011 by Niladri_Biswas
This short article will demonstrate an idea of making a custom switch case in C#
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
24 Jan 2015 by shijo joseph
A file backup manager with simple user interface and all the essential functionalities.
6 Feb 2013 by Jarno Burger
A managed wrapper around FreeFrame, to give your video frames some cool effects
20 Dec 2015 by shijo joseph
An easy to implement yet powerful logging library which requires absolute zero learning curve
17 Jan 2015 by LLLLGGGG
A really simple implementation of a C# menu for console applications
9 Aug 2013 by Redslide
Modify MVC Routing to allow routes such as /Electronics/Software/Operating-Systems/PC/Windows-8-Installer
23 Mar 2011 by Narsimlu Keshagouni
Adding fonts to Infragistics WebHtmlEditor
6 Sep 2012 by Christopher John Paul
Ajax Asynchronous Postback Method
2 Mar 2010 by Rudy du Plooy
This code creates a mutex before starting an application and releases the mutex when the application is closed. A user will only be able to start the application once. This can be used for services as well./// /// The main entry point for the application.///...
22 May 2010 by DaveyM69
Now your application can update it's saved data regrdless of the account it is running under.
7 Feb 2011 by Pavel Yermalovich
An example of Prototype pattern
19 May 2013 by Yossi Yaari
A basic yet generic state machine implementation
10 May 2014 by yazanjaradat
Ant-Colony Based Routing Algorithm (ARA) C# Simulation
9 Jan 2014 by nasir_ml
ASP.NET textbox validation made easy.
27 Oct 2010 by kadaoui el mehdi
In this trick I present how to prevent an attack by a hacker on Asp.net website.
7 Feb 2012 by DaveyM69
How to have a real console window as well as your forms
18 Jan 2012 by johannesnestler
Very good tip. I just want to mention an alternative - you can just change your project output type to a console application. (You can undo it later if only needed for debugging). So if you started with a Windows Forms project in Visual Studio: Go to project properties/application/ and in the...
25 Jan 2012 by fastal
VB version:Friend Declare Function AllocConsole Lib "kernel32.dll" () As BooleanFriend Declare Function FreeConsole Lib "kernel32.dll" () As BooleanSub main() Dim MainForm As New frmMain If Command = "" Then MsgBox1 = AddressOf MyMsgBox1 ' messagebox delegate sub call...
25 Feb 2012 by Andreas Gieriet
To not having spoiled the client code with #if DEBUG, you might use the following:[STAThread]static void Main(){ Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); try { Debugging.DebugSetupConsole(); ...
2 Jun 2012 by deepaktripathi
Using auto complete textbox in jQuery Tabs content via AJAX in an Microsoft MVC project.
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.
14 Oct 2010 by ambatisreedhar
Export to Excel,default formatting of excel,excel number format,excel date format,excel currency format
27 Apr 2012 by Igor Pashchuk, MBA
This is an alternative for "C# Pivot Table"
5 Mar 2013 by Saddoud Anis
Allow your applications the ability to backup and restore your PostgreSQL databases.
3 Sep 2010 by DaveyM69
A few quick examples of how to correctly create events.
26 Dec 2010 by #realJSOP
Can't you just call Enum.GetNames(), and then bind to the collection returned by that method?
30 Dec 2010 by Xmen Real
here is what I do to iterate through enumpublic static ABC(Type enumType){ foreach (Enum e in Enum.GetValues(enumType)) { int tvalue = Convert.ToInt32(e); string tname = e.ToString(); }}
7 Jul 2013 by Amit_Mittal
An easy way to bind XAML with properties defined in code behind
18 Aug 2014 by Emiliarge
Read and write data to Access databases without limitations caused by the use of the SQL.
3 Sep 2013 by blitzkrieged
An alternative ProgressBar for C# with extra functionality
5 Jun 2014 by Sameera Millavithanachchi
This is a custom mapper which can be used to map two objects instead of automapper
6 Mar 2015 by Darkencrow
A multi-drawer style collapsable UI container
3 Aug 2012 by Sympletech
A simple utility to help convert strings into other types
30 Aug 2014 by Emiliarge
2 ways to read and write data to *.xls and *.xls files and display it on DataGridView.
20 Feb 2017 by Vishal_Kumar
Call server side code using ASP.NET AJAX and jQuery AJAX
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
13 Jan 2011 by DaveyM69
How to prevent a CD/DVD drive from being opened.
13 Jan 2011 by Steve Maier
To get this to work in .NET 4, you have to change the DLLImport signature.[DllImport("kernel32.dll", SetLastError = true)]private static extern IntPtr CreateFile( string lpFileName, uint dwDesiredAccess, int dwShareMode, ref SECURITY_ATTRIBUTES lpSecurityAttributes, ...
4 Jun 2014 by A. Najafzadeh
This tip shows how to change LINQ-to-SQL connection string at runtime via programming.
21 Aug 2010 by DaveyM69
How to access a control from a different thread + good alternatives by other members!
23 Mar 2010 by AspDotNetDev
This version works regardless of parameters:public void AnyMethod(int parameter){ MethodInvoker wrapper = new MethodInvoker(delegate() { // Do your thing here! }); if (this.InvokeRequired) this.Invoke(wrapper); else wrapper();}Note also...
22 Aug 2010 by Moim Hossain
Doing like following for few years now :public void AnyMethod(int parameter){ var wrapper = new Action(()=> { // Do your thing here! }); if (this.InvokeRequired) this.Invoke(wrapper); else wrapper();}
21 Feb 2012 by Surjit Singh Dadhwal
This post will help you to resolve problem of checking maxlength of Multiline textbox (Internet Explorer, Chrome & Firefox)
25 Dec 2011 by Gandhi Ashish
Checking Internet Is Connected Or Not From .NET
16 May 2011 by J a a n s
For C# guys....using System ;using System.Runtime ;using System.Runtime.InteropServices ;public class Internet{ [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState( out int Description, int ReservedValue ) ; public static bool...
27 May 2011 by Anshul R
Dim value As Boolean = My.Computer.Network.IsAvailable can be used in a situation where the only network a system will be connected to is the Internet.Dim value As Boolean = My.Computer.Network.Ping(hostNameOrAddress ,timeout) hostNameOrAddress can be any valid website -...
28 Jul 2010 by rodrigo diniz
A small class that transforms the contens of an OFX file into a DataSet.
2 May 2010 by Mike_999
Download GridDetailsView.zip - 143.06 KBIntroductionThis is one of the frequently asked question among developer community.How to display a form which shows content of a DagaridView row while clicking on it. Here I am demonstrating DataGridViewLink column type usage for this...
12 Jun 2013 by kabdolla
Create your own keyboards, keypads/ virtual buttons on top of other windows; filter unwanted input.
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
18 Sep 2013 by Suvabrata Roy
How compiler manage anonymous types
30 May 2013 by KK Kod
How to compress JavaScript and CSS files in a web application to reduce page loading time, using GZIP.
23 Jul 2010 by Pandey Vinay
This is a direction to use Google Maps API Rest Services instead of using it from JavaScript.
10 Jun 2010 by Anshul R
The Perfect Translation/Conversion of Code
28 Sep 2011 by Ram Balak Sharma
Useful when calling a C# method from JavaScript by using JSON which returns a DataTable.
30 Sep 2011 by Mohammad A Rahman
Following might be another way to do the job:public static string ConvertDataTableToString(this DataTable dt){ StringBuilder stringBuilder = new StringBuilder(); dt.Rows.Cast().ToList().ForEach(dataRow => { ...
18 Jul 2011 by OriginalGriff
I wrote this because I was interested in a Q&A question which asked for exactly that. Since I quite often use DataTables to transfer data, and to display it for debugging I knocked up an extension method to do it.
20 Jul 2011 by cmschick
Thanks for sharing. I have a similar utility with additional capabilities that some of you might find useful.using Microsoft.VisualBasic;using System;using System.Collections;using System.Collections.Generic;using System.Data;using System.Diagnostics;using...
27 Jul 2015 by Shru37
Modified code from another article to consider field repetitions while converting HL7 message to XML
1 Aug 2014 by Bryan Lyman
A method for duplicating a web page (including all scripts and styles) to run as if it originated from your own server, then modify server-side and client-side functionality afterwards.
22 Jan 2014 by Sandeep Singh Shekhawat
This tip introduces two extension methods of the HtmlHelper class, one that obtains the Id in a jQuery function and another obtains the Name in a jQuery function.
6 Feb 2011 by SuhasHaridas
Create Linq to SQL connection with select, insert, delete, update
22 Aug 2016 by Sujith Karivelil
Creating a link in the left pane of the file Explorer - like OneDrive or DropBox
20 Feb 2010 by Rajkumar Reddy Mar31
Recently, one of my jobs demanded me to create a windows service for scheduling some tasks without human intervention, all we need to mention those services XML file.Configure the scheduled tasks in an XML file (Tasks.xml)On Service Start, load the tasks configuration from the Tasks.xml file...
13 Feb 2014 by Mik Wadstrom
Simple way to use Crystal reports as embedded dynamic printable reports
20 Apr 2013 by Aliaa Ezzat
22 May 2012 by Daniel Lo Nigro
Custom strongly typed HtmlHelpers in ASP.NET MVC
22 May 2010 by DaveyM69
Enables access to the original argument in all events
25 Oct 2013 by Monotosh Roy Mon
XML Serialization & Deserialization for converting our object to XML and XML to Object
28 Apr 2015 by Hassan Alrehamy
JSON Deserialization in depth concept and Dictionary mapping. Special Thanks to Dr. Coral Walker
28 Jan 2011 by Pandey Vinay
This is how you can develop web application for mobile phones using .NET.
17 Jun 2013 by bbirajdar
Difference between var and dynamic in C#
14 Apr 2013 by Roberto Carlos Beyra
Disk Space Alert for Server Backup with email-notification
8 Oct 2013 by Thomas Corey
Dynamically sort query results using LINQ expressions and reflection.
11 Oct 2013 by Thomas Corey
Dynamically sort query results using LINQ expressions and reflection with sorting
19 Jun 2015 by ss9o9o9o
Transferring backup files from a remote SQL Server and Dynamic SQL Connection with Restore utility.
28 Mar 2012 by Sujeet Bhujbal
Article on dynamically generating Forms in WPF and Silverlight.
7 Aug 2012 by kennysun
encrypt all stored procedures in SQL server with powershell
12 Jul 2011 by Jana Sattainathan
There is an easier way to get the Oracle data source than custom-code a TNSNames.ora parser.
29 Mar 2013 by Nandakishore G N
Example For Gridview RowCommand Event
10 Dec 2013 by JRINC
Connect to remote socket via System.Net.Sockets.Socket.Connect method with timeout controlled by System.Threading.Timer
7 Nov 2012 by Bhasker Kandpal
Exploring the behaviour and capabilities of a property grid control.
15 Sep 2011 by lperumb
How to export to Excel from DataGrid using an Microsoft Access database.