Click here to Skip to main content
14,271,759 members

Best C# article of April 2010

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.

29 Apr 2010
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.
25 May 2010
Thiago de Arruda
A Virtualizing WrapPanel for WPF.
8 May 2011
defwebserver
An example of a Silverlight 4 View Model Style video player that is not just 'skinable' but fully 'designable'.
18 Apr 2010
Nicholas Butler
A tiny HTTP server wrapped in a WebBrowser control
26 Apr 2010
Alan Beasley
How to Style the Control Template of a ListBox in a small MVVM application. Discussing multiple Styles, nested Controls, Resource Dictionaries, Similar Control Templates (TreeView), Control Reuse & a few other tips...
10 Apr 2010
Ali Aboutalebi
Using the C# script engine inside a network using .NET Remoting.
6 May 2010
defwebserver
A Silverlight file manager that allows drag and drop multiple file uploads
5 Apr 2010
PIEBALDconsult
A class that allows my CommScript class to "'drive' a command line utility"
12 Apr 2010
Nish Nishant
The Exif Compare Utility is a WinDiff equivalent for image files that compares the Exif meta-data and displays the differences and similarities. The application is written using WPF and MVVM.
22 Apr 2010
Alexei Shamov
Convert types, parse and evaluate expressions in runtime, in .NET 2.0
29 Apr 2010
Sangsu Park 99
How to serialize a pure .NET object class to a fast binary data
2 Apr 2010
Steve Wellens
A user had a problem calling a Web Service from a web page asynchronously. I tried his code on my machine and was able to reproduce the problem. I was able to solve his problem, but only after taking the long scenic route through some of the more perplexing nuances of Web Services and Proxies.
9 Apr 2010
Sean Goodpasture
A look at how to compile and use the Xapian search technology on Windows, and its pitfalls.
14 Apr 2010
Nish Nishant
John, here's a simpler way to do this. This will also handle strings like "3*" which are valid grid length values in Xaml.private RowDefinition MakeRowDefinition(string height){ RowDefinition rowDef = new RowDefinition(); GridLengthConverter converter = new...
2 Oct 2010
Sky Sanders
Leverage the built-in development web server in testing and other scenarios.
22 May 2010
#realJSOP
1 alternative  
Programatically set grid row/column sizes (yes, even "Auto", "*", and "X*" - thanks Nish).
13 Apr 2010
Paulo Morgado
LINQ: Single vs. First
18 Apr 2010
Tamas Koszoru
Summarizing client side asynchronous invocations in WCF/WCF Silverlight. Introducing ServiceClient class.
22 Apr 2010
Mr Orange
Introduction...
26 Apr 2010
George Henry 1954
Presents a class that facilitates high-usability binding of an ordinary TextBox to a numeric property
17 May 2010
Rama Krishna Vavilala
I will just make it a little more compact by omitting the Contains method:public static string GetValue(this XElement root, string name, string defaultValue) { return (string)root.Elements(name).FirstOrDefault() ?? defaultValue; }The explicit operators for XElement...
11 Apr 2010
Mohammad Elsheimy
Give the user the flexibility to design his sheet, report, bill, invoice, whatever.
18 Apr 2010
Sky Sanders
Use Visual Studio 2008 Development Server (WebDev.WebServer.exe) in automated testing frameworks
15 Apr 2010
Paulo Morgado
LINQ: Enhancing Distinct with the SelectorEqualityComparer
14 Apr 2010
Nuno M. F. Gomes
Finding out whether an assembly was compiled in Debug or Release mode is a task we must do from time to time...
27 Apr 2010
Timmy Kokke
Getting started with the basics of validation in Silverlight
1 Apr 2010
rudigrobler
With Windows 7’s public release less than 2 weeks away (22 October 2009), I decided to dig into how the taskbar works!
8 Apr 2010
Daniel Ormisher
This article describes a simple method of capturing a NewWindow event for the Windows Forms WebBrowser control, and also how to detect (and potentially cancel) a JavaScript window.close() call.
9 Apr 2010
jmix90
Simple properties Mapper by reflection: Stop copying manually each property of your objects !
9 Apr 2010
Sheng Zeng
A custom control for checking whether JavaScript and Cookie are enabled in the client browser
11 Apr 2010
Mohammad Abu-Ali
This article explains how to provide the feature of uploading files to a web page, imitating AJAX behavior.
15 Apr 2010
Paulo Morgado
Web Site Globalization With ASP.NET Routing
15 Apr 2010
Paulo Morgado
How to compile .NET 1.1 projects in Visual Studio 2008
23 Apr 2010
Arik Poznanski
Crash while closing application that uses Windows Ribbon Framework
28 Apr 2010
Not Active
Using SPExport and SPImport to copy or move a SharePoint web.
28 Apr 2010
Uros Calakovic
A Mgmtclassgen.exe Issue
1 Apr 2010
rudigrobler
Building OpenPOS: SalesModule (Part 1)
1 Apr 2010
rudigrobler
This demo will ONLY focus on the VIDEO ON DEMAND scenario!
7 Apr 2010
Rainer Halanek
A Connection Scope for the Entity Framework that allows to execute commands in a single connection
12 Apr 2010
Martin Jarvis
ASP.NET and custom error pages, an SEO nightmare?
15 Apr 2010
Joe Rattz
Using LINQ To Filter By Object Type and Then Quantify
15 Apr 2010
Paulo Morgado
LINQ: Enhancing Distinct With The PredicateEqualityComparer
15 Apr 2010
Paulo Morgado
C# Proposal: Compile Time Static Checking Of Dynamic Objects
15 Apr 2010
Paulo Morgado
Getting Interface Property Implementations
15 Apr 2010
Paulo Morgado
A TraceListener For Tests
15 Apr 2010
Paulo Morgado
How To Set Elements Of An Array Of A Private Type Using Visual Studio Shadows
13 Apr 2010
Paulo Morgado
Running .NET 1.1 Applications on .NET 2.0

Current Participants

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

#realJSOP
Software Developer (Senior) Paddedwall Software
United States United States
I've been paid as a programmer since 1982 with experience in Pascal, and C++ (both self-taught), and began writing Windows programs in 1991 using Visual C++ and MFC. In the 2nd half of 2007, I started writing C# Windows Forms and ASP.Net applications, and have since done WPF, Silverlight, WCF, web services, and Windows services.

My weakest point is that my moments of clarity are too brief to hold a meaningful conversation that requires more than 30 seconds to complete. Thankfully, grunts of agreement are all that is required to conduct most discussions without committing to any particular belief system.
Alan Beasley
User Interface Analyst
United Kingdom United Kingdom
I've been playing with computers since my first Acorn Electron, & after blowing up a few ZX Spectrums. I moved on to the C64 & Amiga, & eventually reluctantly on to the PC.

I have learnt a wide set of skills during my 38 years of existence, living in the UK, on the sunny south coast.

My main area of expertise is Graphic/Visual Design, Usability & UI Design. I am not a programmer, but am fairly technically minded due to studying Mechanical Engineering at Uni.

I have work both Freelance & for IBM as a Graphic Designer, & am skilled in the usual graphics packages like, PhotoShop, CorelDraw or Illustrator, Premier, Dreamweaver, Flash etc.
But I originally started with Lightwave & 3D animation.
Alexei Shamov
Software Developer http://xsharper.com
Canada Canada
Putting code between curly braces for centuries. Lately, between curly and angle braces too, on http://xsharper.com .
Ali Aboutalebi
Software Developer
Iran (Islamic Republic of) Iran (Islamic Republic of)
I'm an undergraduate student of IT.
I'm a C# programmer and have some experience in robotics, image processing, telephony systems, etc.
Arik Poznanski
Software Developer (Senior) Verint
Israel Israel
Arik Poznanski is a senior software developer at Verint. He completed two B.Sc. degrees in Mathematics & Computer Science, summa cum laude, from the Technion in Israel.

Arik has extensive knowledge and experience in many Microsoft technologies, including .NET with C#, WPF, Silverlight, WinForms, Interop, COM/ATL programming, C++ Win32 programming and reverse engineering (assembly, IL).
cao4zy
Program Manager Nova Software
China China
I am a programmer dedicating to make the complex stuff simple.

My Chinese blog can be accessed at http://www.cnblogs.com/czy/
Daniel Ormisher
Software Developer Gold Medal Travel
United Kingdom United Kingdom
"What is best in life: Crush your enemies, see them driven before you, and to hear the lamentation of the women!"
defwebserver
Software Developer (Senior) http://ADefWebserver.com
United States United States
Michael Washington is a Microsoft MVP. He is a ASP.NET and
C# programmer.
He is the founder of
AiHelpWebsite.com,
LightSwitchHelpWebsite.com, and
HoloLensHelpWebsite.com.

He has a son, Zachary and resides in Los Angeles with his wife Valerie.

He is the Author of:
George Henry 1954
Software Developer (Senior) Concur
United States United States
George Henry has worked as a software developer for more than 20 years. He is currently employed by Concur in Bellevue, Washington, USA.
jmix90
Software Developer http://wpf-france.fr
France (Metropolitan) France (Metropolitan)
Jonathan creates software, mostly with C#,WPF and XAML.

He really likes to works on every Natural User Interfaces(NUI : multitouch, touchless, etc...) issues.



He is awarded Microsoft MVP in the "Client Application Development" section since 2011.


You can check out his WPF/C#/NUI/3D blog http://www.jonathanantoine.com.

He is also the creator of the WPF French community web site : http://wpf-france.fr.

Here is some videos of the projects he has already work on :
Joe Rattz
Technical Lead Genuine Parts Company
United States United States
Author: Pro LINQ: Language Integrated Query in C# 2008
Co-author: Pro LINQ: Language Integrated Query in VB 2008
Martin Jarvis
Software Developer (Senior) Freestyle Interactive Ltd
United Kingdom United Kingdom
I'm a lead developer for Freestyle Interactive Ltd where we create many wonderful websites built on Microsofts ASP.Net and Ektron CMS.

I've been developing .Net applications (both Windows and Web) since 2002.
Mohammad Abu-Ali
Software Developer (Senior) Software Café
Jordan Jordan
Mohammad Elsheimy
Software Developer (Senior) Continental School of Cairo
Egypt Egypt
ohammad Elsheimy is a Microsoft developer, trainer, and technical writer currently hired by The Continental School of Cairo (http://continental-school.com) as solution developer and team leader.

Mohammad is a MCP, MCTS, MCPD, MCSA, MCSE, and MCT expertized in .NET Framework technologies, data management and analytics. He is also a Project Management Professional (PMP) and a Quranic Readings Institute (Al-Azhar) graduate specialized in Quranic readings, Islamic legislation, and the Arabic language.

Mohammad was born in 1991 in Banha, Egypt. He loves his machine and his code more than anything else!

Currently, Mohammad runs 3 blogs:
Mr Orange
Software Developer (Senior) Sigma IT & Management
Sweden Sweden
Working with web application development since 1999.
Developer of the CMS product Publech (www.publech.com) and a large range of other Publech modules.

Involved in developing the largest non commercial website in Sweden the Swedish Public Employment Service (www.ams.se)
Nicholas Butler
United Kingdom United Kingdom

I built my first computer, a Sinclair ZX80, on my 11th birthday in 1980.
In 1992, I completed my Computer Science degree and built my first PC.
I discovered C# and .NET 1.0 Beta 1 in late 2000 and loved them immediately.
I have been writing concurrent software professionally, using multi-processor machines, since 1995.

In real life, I have spent 3 years travelling abroad,
I have held a UK Private Pilots Licence for 20 years,
and I am a PADI Divemaster.

I now live near idyllic Bournemouth in England.

If you would like help with multithreading, please contact me via my website:



I can work 'virtually' anywhere!
Nish Nishant
United States United States
Nish Nishant is a Principal Software Architect based out of Columbus, Ohio. He has over 17 years of software industry experience in various roles including Lead Software Architect, Principal Software Engineer, and Product Manager. Nish was a Microsoft Visual C++ MVP between 2002 and 2015.

Nish is an industry acknowledged expert in the Microsoft technology stack. He authored C++/CLI in Action for Manning Publications in 2005, and had previously co-authored Extending MFC Applications with the .NET Framework for Addison Wesley in 2003. In addition, he has over 140 published technology articles on CodeProject.com and another 250+ blog articles on his WordPress blog. Nish is vastly experienced in team management, mentoring teams, and directing all stages of software development.

Contact Nish : If you are interested in hiring Nish as a consultant, you can reach him via his google email id voidnish.

Company Website : www.ganymedesoftwaresolutions.com
Not Active
United States United States
No Biography provided
Nuno M. F. Gomes
Architect everis
Portugal Portugal
Over 13 years of experience in the Software Development working mainly in the banking and insurance industry.

Over 3 year of experience as Operations Team Leader focused on Infrastructure Management and Software Configuration Management.

I've been honored with the Microsoft Most Valuable Professional (MVP) Award for three consecutive years, 2010, 2011 and 2012, in recognition to exceptional technical contributions and leadership.

Current / Recent Technical Projects
- Dominican Republic Instance management, including 2nd line System management, capacity management, SW monitoring and deploy management
- Colombian SECOPII Instance management, including 2nd line System management, capacity management, SW monitoring and deploy management
- Vortal Main Instance management, including 2nd line System management, capacity management, SW monitoring and deploy management
- Vortal Development ecosystem management, including Server management, , capacity management, SW monitoring and deploy management

Areas of Specialization:
- Operations Management - ISO 20000 & ISO 27001 driven
- Team Management and Coaching
- Technology Leadership, Solutions/Architecture
- Product life cycle management, Continuous Integration
- Technological background in Microsoft frameworks and tools.
Paulo Morgado
Software Developer (Senior) Paulo Morgado
Portugal Portugal
PIEBALDconsult
Software Developer (Senior)
United States United States
BSCS 1992 Wentworth Institute of Technology

Originally from the Boston (MA) area. Lived in SoCal for a while. Now in the Phoenix (AZ) area.

OpenVMS enthusiast, ISO 8601 evangelist, photographer, opinionated SOB, acknowledged pedant and contrarian

---------------

"Using fewer technologies is better than using more." -- Rico Mariani

"Good code is its own best documentation. As you’re about to add a comment, ask yourself, ‘How can I improve the code so that this comment isn’t needed?’" -- Steve McConnell

"Every time you write a comment, you should grimace and feel the failure of your ability of expression." -- Unknown

"If you need help knowing what to think, let me know and I'll tell you." -- Jeffrey Snover [MSFT]

"Typing is no substitute for thinking." -- R.W. Hamming

"I find it appalling that you can become a programmer with less training than it takes to become a plumber." -- Bjarne Stroustrup

ZagNut’s Law: Arrogance is inversely proportional to ability.

"Well blow me sideways with a plastic marionette. I've just learned something new - and if I could award you a 100 for that post I would. Way to go you keyboard lovegod you." -- Pete O'Hanlon

"linq'ish" sounds like "inept" in German -- Andreas Gieriet

"Things would be different if I ran the zoo." -- Dr. Seuss

"Wrong is evil, and it must be defeated." –- Jeff Ello

"A good designer must rely on experience, on precise, logical thinking, and on pedantic exactness." -- Nigel Shaw

“It’s always easier to do it the hard way.” -- Blackhart

“If Unix wasn’t so bad that you can’t give it away, Bill Gates would never have succeeded in selling Windows.” -- Blackhart

"Use vertical and horizontal whitespace generously. Generally, all binary operators except '.' and '->' should be separated from their operands by blanks."

"Omit needless local variables." -- Strunk... had he taught programming
Rainer Halanek
Software Developer (Senior)
Austria Austria
Born and living in Vienna, Austria. Started with Pascal in 1993 and MS-DOS 5.0. After that a little C++ in OS/2 and loads of VBA with Access in Windows 95,98, NT. To get more professionel I started C# in 2002 and did some MCP exams on that. After working for my own company I got hired by different companies. Currently I'm employed at the Federal Chambers of Commerce as a Senior Software Engineer.
Rama Krishna Vavilala
Architect
United States United States
No Biography provided
Roman Kiss
Software Developer (Senior)
United States United States
No Biography provided
rudigrobler
South Africa South Africa
No Biography provided
Sandrino Di Mattia
Technical Lead RealDolmen
Belgium Belgium
I'm a Technical Consultant at RealDolmen, one of the largest players on the Belgian IT market: http://www.realdolmen.com

All posts also appear on my blogs: http://blog.sandrinodimattia.net and http://blog.fabriccontroller.net
Sangsu Park 99
Software Developer (Senior)
Australia Australia
No Biography provided
Sean Goodpasture
Web Developer
United States United States
I'm the owner and principal consultant of a small (one man!) shop here in the Dallas, Texas area.

I mostly work with Microsoft technologies, but run a lot of Linux at home.
Sheng Zeng
Software Developer (Senior)
Canada Canada
Microsoft Certified Professional Developer (MCPD).
C#, ASP.NET, SharePoint, Microsoft Dynamics CRM, GIS
Sky Sanders
Software Developer (Senior) Salient Solutions
United States United States
My name is Sky Sanders and I am an end-to-end, front-to-back software solutions architect with more than 20 years experience in IT infrastructure and software development, the last 10 years being focused primarily on the Microsoft .NET platform.

My motto is 'I solve problems.' and I am currently available for hire.

I can be contacted at sky.sanders@gmail.com
Steve Wellens
EndWell Software, Inc.
United States United States
I am an independent contractor/consultant working in the Twin Cities area in Minnesota. I work in .Net, Asp.Net, C#, C++, XML, SQL, Windows Forms, HTML, CSS, etc., etc., etc.
Tamas Koszoru
Software Developer (Senior)
Ireland Ireland
.NET Developer.
Software developer specialized in the .NET framework
Timmy Kokke
Software Developer (Senior) Centric Netherlands B.V.
Netherlands Netherlands
Microsoft MVP Client Dev . Founder of http://StoreAppsUG.nl, the Dutch Windows Store apps and Windows Phone apps usergroup. XAML / HTML5 developer. Writer. Composer. Musician.

Twitter
@Sorskoot

Awards / Honers
• October 2010,2011,2012,2013: Awarded Microsoft Expression Blend MVP
• June 2009: Second Place in the WinPHP challenge
• February 2009: Runner-up in de Mix09 10k Challenge
• June 2008: Winner of the Microsoft expression development contest at www.dekickoff.nl

Bio
I started programming around 1992, when my father had bought our first home computer. I used GWBasic at that time. After using QBasic and Pascal for a few years I started to learn C/C++ in 1996. I went to the ICT Academy in 1997 and finnished it in 2002. Until December 2007 I worked as a 3D specialist. Besides modelling I worked on different development projects like a 3D based Scheduler and different simultion tools in C# and Java. Though out the years I've gained much experience with ASP.NET, Silverlight, Windows Phone and WinRT.
Uros Calakovic
Systems / Hardware Administrator
Bosnia and Herzegovina Bosnia and Herzegovina
No Biography provided
You must sign in to participate in this contest.
This contest has ended.
1 Apr - 30 Apr 2010