Click here to Skip to main content
15,440,884 members
This competition has ended

Best C# article of April 2010

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.
29 Apr 2010Roman 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.
Please Sign up or sign in to vote.
25 May 2010Thiago de Arruda
A Virtualizing WrapPanel for WPF.
Please Sign up or sign in to vote.
8 May 2011defwebserver
An example of a Silverlight 4 View Model Style video player that is not just 'skinable' but fully 'designable'.
Please Sign up or sign in to vote.
18 Apr 2010Nicholas Butler
A tiny HTTP server wrapped in a WebBrowser control
Please Sign up or sign in to vote.
26 Apr 2010Alan Beasley
How to Style the Control Template of a ListBox in a small MVVM application
Please Sign up or sign in to vote.
10 Apr 2010Ali Aboutalebi
Using the C# script engine inside a network using .NET Remoting.
Please Sign up or sign in to vote.
6 May 2010defwebserver
A Silverlight file manager that allows drag and drop multiple file uploads
Please Sign up or sign in to vote.
5 Apr 2010PIEBALDconsult
A class that allows my CommScript class to "'drive' a command line utility"
Please Sign up or sign in to vote.
12 Apr 2010Nish 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.
Please Sign up or sign in to vote.
22 Apr 2010Alexei Shamov
Convert types, parse and evaluate expressions in runtime, in .NET 2.0
Please Sign up or sign in to vote.
29 Apr 2010Sangsu Park 99
How to serialize a pure .NET object class to a fast binary data
Please Sign up or sign in to vote.
2 Apr 2010Steve 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.
Please Sign up or sign in to vote.
9 Apr 2010Sean Goodpasture
A look at how to compile and use the Xapian search technology on Windows, and its pitfalls.
Please Sign up or sign in to vote.
14 Apr 2010Nish 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...
Please Sign up or sign in to vote.
2 Oct 2010Sky Sanders
Leverage the built-in development web server in testing and other scenarios.
Please Sign up or sign in to vote.
26 Apr 2010George Henry 1954
Presents a class that facilitates high-usability binding of an ordinary TextBox to a numeric property
Please Sign up or sign in to vote.
22 May 2010#realJSOP 1 alternative  
Programatically set grid row/column sizes (yes, even "Auto", "*", and "X*" - thanks Nish).
Please Sign up or sign in to vote.
13 Apr 2010Paulo Morgado
LINQ: Single vs. First
Please Sign up or sign in to vote.
18 Apr 2010Tamas Koszoru
Summarizing client side asynchronous invocations in WCF/WCF Silverlight. Introducing ServiceClient class.
Please Sign up or sign in to vote.
21 Apr 2010Mr Orange
Introduction...
Please Sign up or sign in to vote.
17 May 2010Rama 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...
Please Sign up or sign in to vote.
18 Apr 2010Sky Sanders
Use Visual Studio 2008 Development Server (WebDev.WebServer.exe) in automated testing frameworks
Please Sign up or sign in to vote.
11 Apr 2010Mohammad Elsheimy
Give the user the flexibility to design his sheet, report, bill, invoice, whatever.
Please Sign up or sign in to vote.
15 Apr 2010Paulo Morgado
LINQ: Enhancing Distinct with the SelectorEqualityComparer
Please Sign up or sign in to vote.
14 Apr 2010Nuno 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...
Please Sign up or sign in to vote.
26 Apr 2010Timmy Kokke
Getting started with the basics of validation in Silverlight
Please Sign up or sign in to vote.
1 Apr 2010rudigrobler
With Windows 7’s public release less than 2 weeks away (22 October 2009), I decided to dig into how the taskbar works!
Please Sign up or sign in to vote.
8 Apr 2010Daniel 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.
Please Sign up or sign in to vote.
9 Apr 2010jmix90
Simple properties Mapper by reflection: Stop copying manually each property of your objects !
Please Sign up or sign in to vote.
9 Apr 2010Sheng Zeng
A custom control for checking whether JavaScript and Cookie are enabled in the client browser
Please Sign up or sign in to vote.
11 Apr 2010Mohammad Abu-Ali
This article explains how to provide the feature of uploading files to a web page, imitating AJAX behavior.
Please Sign up or sign in to vote.
15 Apr 2010Paulo Morgado
Web Site Globalization With ASP.NET Routing
Please Sign up or sign in to vote.
15 Apr 2010Paulo Morgado
How to compile .NET 1.1 projects in Visual Studio 2008
Please Sign up or sign in to vote.
22 Apr 2010Arik Poznanski
Crash while closing application that uses Windows Ribbon Framework
Please Sign up or sign in to vote.
28 Apr 2010Not Active
Using SPExport and SPImport to copy or move a SharePoint web.
Please Sign up or sign in to vote.
28 Apr 2010Uros Calakovic
A Mgmtclassgen.exe Issue
Please Sign up or sign in to vote.
1 Apr 2010rudigrobler
Building OpenPOS: SalesModule (Part 1)
Please Sign up or sign in to vote.
1 Apr 2010rudigrobler
This demo will ONLY focus on the VIDEO ON DEMAND scenario!
Please Sign up or sign in to vote.
6 Apr 2010Rainer Halanek
A Connection Scope for the Entity Framework that allows to execute commands in a single connection
Please Sign up or sign in to vote.
12 Apr 2010Martin Jarvis
ASP.NET and custom error pages, an SEO nightmare?
Please Sign up or sign in to vote.
15 Apr 2010Joe Rattz
Using LINQ To Filter By Object Type and Then Quantify
Please Sign up or sign in to vote.
15 Apr 2010Paulo Morgado
The Evolution Of C#
Please Sign up or sign in to vote.
15 Apr 2010Paulo Morgado
LINQ: Enhancing Distinct With The PredicateEqualityComparer
Please Sign up or sign in to vote.
15 Apr 2010Paulo Morgado
C# Proposal: Compile Time Static Checking Of Dynamic Objects
Please Sign up or sign in to vote.
15 Apr 2010Paulo Morgado
Getting Interface Property Implementations
Please Sign up or sign in to vote.
15 Apr 2010Paulo Morgado
A TraceListener For Tests
Please Sign up or sign in to vote.
15 Apr 2010Paulo Morgado
How To Set Elements Of An Array Of A Private Type Using Visual Studio Shadows
Please Sign up or sign in to vote.
13 Apr 2010Paulo Morgado
Running .NET 1.1 Applications on .NET 2.0
Please Sign up or sign in to vote.
14 Apr 2010Nuno M. F. Gomes
ASP.NET Health Monitoring - Building an EventLogWebEventProvider

Current Participants

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

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.
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.
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 .
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.
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).
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/
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!"
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:
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.
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 :
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
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.
Software Developer (Senior) Software Café
Jordan Jordan
Software Developer (Senior)
Egypt Egypt
Mohammad Elsheimy is a developer, trainer, and technical writer. He is a MCP, MCTS (WinForms), MCPD (Windows Apps), MCSA (SQL Server), MCSE (Data Analytics), 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.
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)
United Kingdom United Kingdom
I discovered C# and .NET 1.0 Beta 1 in late 2000 and loved them immediately.
I have been writing software professionally in C# ever since

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.

I can work 'virtually' anywhere!
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
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.
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.
Software Developer (Senior) Paulo Morgado
Portugal Portugal
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

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

"I would be looking for better tekkies, too. Yours are broken." -- Paul Pedant

"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
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.
Architect
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 (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.
South Africa South Africa
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Senior)
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
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.
Software Developer (Senior)
Canada Canada
Microsoft Certified Professional Developer (MCPD).
C#, ASP.NET, SharePoint, Microsoft Dynamics CRM, GIS
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
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.
Software Developer (Senior)
Ireland Ireland
.NET Developer.
Brazil Brazil
Software developer specialized in the .NET framework
Software Developer (Senior) Velicus 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.
Systems / Hardware Administrator
Bosnia and Herzegovina Bosnia and Herzegovina
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 Apr - 30 Apr 2010