Click here to Skip to main content
14,334,330 members

Best C# article of May 2011

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.

10 May 2011
D. Christian Ohle
C# scripts using DynamicMethod
15 May 2011
kribo
How to insert images / binary data into a database.
15 May 2011
Ondrej_Uzovic
A simple example showing how to implement a service listening to TCP, HTTP and Named Pipe at the same time.
30 May 2011
IGood
A possibly simpler version of this is to create an extension method for strings:public static class MyExtensions{ public static TEnum ParseEnum(this string value, bool ignoreCase = false) where TEnum : struct { TEnum tenumResult; ...
19 May 2011
Aron Weiler
Like the title says... a simple (very simple) page transition control for WPF
27 May 2011
dzCepheus
You can limit the scope of 'p' inside your function:private void Whatever() { DoStuffHere(); // 'p' is not in scope. { var p = this.StatusProgressBar; // 'p' is in scope. p.IsIndeterminate = false; p.[etc] } // 'p' is not in...
17 May 2011
Kanasz Robert
In this tip I will show, how to scroll two listbox objects together
18 May 2011
Colin Eberhardt
This blog post describes the implementation of a metro ’tilt’ effect for Windows Phone 7 which causes element to respond to user interactions by tilting in 3D.
17 May 2011
Colin Eberhardt
This blog post describes a Windows Phone 7 NavigationList control, a list control designed for navigation pages. The NavigationList renders twice as fast as a ListBox and has a slightly simpler API.
1 May 2011
Ernest Poletaev
A Localized WPF Application template for easily localizing a WPF application
11 May 2011
Andrew Rissing
Three improvement ideas:-Add check to ensure the enum is a [Flags] enum.-Make the method generic and static with the enum type generic. I don't know how common it would be to have the type already on hand. It makes it simpler to use.-Iterate over all of the values and bit-wise or them...
15 May 2011
ambarishtv
dynamic keyword - Represents an object whose operations will be resolved at runtime
17 May 2011
Kunal Chowdhury «IN»
Are you aware of the Line Stacking Strategy of Silverlight TextBlock control? If not, this post will help you to understand it and after that you will be able to use it whenever required.
22 May 2011
Mohammad A Rahman
2 alternatives  
4 May 2011
Philip Laureano
Intercepting Console.WriteLine and Other Third-Party Method Calls with LinFu.AOP 2.0
10 May 2011
#realJSOP
6 alternatives  
See if an integer value is a valid value for the given "flags" enumerator
22 May 2011
Jeremy Hutchinson
Or you can use T4 to generate a static class wrapper around the service. Then your call can look like this:SvcWrapper.Login(username, password);The full explanation and sample code is located here[^].
20 May 2011
Koder Hack
The ContentTicker control is a generic control that can be used to slide content.
25 May 2011
MBigglesworth79
The DynamicDataReader provides a means of retrieving data from a database in a way that involves less code and increases code readability.
27 May 2011
jgauffin
This post is all about LSP.
4 May 2011
NeverJustHere
I hate to be overly critical, but variable names of flag1 and flag2 are poor choices. Use a name that tells the reader what it actually represents (e.g FoundData). Perhaps better naming options would help you see that flag2 will never be anything other than True, and is completely unnecessary....
4 May 2011
Philip Laureano
How to create types that can change at runtime
8 May 2011
zQuangHoangz
I think it has error, for example:A user is:string userId = "OriginalGriff"; string password = "NotMyPassword";And other user is:string userId = "Original"; string password = "GriffNotMyPassword";Problem to store two user.My idea is:private static...
10 May 2011
Christoph Keller
A simple element with big lists
11 May 2011
Luc Pattyn
This is an alternative to "See If a Flags Enum is Valid".
12 May 2011
rudigrobler
When your application gets tombstoned, you get an opportunity to save some state about your application. What should be saved, where to save it, and when?
12 May 2011
DrABELL
Hello Steven,As FYI: recently I have published on CodeProject a short article (tip) on rather efficient implementation of GCD/LCM based on Euclid algorithm. They use iteration instead of recursion, because re-cursive algorithms in general and in this particular case are relatively...
18 May 2011
Colin Eberhardt
In this blog post, I look at how to implement the fly-out fly-in effect seen in native Windows Phone 7 applications. This effect is seen in the native mail application; when you click on a message, the title flies out of the list then flies back in as the title of the message page.
18 May 2011
Colin Eberhardt
How to implement the animated 'peel' effect seen when native Windows Phone 7 applications exit
17 May 2011
Colin Eberhardt
This blog post presents an attached behaviour that gracefully slides the contents of a list into view when used in conjunction with a Pivot control, emulating the Windows Phone 7 email application.
24 May 2011
Aron Weiler
Performance tests between multiple "multi-key" Dictionary implementations
27 May 2011
ambilykk
ASP.NET MVC3 Controller with Entity Framework CodeFirst
1 Jun 2011
MBigglesworth79
How to create a dynamic version of another staple component of the ADO.NET framework, namely the DataSet.
16 Jun 2011
MBigglesworth79
How to use anonymous methods and lambdas to make our code more terse by reducing the amount of code we need to write.
17 Apr 2012
Sergey Alexandrovich Kryukov
No more long switch statements!
11 May 2011
saxenaabhi6
To get a 3D model and a marker moving on Google earth and map respectively, showing the live tracking of GPS
8 Jun 2014
Pavel Torgashov
The theory of contour analysis and its practical application to image recognition and OCR
16 May 2011
Marcelo Ricardo de Oliveira
Math-based, sudoku-like game for Windows Phone 7
12 Jun 2011
nit_singh
2 alternatives  
This is an example to Convert from a datatable to a specific type of collection using Generic
12 May 2011
SimmoTech
A useful class now twice as fast.
22 Dec 2011
Ratish Philip
A circular progress control in WPF
9 May 2011
#realJSOP
Get access to your Silverlight MainPage object
16 Sep 2013
Nick Kopp
An introduction to using Cudafy.NET to perform processing on a GPU
10 May 2011
Sacha Barber
A look into using the Task Parallel Library.
10 May 2011
Jeremy Hutchinson
1 alternative  
Create an add-in that automatically marks items as read when they are deleted in Outlook 2010.
24 May 2011
Colin Eberhardt
How to automatically show ToolTips on a trimmed TextBlock (Silverlight + WPF)
23 May 2011
Halil ibrahim Kalkan
A new and independent Open Source Message Queue system that is entirely built in C# and .NET framework 3.5.
16 Jun 2011
MBigglesworth79
How to leverage the power of Generics in order to make our delegates more ...well ...generic!
3 Nov 2011
Mizan Rahman
How to get dynamic behavior out of the PropertyGrid control.

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.
Kunal Chowdhury «IN»
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:




ambarishtv
Software Developer
India India



Hi I' Ambarish from India. I've three and half year of experience in application
development solutions.
Educational Qualification MCA -  from KristuJyoti College of management and technology (MG
University)

B.Sc (Physics) - from NSS College, Changanacherry (MG University)
Skill Set C#,winforms,asp.net,MVC 3, Java,Design Patterns,VB, Android,JQuery Mobile,SQL,MySqlUML.


ambilykk
Architect TCS
India India
I have over 10 years of experience working on Microsoft Technologies. I am carrying the passion on Microsoft technologies specifically on web technologies such as ASP.Net, HTML5, jQuery and Ajax. My interests also include TFS, Azure, Windows 8, Visual Studio 2010. Technology adoption and learning is my key strength and technology sharing is my passion.

Microsoft MVP: Connected Service Developer
Andrew Rissing
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.
Aron Weiler
Architect Becton Dickinson
United States United States
Check out my technical blog here: The Fyslexic Duck. You can find most of what I've put on CodeProject there, plus some additional technical articles.
Christoph Keller
Software Developer
Switzerland Switzerland
I'm a software developer with ASP.NET experience since 2007

Projects:
=========
See my projects list here: http://dotnetcorner.ch/Home/Projects

=========
More about me: http://dotnetcorner.ch
My Blog: http://dotnetcorner.ch/Home/Blog
Colin Eberhardt
Architect Scott Logic
United Kingdom United Kingdom
I am CTO at ShinobiControls, a team of iOS developers who are carefully crafting iOS charts, grids and controls for making your applications awesome.

I am a Technical Architect for Visiblox which have developed the world's fastest WPF / Silverlight and WP7 charts.

I am also a Technical Evangelist at Scott Logic, a provider of bespoke financial software and consultancy for the retail and investment banking, stockbroking, asset management and hedge fund communities.

Visit my blog - Colin Eberhardt's Adventures in .NET.

Follow me on Twitter - @ColinEberhardt

-
No Biography provided
DrABELL
Founder Infosoft International Inc
United States United States
Dr. Alexander Bell is a seasoned full-stack Software Engineer (Win/Web/Mobile). He holds PhD in EE/IT, authored 37 inventions and published 300+ technical articles. Currently focused on Java/Javascript, .NET/C#, Android/Mobile, SQL, 'Big Data', Machine Learning, AI, IoT. Alex participated in App Innovation Contests (AIC 2102/2013) with multiple winning submissions. Portfolio samples:

  1. Educational Web Portal
  2. NY Payroll Tax Calculator (#1 on Goog)
  3. Android Fraction Calculator "Fractal MK-12"
  4. Android Prime Factorization Calculator 18-digit)
  5. Semaphon™ semantic phone num-to-text converter
  6. Real-time NY Bus Tracking Web App (IoT)
  7. WebTV powered by YouTube .NET API (#1 on Goog)
  8. Engineering Calculator VOLTA
  9. Big Data: Facebook and YouTube
  10. NY City Trivia Quiz
  11. Publications by A. Bell
dzCepheus
Web Developer
United States United States
No Biography provided
Ernest Poletaev
Software Developer (Senior) Enterprise Information Systems, Plc
Thailand Thailand
Senior Software Developer in Enterprise Information Systems, an ERP / CRM / Docflow Software Solution Provider for Russian Local Market.

Professional Developer (C, C++, C#), since 1984. Experienced in many programming technologies.

Now i resides in Kalasin, Thailand, working remotely for my company
Halil ibrahim Kalkan
Founder Volosoft
Turkey Turkey
I have started programming at 14 years old using Pascal as hobby. Then I interested in web development (HTML, JavaScript, ASP...) before university.

I graduated from Sakarya University Computer Engineering. At university, I learned C++, Visual Basic.NET, C#, ASP.NET and Java. I partly implemented ARP, IP and TCP protocols in Java as my final term project.

Now, I am working on Windows and web based software development mostly using Microsoft technologies in my own company.

My open source projects:

* ASP.NET Boilerplate: http://aspnetboilerplate.com
* jTable: http://jtable.org
* Others: https://github.com/hikalkan

My personal web site:

http://www.halilibrahimkalkan.com
IGood
Software Developer 5TH Cell
United States United States
Tools & gameplay programmer at 5TH Cell Media.
DigiPen student class of '09.
Jeremy Hutchinson
Software Developer
United States United States
I’m a Senior Engineer at Quicken Loans and a Microsoft Azure MVP. I’ve has been developing line of business applications for 15 years primarily in the Microsoft Stack, and have a passion for writing clean, scalable code and sharing what I’ve learned with others.

I also help run the Casco Bay .Net User Group
jgauffin
Founder 1TCompany AB
Sweden Sweden
Kanasz Robert
Architect The Staffing Edge & Marwin Cassovia Soft
Slovakia Slovakia
My name is Robert Kanasz and I have been working with ASP.NET, WinForms and C# for several years.
MCSD - Web Applications
MCSE - Data Platform
MCPD - ASP.NET Developer 3.5
- Web Developer 4
MCITP - Database Administrator 2008
- Database Developer 2008
MCSA - SQL Server 2012
MCTS - .NET Framework 3.5, ASP.NET Applications
- SQL Server 2008, Database Development
- SQL Server 2008, Implementation and Maintenance
- .NET Framework 4, Data Access
- .NET Framework 4, Service Communication Applications
- .NET Framework 4, Web Applications
MS - Programming in HTML5 with JavaScript and CSS3 Specialist

Open source projects: DBScripter - Library for scripting SQL Server database objects


Please, do not forget vote
Koder Hack
Software Developer TRG Tech
Pakistan Pakistan
No Biography provided
kribo
Web Developer
Belgium Belgium
Developer within C#, Dynamics NAV (Navision), Php environments.
Luc Pattyn
Software Developer (Senior)
Belgium Belgium
I am an engineer with a background in electronics, software and mathematics.

I develop technical software, both for embedded systems and for desktop equipment. This includes operating systems, communication software, local networks, image processing, machine control, automation, etc.

I have been using all kinds of microcontrollers and microprocessors (Intel 4004/8080/8051/80386/Pentium, Motorola 680x/680x0/ColdFire/PowerPC, Microchip PIC, Altera NIOS, and many more), lots of programming languages (all relevant assemblers, Fortran, Basic, C, Java, C#, and many more), and different operating systems (both proprietary and commercial).

For desktop applications and general development tools I have been using both UNIX systems and Mac/MacOS for many years, but I have switched to x86-based PCs with Windows, Visual Studio and the .NET Framework several years ago.

I specialize in:
- cross-platform development (making software that runs on diverse hardware/OS combinations)
- instruction set simulation
- improving software performance, i.e. making sure the software runs the job at hand in as short a time as possible on the given hardware. This entails algorithm selection, implementation design, accurate measurements, code optimisation, and sometimes implementing virtual machines, applying SIMD technology (such as MMX/SSE), and more.
MBigglesworth79
Web Developer
United Kingdom United Kingdom
No Biography provided
Mizan Rahman
Denmark Denmark
No Biography provided
NeverJustHere
New Zealand New Zealand
No Biography provided
Nick Kopp
Systems Engineer Hybrid DSP Systems
Netherlands Netherlands
Nick is co owner of Hybrid DSP, a company specialized in high speed data acquisition, processing and storage.

CUDAfy.NET took considerable effort to develop and we ask nothing in return from users of the LGPL library other than that you please consider donating to Harmony through Education. This small charity helps handicapped children in developing countries by providing suitable schooling.
nit_singh
Software Developer (Senior)
India India
No Biography provided
Ondrej_Uzovic
Architect
Slovakia Slovakia
My programming path started in 1987 when I got my first computer Sharp MZ-800.
It came with 8 bit CPU Z80, 64Kb RAM and the tape recorder. It was a great machine. I think I still have it somewhere.
I was fascinated and I started to write first programs. Eventually I became developer and software architect. I like innovations and clean nice solutions.
Pavel Torgashov
Software Developer Freelancer
Ukraine Ukraine
I am Pavеl Tоrgаshоv, and I live in Kyiv, Ukraine.
I've been developing software since 1998.
Main activities: processing of large volumes of data, statistics, computer vision and graphics.
Philip Laureano
Software Developer (Senior) Readify
Australia Australia
No Biography provided
Ratish Philip
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
rudigrobler
South Africa South Africa
No Biography provided
Sacha Barber
Software Developer (Senior)
United Kingdom United Kingdom
I currently hold the following qualifications (amongst others, I also studied Music Technology and Electronics, for my sins)

- MSc (Passed with distinctions), in Information Technology for E-Commerce
- BSc Hons (1st class) in Computer Science & Artificial Intelligence

Both of these at Sussex University UK.

Award(s)

I am lucky enough to have won a few awards for Zany Crazy code articles over the years

  • Microsoft C# MVP 2016
  • Codeproject MVP 2016
  • Microsoft C# MVP 2015
  • Codeproject MVP 2015
  • Microsoft C# MVP 2014
  • Codeproject MVP 2014
  • Microsoft C# MVP 2013
  • Codeproject MVP 2013
  • Microsoft C# MVP 2012
  • Codeproject MVP 2012
  • Microsoft C# MVP 2011
  • Codeproject MVP 2011
  • Microsoft C# MVP 2010
  • Codeproject MVP 2010
  • Microsoft C# MVP 2009
  • Codeproject MVP 2009
  • Microsoft C# MVP 2008
  • Codeproject MVP 2008
  • And numerous codeproject awards which you can see over at my blog
saxenaabhi6
Engineer Momentum Technology
Australia Australia
latest article: http://www.codeproject.com/KB/aspnet/AnimatingGoogleEarth_Map.aspx
Sergey Alexandrovich Kryukov
Architect
United States United States
No Biography provided
SimmoTech
Software Developer (Senior) Hunton Information Systems Ltd.
United Kingdom United Kingdom
Simon Hewitt is a freelance IT consultant and is MD of Hunton Information Systems Ltd.

He is currently looking for contract work in London.

He is happily married to Karen (originally from Florida, US), has a lovely daughter Bailey, and they live in Kings Langley, Hertfordshire, UK.
zQuangHoangz
Vietnam Vietnam
No Biography provided
You must sign in to participate in this contest.
This contest has ended.
1 May - 31 May 2011