Click here to Skip to main content
15,212,320 members

Best C# article of August 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.

27 Sep 2011
Shmuel Zang
In this article, I explain, step by step, how we can use a WCF behavior for logging operation's invoke and result, errors, warnings and information logs that include the operation's details.
5 Oct 2011
orouit
How to use smartcard certificates in your .NET application
18 Aug 2011
Brij
Single Sign On Between Sub Domains: Forms Authentication
16 Aug 2011
Damian Flynn
Here's a couple of gems...From IList to DataTable.From DataTable to array of T.// DataTable: from IListpublic static DataTable ToDataTable(this IList iList){ DataTable dataTable = new DataTable(); PropertyDescriptorCollection propertyDescriptorCollection = ...
26 Aug 2011
Jecho Jekov
How to use .NET settings files in class library projects.
30 Aug 2011
jsharrison
How to migrate User Settings properties between software versions after you've renamed them
6 Sep 2011
Gary H Guo
Add AOP capabilities to MEF by configuration using Dynamic Decorator.
12 Aug 2011
George Mamaladze
Parallel Programing, PLINQ and Globalization
30 Aug 2011
jarvisa
"we cannot pass a Type as a function parameter" ???Yes we can. Just look at the parameter of Enum.GetValues for example._______Generic functions are unnecessary here. Just use Object.GetType to, um, get the type.private Enum GetNextEnum(object currentlySelectedEnum){ Type...
9 Aug 2011
Kunal Chowdhury «IN»
If you are developing a secured site and want to close the browser window just after the user logs out from the application, this small tip will help you.
22 Aug 2011
VallarasuS
Changing the BackGround of an UI Element based on MousePosition
31 Aug 2011
Peter_Smithson
Using the DataZGrid provided by .NET 4, this article shows how to copy and paste between cells.
13 Aug 2011
Vano Maisuradze
Very nice!I've modified ToCollection(this DataTable dt) extension function, so if DataTable column names and class property names are different, then you can use this alternative:public static List ToCollection(this DataTable table, Dictionary dic){ List lst = new...
23 Jun 2012
Leland Richardson
How to dynamically create item templates on the server-side in ASP.NET.
3 Aug 2011
Eric Lynch
Flexible CSV reader/writer with progress reporting and many file format variations.
13 Aug 2011
Kenneth Kasajian
The powerful DoFixture() in FitLibrary simulates English like specification. The PhraseFixture proposal takes this to the next level.
18 Aug 2011
thatraja
Given below is code for opening the Internet browser programmatically in VB 6 and VB.NET.VB 6Private Declare Function ShellExecute Lib "shell32.dll" Alias _ "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _ ByVal lpFile As String, ByVal lpParameters As...
12 Aug 2011
George Mamaladze
Why .NET LinkedList does not support Concat and Split operations?
1 Sep 2011
spartacus23
Dynamic Unit Testing
15 Aug 2011
Caner Korkmaz
4 alternatives  
How to open the Internet browser from code.
17 Aug 2011
bmckuhen
How to get a quick list of all DBs using SMO
12 Aug 2011
Kunal Chowdhury «IN»
Read this post to know how to detect the browser information using the HtmlPage.BrowserInformation property.
1 Aug 2011
Daniel Gidman
Serializable Extra Types for .NET 4[^]Does what you are looking for using attributes.
10 Aug 2011
Arik Poznanski
WPF: Dictionary Value Converter
30 Aug 2011
Norman Paterson
Oracle scrambles the first eight characters of the UserID
28 Aug 2011
Gilly Barr
Unit testing code for Fluent NHibernate
15 Aug 2011
Kevin Marois
You're incorrect. Explorer is Windows Explorer, not Internet Explorer. Try this:System.Diagnostics.Process.Start("explorer");then this:System.Diagnostics.Process.Start("iexplore.exe", "http://www.codeproject.com");and this:System.Diagnostics.Process.Start("winword.exe",...
10 Aug 2011
Nadege Rouelle
30 Aug 2011
BrianBissell
This provides a much better overview of the problem/solution:http://www.codeproject.com/KB/webservices/OverloadingInWebService.aspxIntroductionThe function overloading in Web Service is not as straightforward as in class. While trying to overload member function, we make two or more...
8 Aug 2011
Azhar Mehmood
Load Treeview From Database Table
19 Aug 2011
User 468701
Force validation, even if the user doesn't enter anything, so that fields that are required show an appropriate message.
30 Aug 2011
ILa @ work
This nice trick extends into://*/block 1/*/block 2; // commented out/*/block 3;/*/block 4; // commented out//*/and removing the first slash gives inverted alternation:/*/block 1; // commented out/*/block 2;/*/block 3; // commented out/*/block...
29 Aug 2011
Not Active
A demonstration of how the ASP.NET Repeater control can be used for in-place editing and adding items
18 Aug 2011
Herre Kuijpers
A utility that allows you to enter simple and more complex mathematical formulas which will be evaluated and calculated on the spot
26 Aug 2011
Daniel Vaughan
The custom ProgressIndicatorProxy provides a simple way to harness the new ProgressIndicator from your XAML.
1 Sep 2011
Espen Harlinn
"Dependency Walker" light for .NET using a separate AppDomain and the reflection-only context
15 Aug 2011
Vano Maisuradze
2 alternatives  
The alternative solution, how to work with images faster.
2 Aug 2011
Crooked path
Please let me suggest that "FinalReleaseComObject" is not the way to go. If you write structured code, you should never need it. Strictly following Microsoft Patterns & Practices:1) Declare & instantiate COM objects at the last moment possible.2) ReleaseComObject(obj) for ALL...
30 Aug 2011
#realJSOP
Keep more detailed track of your Codeproject reputation points.
9 Aug 2011
Manas_Patnaik
Conditional controls at Runtime in Silverlight DataGrid
16 Mar 2012
Paulo Zemek
This article will explain some concepts of game development and how to apply and adapt them for multiplayer development.
1 Sep 2013
Bernardo Castilho
A calculation engine that is small, fast, and extensible.
11 Aug 2011
Bishop, Geoff
How to warn the user before the session expires, and redirect to a new page if it does.
30 Aug 2011
CaldasGSM
Non-affine transformations, four-point distortions, or whatever you want to call it.
23 Aug 2011
Armando de la Torre
How to load an image from the filesystem and save it into a Database
29 Aug 2011
Simon Bang Terkildsen
Explains how to debug WPF data bindings using trace messages or an IValueConverter.
22 Aug 2011
TeapotDev
In this article, I explain how to create an application like Googlebot - it finds and indexes websites throught hyperlinks.

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:




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).
Armando de la Torre
Software Developer (Senior) Self-employed
Mexico Mexico
Senior SAP Consultant ( ABAP / MM / Workflow ).
Delphi Developer
C# Asp Developer
Azhar Mehmood
Software Developer
Pakistan Pakistan
Azhar Mehmood
Education: Computer Science
Bernardo Castilho
Chief Technology Officer GrapeCity
United States United States
Bernardo de Castilho leads GrapeCity's technical direction as the company's Chief Technology Officer. Before gaining more than 20 years of experience in the software industry, he earned a doctorate in Civil Engineering at UC Berkeley.

Bernardo is one of the designers and developers working on GrapeCity's Wijmo, a complete set of UI components for the Web.
Bishop, Geoff
Software Developer (Senior) FKQ Advertising & Marketing
United States United States
Geoff Bishop works for FKQ Advertising + Marketing in sunny Clearwater Florida. FKQ is the largest independent agency in the Tampa Bay area and provides a spectrum of expertise to global, national and regional brands. FKQ is celebrating its 50th anniversary this year! (2011)

Recently much of Geoff's free time has been consumed by a very addictive technology known as StarCraft II.
bmckuhen
United States United States
No Biography provided
BrianBissell
United States United States
No Biography provided
Brij
Software Developer (Senior)
India India
Brij is a 3-times Microsoft MVP in ASP.NET/IIS Category and a passionate .NET developer. More than 6 years of experience in IT field, currently serving a MNC as a Tech Lead/Architect.

He is a very passionate .NET developer and have expertise over Web technologies like ASP.NET 2.0/3.5/4.0, jQuery, JSON, Javascript, IIS and related technologies. He is also a Exchange Server (EWS) Specialist. He has great experience in design patterns and N-Tier Architecture.

He is also certified as Microsoft Certified Technologies Specialist-ASP.NET and Microsoft Certified Technologies Specialist-WCF in .NET 4.0. He has also received several awards at various forums and his various articles got listed as "Article of the day" at ASP.NET Microsoft Official Website www.asp.net.

He has done MCA from NIT Durgapur and completed his graduation from Lucknow University.

Learning new technologies and sharing knowledge excites him most. Blogging, solving problems at various forums, helping people, keeps him busy entire day.


Visit his Blog: Code Wala

Area of Expertise :
C#, ASP.NET 2.0,3.5,4.0, AJAX, JQuery, JSON, XML, XSLT, ADO.Net, WCF, Active Directory, Exchange Server 2007 (EWS), Java script, Web Services ,Win services, DotnetNuke, WSS 3.0,Sharepoint Designer, SQL Server 2000/2005/2008
CaldasGSM
Software Developer
Portugal Portugal
From the age of 15 I started programing in QBasic at home after several jobs I realized that what I wanted was to work with computers, so I joined a IT company, originally as a web designer, but thanks to my self learning abilities I made my way into the programmers team. Today I know VB, VBScript, Javascript, HTML, SQL , C# and C++... even if I never went to college.. Smile | :)
Caner Korkmaz
Student
Turkey Turkey
No Biography provided
Crooked path
Architect Anodyne Enterprise Security
United States United States
I've spent the last 30+ years building secure, durable code in government, healthcare, and critical infrastructure industries, from FORTRAN 4 to C#, on databases from pre-SQL ISAM ones to Oracle 12, and on platforms from VMS to Linux (not to exclude all common permutations by Microsoft). In my spare time, I teach classes on whole-system design principles from configuring SANS, programming switches, to advanced principles in C# for creating secure, durable code. I am CISSP and CCSP certified, regularly working with legal teams to validate Cloud security and regulatory compliance.
Damian Flynn
United States United States
No Biography provided
Daniel Gidman
Architect Stackify
United States United States
No Biography provided
Daniel Vaughan
President Outcoder
Switzerland Switzerland
Daniel Vaughan is a nine-time Microsoft MVP and co-founder of Outcoder, a Swiss software and consulting company dedicated to creating best-of-breed user experiences and leading-edge back-end solutions, using the Microsoft stack of technologies--in particular Xamarin, WPF, and the UWP.

Daniel is the author of Windows Phone 8 Unleashed and Windows Phone 7.5 Unleashed, both published by SAMS.

Daniel is the developer behind several acclaimed mobile apps including Surfy Browser for Android and Windows Phone. Daniel is the creator of a number of popular open-source projects, most notably Codon.

Would you like Daniel to bring value to your organisation? Please contact

Blog | MVP profile | Twitter


Xamarin Experts
Windows 10 Experts
Eric Lynch
Software Developer (Senior)
United States United States
Eric is a Senior Software Engineer with 30+ years of experience working with enterprise systems, both in the US and internationally. Over the years, he’s worked for a number of Fortune 500 companies (current and past), including Thomson Reuters, Verizon, MCI WorldCom, Unidata Incorporated, Digital Equipment Corporation, and IBM. While working for Northeastern University, he received co-author credit for six papers published in the Journal of Chemical Physics. Currently, he’s enjoying a little time off to work on some of his own software projects, explore new technologies, travel, and write the occasional article for CodeProject or ContentLab.
Espen Harlinn
Architect Powel AS
Norway Norway
Chief Architect - Powel AS.

Specializing in integrated operations and high performance computing solutions.

I’ve been fooling around with computers since the early eighties, I’ve even done work on CP/M and MP/M.

Wrote my first “real” program on a BBC micro model B based on a series in a magazine at that time. It was fun and I got hooked on this thing called programming ...

A few Highlights:

  • High performance application server development
  • Model Driven Architecture and Code generators
  • Real-Time Distributed Solutions
  • C, C++, C#, Java, TSQL, PL/SQL, Delphi, ActionScript, Perl, Rexx
  • Microsoft SQL Server, Oracle RDBMS, IBM DB2, PostGreSQL
  • AMQP, Apache qpid, RabbitMQ, Microsoft Message Queuing, IBM WebSphereMQ, Oracle TuxidoMQ
  • Oracle WebLogic, IBM WebSphere
  • Corba, COM, DCE, WCF
  • AspenTech InfoPlus.21(IP21), OsiSoft PI


More information about what I do for a living can be found at: harlinn.com or LinkedIn

You can contact me at espen@harlinn.no
Gary H Guo
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.
George Mamaladze
Software Developer
Germany Germany
Tweeter: @gmamaladze
Google+: gmamaladze
Blog: gmamaladze.wordpress.com
Gilly Barr
Web Developer
Israel Israel
Started programming e-commerce sites with PHP & MySQL at the age of 14. Worked for me well for about 5 years.

Transfered to C# & asp.net, while serving in the IDF.
Worked on the 'Core Performance' Team at ShopYourWay.com (Sears Israel)
Currently working at Logz.io

Check out my blog!
or my twitter
Herre Kuijpers
Architect Rubicon
Netherlands Netherlands
Currently Herre Kuijpers is employed at Rubicon. During his career he developed skills with all kinds of technologies, methodologies and programming languages such as c#, ASP.Net, .Net Core, VC++, Javascript, SQL, Agile, Scrum, DevOps, ALM. Currently he fulfills the role of software architect in various projects.

Herre Kuijpers is a very experienced software architect with deep knowledge of software design and development on the Microsoft .Net platform. He has a broad knowledge of Microsoft products and knows how these, in combination with custom software, can be optimally implemented in the often complex environment of the customer.
ILa @ work
Engineer
Netherlands Netherlands
No Biography provided
jarvisa
Software Developer (Senior) Shaw Inspection Systems Ltd
United Kingdom United Kingdom
No Biography provided
Jecho Jekov
Software Developer (Senior)
Bulgaria Bulgaria
No Biography provided
John Wigger
United States United States
No Biography provided
jsharrison
Software Developer (Senior)
New Zealand New Zealand
I’ve been writing software in a variety of languages and platforms since 1990.
Kenneth Kasajian
United States United States
My interests mostly revolve around making machines do work for people. I'm a computer programmer, software architect, development manager, program manager and a computer programmer. I said programmer twice because I believe you need to be able to do the work yourself if you're going to direct others. I started my career creating software for abstract art, followed by work in embedded systems and HMI. In the 90s I created a successful product called Visual DLL and helped develop the Sales Force Automation product, Arsenal. I've often been involved in online communities, creating games, utilities, and collaboration software. I'm passionate about agile requirements management, acceptance testing through executable specification, and anything that will make developers more productive. My current role is Principal Scientist where I get to work on different technologies with an awesome team, to solve real-world practical problems. I'm Armenian, so talking is in my nature -- if you see me online or offline, say hi and we'll geek out about the latest tools and libraries. If you learned something cool recently (and you should if you're a lifelong learner), then I'd like to hear about it.
Kevin Marois
CEO Marois Consulting
United States United States
No Biography provided
Leland Richardson
Founder
United States United States
My name is Leland Richardson. I love learning. At the time of writing this I am 23 years old and live in Houston, TX. I was born in West Palm Beach, Florida, grew up in St. Louis, Missouri, and went to school in Houston, Texas at Rice University.

At Rice I received two degrees: one in Physics and one in Mathematics. I love both. I never received any formal education on Computer Science, however, you will find that most of this blog will be about programming and web development. Nevertheless, I think being a good programmer is about being good at learning, and thinking logically about how to solve problems - of which I think my educational background has more than covered.

Since high-school, I had found that the easiest way to make money was by programming. Programming started off as a hobby and small interest, and slowly grew into a passion.

I have recently started working on a new startup here in Houston, TX. I wont bore you with the details of that just yet, but I am very excited about it and I think we can do big things. We plan to launch our project this year at SXSW 2013. What I will say for now, is that we would like to create a company of talented software developers who are similarly ambitious and want to create cool stuff (and have fun doing it).
Manas_Patnaik
Microsoft
India India
Nothing special .. I like challenges and love my critics.

Microsoft | Bangalore | India

Blog : http://manaspatnaik.com/blog

Twitter@manas_patnaik
Member 3531622
Netherlands Netherlands
No Biography provided
Nadege Rouelle
Architect
France France
I'm coding in .Net since 9 years, most with ASP.Net and SharePoint and a little using WPF, MVC, Windows Phone 8 and WinRT technology.
I have learned so much reading others experience and tutorials, or tips so I try to do the same, keeping learning from others of course.
You can also find my blog here : http://sharemstips.wordpress.com/
Norman Paterson
United States United States
No Biography provided
Not Active
United States United States
No Biography provided
orouit
Architect Connect In Private
Singapore Singapore
Software Architect, COM, .NET and Smartcard based security specialist.

I've been working in the software industry since I graduated in Electrical and Electronics Engineering. I chose software because I preferred digital to analog.

I started to program with 6802 machine code and evolved to the current .NET technologies... that was a long way.

For more than 20 years I have always worked in technical positions as I simply like to get my hands dirty and crack my brain when things don't go right!

After 12 years in the smart card industry I can claim a strong knowledge in security solutions based on those really small computers!
I've been back into business to design the licensing system for the enterprise solution for Consistel using a .NET smart card (yes they can run .NET CLR!)

I'm currently designing a micro-payment solution using the NXP DESFire EV1 with the ACSO6 SAM of ACS. I can then add a full proficient expertise on those systems and NFC payments.
This technology being under strict NDA by NXP I cannot publish any related article about it, however I can provide professional consulting for it.

You can contact me for professional matter by using the forum or via my LinkedIn profile.
Paulo Zemek
Software Developer (Senior) Niantic
United States United States
I started to program computers when I was 11 years old, as a hobbyist, programming in AMOS Basic and Blitz Basic for Amiga.
At 12 I had my first try with assembler, but it was too difficult at the time. Then, in the same year, I learned C and, after learning C, I was finally able to learn assembler (for Motorola 680x0).
Not sure, but probably between 12 and 13, I started to learn C++. I always programmed "in an object oriented way", but using function pointers instead of virtual methods.

At 15 I started to learn Pascal at school and to use Delphi. At 16 I started my first internship (using Delphi). At 18 I started to work professionally using C++ and since then I've developed my programming skills as a professional developer in C++ and C#, generally creating libraries that help other developers do their work easier, faster and with less errors.

Want more info or simply want to contact me?
Take a look at: http://paulozemek.azurewebsites.net/
Or e-mail me at: paulozemek@outlook.com

Codeproject MVP 2012, 2015 & 2016
Microsoft MVP 2013-2014 (in October 2014 I started working at Microsoft, so I can't be a Microsoft MVP anymore).
Peter_Smithson
United Kingdom United Kingdom
No Biography provided
Reto Ravasio
Switzerland Switzerland
No Biography provided
Shmuel Zang
Software Developer
Israel Israel
No Biography provided
Simon Bang Terkildsen
Software Developer Nexcom
Denmark Denmark
No Biography provided
spartacus23
Software Developer (Senior)
Italy Italy
My name is Idalgo Cantelli. I'm a software developer skilled in .Net technologies. I work with .Net since February, 2002. I also have a strong experience as a technical trainer, having taught in more than thirty classroom courses. I'm MCTS and MCPD-EAD on .Net 2.0, planning an upgrade to 3.5.
thatraja
Web Developer
India India
No Biography provided
User 468701
Australia Australia
No Biography provided
VallarasuS
Technical Lead
India India
I code, learn, listen, and some day in a near future be a proud farmer.
Vano Maisuradze
Architect
Georgia Georgia
No Biography provided
You must sign in to participate in this contest.
This contest has ended.
1 Aug - 31 Aug 2011