Click here to Skip to main content
15,881,424 members
This competition has ended

Best C# article of December 2011

Contribute to CodeProject and you'll automatically be in the running for a monthly prize!

Each month at CodeProject we gather together the best of the articles submitted the previous month and ask our readers to choose the best of the best. Entry is automatic - just submit you articke and we'll do the rest.

Check out the submission guidelines for information on posting articles.

Current Entries

Articles that match the contest criteria are automatically entered. The top 50 entries are shown.

Please Sign up or sign in to vote.
9 Jan 2012Nicolas Dorier
Stop wasting time on a stupid typo in binding paths
Please Sign up or sign in to vote.
2 Dec 2011Florian Rappl
A better ToolTip for Windows Forms and more.
Please Sign up or sign in to vote.
3 Dec 2011Monjurul Habib
How to: ASP.NET 4.0 Routing and Ext.NET.
Please Sign up or sign in to vote.
21 Jan 2015Syed Umar Anis
ExcelXMLExport is a Microsoft Excel 2010 / 2013 Add-in that generates XML data from Excel sheet.
Please Sign up or sign in to vote.
19 Dec 2011Robert S Sharp
I'm not sure that GC would matter very much in such a simple app.But, it's either a call to Dispose on your SmtpClient after you're done using it:smtp.Dispose();or use a using:using (SmtpClient smtp = new SmtpClient{ Host = "smtp.gmail.com", Port = 587, Credentials = new...
Please Sign up or sign in to vote.
19 Jan 2012Ratish Philip
A Metro style custom window.
Please Sign up or sign in to vote.
16 Dec 2011Henryk Filipowicz
A web user control for selecting a file from the file system.
Please Sign up or sign in to vote.
29 Dec 2011Omar Al Zabir
How to browse the internet faster and save power using a smart HOSTS file
Please Sign up or sign in to vote.
23 Dec 2011Dan Randolph
Builds on the existing RunRemote project to run commands on a remote server.
Please Sign up or sign in to vote.
13 Dec 2012GrahamMendick
A conversion of Project Silk to ASP.NET Web Forms using the Navigation for ASP.NET Web Forms codeplex project, concentrating on the navigational aspects
Please Sign up or sign in to vote.
27 Dec 2011Nigam Patel
Here is a really simple code for a numeric text box and it will work in all browsers. Only works for web applications. function CheckNumeric(e) { if (window.event) //...
Please Sign up or sign in to vote.
4 Feb 2012udhaya2code
While using Microsoft Text Driver to read CSV data to DataSet in C# in your 64 bit machine
Please Sign up or sign in to vote.
4 Dec 2011Xavier John
Candlestick
Please Sign up or sign in to vote.
1 Dec 2011James Treworgy
Debug tests from directly within your project.
Please Sign up or sign in to vote.
5 Dec 2011Andrew Rissing
Or you could just do the following without using System.Management:foreach (var driveInfo in DriveInfo.GetDrives().Where(x => x.DriveType == DriveType.CDRom)){ if (driveInfo.IsReady) Console.WriteLine("CD is ready in drive: " + driveInfo.Name); else Console.WriteLine("CD...
Please Sign up or sign in to vote.
9 Dec 2011Elvin Cheng
How to manage the Dialog boxes in WPF application
Please Sign up or sign in to vote.
17 Dec 2011GrahamMendick
Progressively enhanced ASP.NET Web Forms version of Knockout tutorial sample
Please Sign up or sign in to vote.
19 Dec 2011J. Broun
An article aimed at intermediate coders on decoding Stardent Corp.'s AVS Bitmap Image format.
Please Sign up or sign in to vote.
20 Dec 2011Giorgi Dalakishvili
Bugs in System.Diagnostics.Process Class
Please Sign up or sign in to vote.
13 Dec 2011KjellKod.cc
Ideone.com pastebin and online compiler with support for 40 programming languages
Please Sign up or sign in to vote.
19 Jan 2012Ratish Philip
An animated StatusBar in WPF.
Please Sign up or sign in to vote.
29 Dec 2011Weidong Shen
This article describes the IClientChangeTracking interface generated by Self-Tracking Entity Generator for WPF/Silverlight.
Please Sign up or sign in to vote.
25 Dec 2011Stefan Riemens
Reference Counting implementation using Extension Methods
Please Sign up or sign in to vote.
2 Dec 2011MBigglesworth79
This article is a follow-up to Andy West's blog post about performing a conditional validation when using .NET data annotations on a model in MVC.
Please Sign up or sign in to vote.
15 Dec 2011Gary H Guo
Discusses how to do dynamic object programming with AOP Container when using IoC Containers.
Please Sign up or sign in to vote.
21 Dec 2011danlobo
There is my version, no use of int arrays. While the while instruction is a good approach in many cases, in this specific one, it is not necessary, since the bigger number will be 18 (9 * 2):private Boolean ValidateIMEI(string IMEI){ if (IMEI.Length != 15) return false; var sum...
Please Sign up or sign in to vote.
18 Dec 2011Gary H Guo
Discuss object-oriented programming, aspect-oriented programming and object programming
Please Sign up or sign in to vote.
20 Dec 2011Ahmd.Refat.Twfik
The main purpose of this tutorial is to get you started with ASP.NET MVC easily, which will be through building a simple Twitter client to demonstrate the components of the framework and exposing some concepts too.
Please Sign up or sign in to vote.
16 Jan 2012H. Tony
Serialize and DeSerialize generic Array
Please Sign up or sign in to vote.
17 Dec 2011Ragheed Al-Tayeb
Hi Olivier,First, thank you for your helpful post here and I'd like introduce some suggestion that might help to increase the performance of the Read & Write methods (of arrays such as ReadIntArray, ReadFloatArray and WriteIntArray, .... etc.). My suggestion is to make use of the...
Please Sign up or sign in to vote.
5 Dec 2011Gary Bilkus
A helper class to simplify and enhance Silverlight async calls
Please Sign up or sign in to vote.
6 Dec 2011RaviRanjanKr
It's quite common to find out whether a user or application is running Admin account or not.CodeProject already has excellent tips focusing a nice way to accomplish the same task.Have a look at the CodeProject links.Tips posted by John Is Your App Running As Administrator?[^] and Sam...
Please Sign up or sign in to vote.
7 Dec 2011morningstar1710
This is the code that I use:For lookup:RegistryKey rkn = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Test");dwResult = rkn.GetValue("Preferences");For update:RegistryKey rkn = Registry.LocalMachine.CreateSubKey(szKeyPath); dwResult = rkn.ValueCount;rkn.SetValue(szKey,...
Please Sign up or sign in to vote.
16 Dec 2011Pascal Ganaye
A custom C# string implementation that stores its data in a UTF8 byte array.
Please Sign up or sign in to vote.
19 Jan 2012Ratish Philip
A Windows Phone style indeterminate ProgressBar in WPF.
Please Sign up or sign in to vote.
23 Dec 2011Giorgi Dalakishvili
How to Get Elevated Process Path in .NET
Please Sign up or sign in to vote.
28 Dec 2011H. Tony 1 alternative  
Code to serialize and deserialize generic arrays.
Please Sign up or sign in to vote.
2 Dec 2011Kunal Chowdhury «IN»
Detecting System Information of WP7 Device
Please Sign up or sign in to vote.
1 Dec 2011James Coleman
Multi-site / Multi-languages with Sitecore
Please Sign up or sign in to vote.
1 Dec 2011MBigglesworth79
XML Serialization
Please Sign up or sign in to vote.
1 Dec 2011Sean A. Hanley
How to use the WPF Task Dialog wrapper in an MVVM application.
Please Sign up or sign in to vote.
1 Dec 2011Kabwla.Phone
So here is a tip on how to improve upon this code. Do not silently catch exceptions! Instead, create a very simple logging mechanism that allows you to inspect the exception, either from code or during debugging.public static class InputBox{ public static Exception LastError {get; private...
Please Sign up or sign in to vote.
4 Dec 2011Felice Pollano
Implementing the “Vanilla” Alpha Beta
Please Sign up or sign in to vote.
6 Dec 2011gnanamu
Snippet for IDisposable Implementation
Please Sign up or sign in to vote.
7 Dec 2011Jαved
For VB.NET users:Public Function ToggleCase(input As String) As String Dim result As String = String.Empty Dim inputArray As Char() = input.ToCharArray() For Each c As Char In inputArray If Char.IsLower(c) Then result += [Char].ToUpper(c) Else result +=...
Please Sign up or sign in to vote.
9 Dec 2011emardini
This article is about implementing an MVVM Light based solution with an IoC container other than the built-in SimpleIoC container included in the MVVM Light framework.
Please Sign up or sign in to vote.
13 Dec 2011YvesDaoust
http://msdn.microsoft.com/en-us/library/h5e7chcf.aspx[^]
Please Sign up or sign in to vote.
17 Dec 2011Life Lockszmith
A reusable code base for enums that we can expand to whichever way we want
Please Sign up or sign in to vote.
11 Jan 2012zoyobar
Introduction to the basic properties Of JQueryElement
Please Sign up or sign in to vote.
22 Dec 2011Hiren Khirsaria
Customize WPF tabcontrol by changing appearance using style and template

Current Participants

Those with articles that match the contest criteria are automatically entered.

Technical Lead
India India

Kunal Chowdhury is a former Microsoft "Windows Platform Development" MVP (Most Valuable Professional, 2010 - 2018), a Codeproject Mentor, Speaker in various Microsoft events, Author, passionate Blogger and a Senior Technical Lead by profession.

He is currently working in an MNC located in India. He has a very good skill over XAML, C#, Silverlight, Windows Phone, WPF and Windows app development. He posts his findings, articles, tutorials in his technical blog (www.kunal-chowdhury.com) and CodeProject.


Books authored:


Connect with Kunal on:




Web Developer
Egypt Egypt
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Architect
United States United States
Since I've begun my profession as a software developer, I've learned one important fact - change is inevitable. Requirements change, code changes, and life changes.

So..If you're not moving forward, you're moving backwards.
Software Developer (Senior) Delcan
United States United States
Dan Randolph is currently a Web Applications Developer with Delcan. Mr. Randolph has a B.S. dergee in Computer Science from the University of Wyoming. He is an active member of the Denver Visual Studio User Group. You can find him posting in the forums on [code.]msdn.microsoft.com and Code Project.
Brazil Brazil
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Singapore Singapore
Elvin Cheng is currently living in Woodlands, Singapore. He has been developing applications with the .NET Framework, using C# and ASP.NET since October 2002. Elvin specializes in building Real-time monitoring and tracking information system for Semi-conductor manufacturing industry. During his spare time, he enjoys reading books, watching movie and gym.
Software Developer Fujitsu Canada
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Chief Technology Officer
Germany Germany
Florian lives in Munich, Germany. He started his programming career with Perl. After programming C/C++ for some years he discovered his favorite programming language C#. He did work at Siemens as a programmer until he decided to study Physics.

During his studies he worked as an IT consultant for various companies. After graduating with a PhD in theoretical particle Physics he is working as a senior technical consultant in the field of home automation and IoT.

Florian has been giving lectures in C#, HTML5 with CSS3 and JavaScript, software design, and other topics. He is regularly giving talks at user groups, conferences, and companies. He is actively contributing to open-source projects. Florian is the maintainer of AngleSharp, a completely managed browser engine.
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
United States United States
Object-oriented (OO) is about "classes" not "objects". But I truly believe that "objects" deserve more our attentions. If you agree, read more on... Dynamic Object Programming (DOP), Component-Based Object Extender (CBO Extender), AOP Container and Dynamic Decorator Pattern.

Mobile development is not just another type of front end. The real challenge is actually in the back end: How to present meaningful information in time to mobile users with exponentially increased data flooding around? Here is my first mobile solution: SmartBars - Barcode Reader, Price Comparison and Coupons.

Gary lives in southeast Michigan. My first programming language is FORTRAN. For the last a few years, I have primarily focused on .NET technologies with Mobile Development as my newest interest.
Software Developer
Georgia Georgia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer Lanxess GmbH
Germany Germany
MCTS .NET Framework 2.0 Web Applications
MCTS .NET Framework 2.0 Windows Applications
MCTS .NET Framework 2.0 Distributed Applications
MCTS Windows 7, Configuration
MCITP Enterprise Desktop Administrator on Windows 7
Team Leader Reputed IT Company
India India
Having 9+ years of experience in Microsoft.Net Technology.
Experience in developing applications on Microsoft .NET Platform ( Asp.Net, WPF, Silverlight, Windows Phone 7/8).
Experience and knowledge of software design methodologies (Agile), object oriented design, and software design patterns (MVVM).
Experience in Developing android mobile application using Xamarin (mono for android) framework.

http://hirenkhirsaria.blogspot.com/
United Kingdom United Kingdom
I'm a student who has taken to programming as a hobby. I began writing web pages by hand and am now very familiar with HTML and CSS. I also developed an understanding of systems and processes in Windows, which sparked an interest in old Microsoft software.

For a good year and a bit I've been writing programs in C#, but have experimented with C, C++, Pascal and x86 Assembly Language. I prefer to use WPF over WinForms, I don't know why.

My site www.gui-info.com shows off most of my software collection and my blog http://jamesbrounstechblog.wordpress.com/ is occasionally updated with anecdotes and essays.
Technical Lead Independent Consultant
United States United States
___________________________
J A M E S C O L E M A N
Director, Technical Services
Linked-In: http://www.linkedin.com/in/jameswcoleman
Blog: ledtalks.wordpress.com
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Student Self Employed
India India
« I Love to Code ».
In the meantime I like to surf the Internet and get to know about new Technology, Watching Movies and playing cricket.


CodeProject helped me a lot to learn and I am always thankful to all the Members who make this happen.
Software Developer (Senior)
Netherlands Netherlands
Doing that 'computer thing' ever since the C64.

Sometimes I feel that being a programmer is much like being a doctor: You just have to know everything and if you don't, something dies.

Either being an application or a patient.

Oddly enough, more people care about the death of their application, than the massacre of people...
Software Developer (Senior) LogRhythm
United States United States
Enjoying Colorado! Family and intense software development.

Kjell is a driven developer with a passion for software development. His focus is on coding, boosting software development, improving development efficiency and turning bad projects into good projects.

Kjell was twice national champion in WUKO and semi-contact Karate and now he focuses his kime towards software engineering, everyday challenges and moose hunting while not being (almost constantly) amazed by his daughter and sons.
Help desk / Support
Israel Israel
I'm a 35+ family and tech support guy from Israel
Web Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Senior)
Singapore Singapore
A life-long-learner, maker and soft music fan. Likes building things to solve problems. Years of successful records serving mid and large scale .NET applications in domestic and international client environment. Expertise in different areas of software development life cycles and Software Architecture.

Always looks for new technology and loves to get hands dirty Smile | :)
Colombia Colombia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer Freelance
France France
I am currently the CTO of Metaco, we are leveraging the Bitcoin Blockchain for delivering financial services.

I also developed a tool to make IaaS on Azure more easy to use IaaS Management Studio.

If you want to contact me, go this way Smile | :)
Software Developer
India India
I am working as software engineer since last 3.5 year.
i am working in .net technologies.
Architect BT, UK (ex British Telecom)
United Kingdom United Kingdom
Software Developer (Senior)
France France
I am a French programmer.
These days I spend most of my time with the .NET framework, JavaScript and html.
Team Leader Hawk International for Finance & Construction Ltd.
Yemen Yemen
Bachelor degree of Computer Sciences, Software developer using .NET (Visual Basic & C#).
I like the development of an Artificial Intelligence Systems, GPS Applications, GDI+, APIs, N-Tier Applications, Distributed Systems and Network Monitoring Systems.
Mobile Development (Windows Mobile & Android).
Software Developer
United States United States
An individual with more than a decade of experience in desktop computing and mobile app development primarily on the Microsoft platform. He loves programming in C#, WPF & XAML related technologies.
Current interests include web application development, developing rich user experiences across various platforms and exploring his creative side.

Ratish's personal blog: wpfspark.wordpress.com
Software Developer
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer
United States United States
I'm a C# .NET developer for both Windows and Web applications since 2007, with a background in C/C++. Due to my job responsibilities currently, I've worn many hats. T-SQL in SQL Server, WinForms, WPF, WCF, ASP.NET, JavaScript, CSS, and more.
Netherlands Netherlands
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Senior)
United Arab Emirates United Arab Emirates
Engineer HCL
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Senior)
United States United States
Weidong has been an information system professional since 1990. He has a Master's degree in Computer Science, and is currently a MCSD .NET
Software Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
CEO VISION fOr VISION
Belgium Belgium
I fell into applied algorithmics at the age of 16 or so. This eventually brought me to develop machine vision software as a professional. This is Dreamland for algorithm lovers.
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
You must sign in to participate in this contest.
This contest has ended.
1 Dec - 31 Dec 2011