Click here to Skip to main content
14,266,079 members

Best C# article of January 2012

This competition has ended

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.

25 Jan 2012
Sebastian Krysmanski
The help page for IDisposable provides the code for IDisposable's default implementation pattern in C#. This article will explain each part of it step by step and also provide the equivalent C++/CLI code in each step.
15 Jul 2014
Vasily Tserekh
A simple 3D exploration of a plaza in OpenGL and C#
13 Jan 2012
MarkLTX
A subclass of the WPF TextBox control that displays an ellipsis when the text doesn't fit.
3 Jan 2012
Clifford Nelson
An enumeration RadioButtion ListBox control.
13 Jan 2012
baruchl
How to setup .NET symbol server and enable production debugging without source code
21 Feb 2012
Daniel Miller
This article describes the steps to re-configure SQL Server so that queries return accent-insensitive results. It includes source code (using Microsoft SQL Server 2008 R2 Shared Management Objects) to automate some of the steps in this procedure.
19 Jan 2012
Clifford Nelson
This value converter makes it very quick and easy to add the ability for the user to input equations in text boxes that are bound to numeric properties.
4 Jan 2012
thatraja
Check this jQuery alternativejqlog - A logging framework plugin for jQuery[^]
23 Jan 2012
Gil Yoder
In this article, I describe how to display data from a simple XML file in a WPF TreeView control.
21 Jan 2013
kosmoh
An introduction to a special type of Moving average, which considers not the last N events, but the last events that happened in the given time interval.
30 Jan 2012
Dan-el Khen
Sample code on building a client-side Grid control in C# using SharpKit
9 Jan 2012
Grasshopper.iics
Can't we have something as below?int n=(s.Split(new char[]{'\n'})).Length;where n is the number of lines?
3 Jan 2013
Young Ye
This article is the part 3 of the data display Performance Optimization series. It talks about performing multiple searches against the virtual list.
15 Jan 2012
VIBlend
WinForms Button
19 Jul 2013
Mikhail-T
How to convert string to text file and return it back to user as a result of a controller action
21 Jan 2012
Nicolas Dorier
Access xaml resources in a strongly typed way
27 Jan 2012
CooperWu
A framework designed for support upgrade components in service without stop running
25 Jan 2012
Sion Cohen
An elegant programmatic solution for having multiple indexers in C#
16 Jan 2012
Wahid Bitar
Get the DropDownList items at OnResultExecuting
7 Jan 2012
Oleg Shilo
While leaving aside the performance penalties, it is a reasonable approach to make code cleaner.Though you can further benefit from the extension methods:public static void InitDefaults(this object o){ PropertyInfo[] props = o.GetType().GetProperties(BindingFlags.Public |...
8 Jan 2012
Alеksey Nemiro
The Silverlight File Manager on the ListBox control based universal server handler may be working on the ASP .NET WebForms and MVC projects. All requests are sent asynchronously via helper class.
3 Jan 2013
Young Ye
This article solve the performance issue while loading and displaying large amounts of data by using a virtual list with paged data technique.
29 Jan 2012
rish_wins
Office Documents View using TreeView
1 Jan 2012
Petr Ivankov
Testing of complicated scientific tasks
6 Jan 2012
Jarek Kruza
A series about experimenting with Kinect for Windows SDK.
8 Jan 2012
ozkary
WCF Web Service Call to Another WCF Web Service returns no data
3 Jan 2013
Young Ye
This article is Part 2 of the data display performance optimizing series. The Selectable Virtual List is a list where you can select individual items in the list, and move it out or in to the list. You can also use the select all checkbox to select all items in the list.
20 Jan 2012
Dirk Bahle
I have posted a recent article on the ProgressViewModel to show a software design that can be used for background processing in C# 4.0. This article extends that design with the ability to ouput more than one progress.
25 Jan 2012
Dean Oliver
4 alternatives  
An alternative to Activator.CreateInstance
27 Jan 2012
Jarrey
Attached Command for Windows 8 Metro Style in C#
25 Jan 2012
Henry He
In this article, I will use Interpreter Pattern to design a business expression
9 Jan 2012
saboor awan
Google Directions API Polyline Points Decoder in C#
13 Jan 2012
C Yang
Program to Switch Screen Setting In One Click
15 Jan 2012
VIBlend
In this post, we will show you how to use the cells merge functionality of VIBlend DataGridView for WinForms.
16 Jan 2012
Inaki Ayucar
How to find the external IP address of your machine, with a timeout, in C#.
18 Jan 2012
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...
20 Jan 2012
Richard James Moss
How to extend the ImageBox control to be able to display PDF files with the help of the GhostScript library and the conversion library
24 Jan 2012
SteveAdey
Here's a quick post to show how to make images (and any other framework element) react to an ICommand when clicked.
24 Jan 2012
Felice Pollano
Listed here are 5 interesting uses of Linq.Expression without writing a LinqToSomething provider, of course.
24 Jan 2012
Dhanushka Madushan lk
Drawing on picture box images
29 Jan 2012
Gil.Schmidt
How to move a wcf msmq message from an outgoing queue to another outgoing queue.
27 Jan 2012
Samer Abu Rabie
Fluent NHibernate Automapping for Unidirectional ManyToMany relationship
14 Sep 2012
Richard James Moss
A brief article into how to use a C# library that converts BBCode used by popular forums into HTML
4 Feb 2012
Dan Randolph
How to Export data in a to a "comma separated values" file using the built-in browser Open/Save feature
29 Jan 2012
Richard James Moss
This post describes how to create a GroupBox control similar to those used in Microsoft Outlook
14 Jan 2012
Grasshopper.iics
4 alternatives  
Simple way of converting RGB Image to Gray Scale Image without using any pointers
3 Jan 2012
JasonShort
Speed up blocking functions with PLINQ
21 Jan 2012
Weidong Shen
This article describes how to do data validation with Self-Tracking Entity Generator for WPF/Silverlight.
16 Feb 2012
G. Filkov
Custom NAnt loop task that allows breaking out on a While condition

Current Participants

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

Alеksey Nemiro
Web Developer Kbyte.Ru
Russian Federation Russian Federation
Started programming in 1998 on the G-Basic and QBasic.

At various times worked with programming languages and technologies: Visaul Basic, Delphi, C, Visual C++, Java, PHP, ASP VBScript and JScript.

Currently engaged in programming based on .NET Framework technologies. Mainly the development of websites on the ASP.NET MVC, C#, TypeScript, SCSS and also database programming (SQL Server and PostgreSQL).

In 2016 started the AdminStock.net - solutions for administrators.
baruchl
Team Leader Intel
Israel Israel
I've been around at Intel for about 13 years, developing and leading SW information system projects.

I have extended experience in .NET (C#) and SQL development.

I'm currently located at OR for a 2Y assignmentOur current development environment is .NET 4.0 and SQL2008, we are using WPF 4.0 for UI, EF4 for data manipulation and WCF 4.0 for communicating from the client to the server.

Love design patterns and cool looking code.

Motto: "Are we having fun or what?"
C Yang
United States United States
A program analyst specialize in XML/HTML/CSS, Office Automation and Oracle Database.

A hobbyist of computer science. My favorite languages are C# and C++, but I also like to code in Ruby, Perl, Java, Python, Basic and SQL script.
Clifford Nelson
Software Developer (Senior) Clifford Nelson Consulting
United States United States
Has been working as a C# developer on contract for the last several years, including 3 years at Microsoft. Previously worked with Visual Basic and Microsoft Access VBA, and have developed code for Word, Excel and Outlook. Started working with WPF in 2007 when part of the Microsoft WPF team. For the last eight years has been working primarily as a senior WPF/C# and Silverlight/C# developer. Currently working as WPF developer with BioNano Genomics in San Diego, CA redesigning their UI for their camera system. he can be reached at qck1@hotmail.com.
CooperWu
Software Developer (Senior) Thomson Reuters
China China
I started to programming in 2002, started when I was grade 2 in university, I participated some part-time projects at that time, I have much experiences on Windows, includes C#, ASP.NET, Visual Basic, Visual C++, AJAX, Power Shell Script, JavaScript, XML..etc, I am learning design and architect.
Dan Randolph
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.
Dan-el Khen
Architect SharpKit
Israel Israel
Founder of SharpKit
Daniel Miller
Software Developer
Canada Canada
I have been doing software system development and operations for many more years than I care to count, working as an independent consultant for organizations that range from small non-profit associations in my local community to global Fortune 500 enterprises.

Most of my work is focused on the design, implementation, and operation of web-based business software. My research interests include application architecture, data modeling, and custom solutions for large-scale data management, conversion, and integration.
Dean Oliver
Software Developer BBD Johannesburg
South Africa South Africa
Bsc (Hons) Business Information Systems.
MCTS: Web Applications Development with Microsoft .NET Framework 4
MCTS: Windows Communication Foundation Development with Microsoft .NET Framework 4
MCTS: Accessing Data with Microsoft .NET Framework 4
Microsoft Certified Professional Developer Certification.
Dhanushka Madushan lk
Software Developer
Sri Lanka Sri Lanka
No Biography provided
Dirk Bahle
Germany Germany
The Windows Presentation Foundation (WPF) and C# are among my favorites and so I developed Edi

and a few other projects on GitHub. I am normally an algorithms and structure type but WPF has such interesting UI sides that I cannot help myself but get into it.

https://de.linkedin.com/in/dirkbahle
No Biography provided
G. Filkov
Canada Canada
No Biography provided
Gil Yoder
Yoder's List
United States United States
Gil Yoder is an application performance analyst at Chevron. He has been working in their IT organization for about fifteen years. Before Chevron computer technology was more hobby than profession for him. He still considers it a hobby and enjoys learning about all of its aspects.

He starting learning how to program on a TRS-80 Model I computer with 4K RAM and 4K ROM. Those who can remember those days know that the 4K ROM contained all of the "OS" for the computer, and somewhat crippled version of Microsoft BASIC.

After a while he was able to upgrade the computer so that eventually he had a fully loaded 64K system, 48K RAM, and 16K ROM. With that he learned to program in BASIC and Z80 Assembly Language. He sold his first machine language program to 80-Micro Magazine (shortly before it folded) for $500. The program was a Z80 Debugger that sported a feature allowing single stepping within ROM.

At this time most of Yoder's free time is spent programming and learning about C#, WPF, SilverLight, MVVM, and other related technologies.

Mr. Yoder lives in a small suburb of Houston, TX with his wife. He and his wife have one daughter who is married and has two wonderful boys. Yoder looks forward to the day he can teach his grandsons how to design and create WPF controls.
Gil.Schmidt
Team Leader
Israel Israel
No Biography provided
Grasshopper.iics
CEO Integrated Ideas
India India
gasshopper.iics is a group of like minded programmers and learners in codeproject. The basic objective is to keep in touch and be notified while a member contributes an article, to check out with technology and share what we know. We are the "students" of codeproject.

This group is managed by Rupam Das, an active author here. Other Notable members include Ranjan who extends his helping hands to invaluable number of authors in their articles and writes some great articles himself.

Rupam Das is mentor of Grasshopper Network,founder and CEO of Integrated Ideas Consultancy Services, a research consultancy firm in India. He has been part of projects in several technologies including Matlab, C#, Android, OpenCV, Drupal, Omnet++, legacy C, vb, gcc, NS-2, Arduino, Raspberry-PI. Off late he has made peace with the fact that he loves C# more than anything else but is still struck in legacy style of coding.
Rupam loves algorithm and prefers Image processing, Artificial Intelligence and Bio-medical Engineering over other technologies.

He is frustrated with his poor writing and "grammer" skills but happy that coding polishes these frustrations.
Group type: Organisation

116 members

Henry He
Software Developer (Senior)
United States United States
Senior Software Developer from New Jersey, USA

Have 15+ years experience on enterprise application development with various technologies.
Inaki Ayucar
Software Developer (Senior)
Spain Spain
Inaki Ayucar is a Microsoft MVP in DirectX/XNA, and a software engineer involved in development since his first Spectrum 48k, in the year 1987. He is the founder and chief developer of The Simax Project (www.simaxvirt.com) and is very interested in DirectX/XNA, physics, game development, simulation, C++ and C#.

His blog is: http://graphicdna.blogspot.com

To contact Inaki: iayucar@simax.es
Jarek Kruza
Flextronics
Poland Poland
Programming since 10 years old with first commercial app sold in age of 16.

In past got Bachelor's degree in Computer Sciences and worked as Linux administrator and software developer.

Currently slightly over 30 and working as IT Project Manager for Flextronics.

Still coding for fun and/or money.
Jarrey
China China
No Biography provided
JasonShort
Software Developer (Senior)
United States United States
I hold a PhD in computer science, and have been a practicing developer since the early 90's.

I used to be the owner for VistaDB, but sold the product to another company in August 2010.

I have recently moved to Redmond and now work for Microsoft. Any posts or articles are purely my own opinions, and not the opinions of my employer.
johannesnestler
Austria Austria
No Biography provided
kosmoh
Software Developer Crypton-M
Ukraine Ukraine
No Biography provided
MarkLTX
Software Developer (Senior)
United States United States
Mark Lauritsen has been a software developer for as long as he can remember.
Mikhail-T
Web Developer
United States United States
Coding is awesome!
Nicolas Dorier
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 | :)
Oleg Shilo
Program Manager
Australia Australia
I was born in Ukraine. After completing the university degree worked there as a Research Chemist. Last 23 years I live in Australia where I've got my second qualification as a Software Engineer.

"I am the lucky one: I do enjoy what I am doing!"
ozkary
Architect OG-BITechnologies
United States United States
Software engineer, author & speaker who enjoys mentoring, learning, speaking and sharing with others about software development technologies. Microsoft MVP.

My Blog
Petr Ivankov
Architect
Russian Federation Russian Federation
Ph. D. Petr Ivankov worked as scientific researcher at Russian Mission Control Centre since 1978 up to 2000. Now he is engaged by Aviation training simulators http://dinamika-avia.com/ . His additional interests are:

1) Noncommutative geometry

http://front.math.ucdavis.edu/author/P.Ivankov

2) Literary work (Russian only)

http://zhurnal.lib.ru/editors/3/3d_m/

3) Scientific articles
http://arxiv.org/find/all/1/au:+Ivankov_Petr/0/1/0/all/0/1
Richard James Moss
Software Developer (Senior)
United Kingdom United Kingdom
No Biography provided
rish_wins
Web Developer
India India
No Biography provided
saboor awan
Software Developer (Senior)
Pakistan Pakistan
Expertise on Enterprise solutions, Mobile Apps & Services based applications on .NET platform. As Sr. Software Engineer, I have worked on variety of technologies like ASP.NET MVC, MS Windows Phone 7, WCF, and MS SharePoint 2010, MS Dynamics CRM.
Samer Abu Rabie
Architect
Jordan Jordan
Samer is a Computer and Digital Electronics Engineer who lives in Abu Dhabi UAE, worked on a fair number of personal projects as part of fun or freelancing, mostly related to integration between hardware and software (e.g Security Systems, Sensors, Cameras, Bluetooth ... etc), which gave him a powerful knowledge in this area and the ability to invent various complex designs to adhere for external elements effect those systems.

Through his career path he worked on a fair number of enterprise projects with well known software companies, which showed him the various aspects of an enterprise applications.

You may contact Samer through his e-mail: SamerX@outlook.com or Twitter: SamerX as well.
Sebastian Krysmanski
Software Developer University of Stuttgart
Germany Germany
I have studied Software Engineering and am currently working at the University of Stuttgart, Germany.

I have been programming for many years and have a background in C++, C#, Java, Python and web languages (HTML, CSS, JavaScript).
Sion Cohen
Architect
Israel Israel
No Biography provided
SteveAdey
Software Developer (Senior) NoProblem Software Ltd
United Kingdom United Kingdom
No Biography provided
thatraja
Web Developer
India India
Retired from Q/A section & Technical forums since 2014

More coming soon....
Vasily Tserekh
Software Developer
United States United States
Born on 86, had my first computer at the age of 8, wrote my first code at the age of 15(pascal), began to study software engineering at 2005 and graduated in 2010. Now I am currently developing software for ERP systems in "Michell Consulting, LLC" . I have a dev blog www.vasilydev.blogspot.com. My real passion is 3D game programming and playing guitar. I've programmed stuff in C#, python, Delphi, PHP, C++, JS, QT and others...
VIBlend
VIBlend
United States United States
VIBlend designs and develops advanced components and controls for Windows platform
Group type: Organisation

7 members

Wahid Bitar
Software Developer (Senior) GBG IDScan
Turkey Turkey
No Biography provided
Weidong Shen
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
William SerGio
Chief Technology Officer Fortune 100 Company
United States United States
I am an expert in Artificial Intelligence (AI) and Blockchain and have always worked as Director of Software Development for the largest companies in America.
I have developed software for the American Red Cross, Microsoft, MySpace.com, Quicken (Intuit), Mellon Bank, U.S. Army, U.S. Navy, Franklin Templeton, Pepsi, Universal Studios, Ryder Systems, etc.
Young Ye
Software Developer (Senior)
Canada Canada
I am a passionated software developer / engineer with strong desire to develop in a simple, fast, beautiful way with the skillset such as simple design, refactoring, TDD. i worked in J2EE for about 5 years, now i work as a .NET devleoper.
You must sign in to participate in this contest.
This contest has ended.
1 Jan - 31 Jan 2012