Brad Smith’s Coding Blog

Windows apps, business systems and games in C# and C++

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Projects
    • ABA/Cemtext Validator
    • Drop-Down Controls
    • Image Collage Generator
    • mcNetworkCopy
    • TOM Classes for .NET
  • Copyright
  • Expressions of Interest
  • Donations
  • GitHub

Category Archives: Coding practices

Misuse of the ‘var’ keyword in C#

Posted on April 15, 2011 by Bradley Smith | 64 Replies

I’ve noticed a worrying trend of late, when looking at code written by developers who are new to C#, or have never worked with the language prior to C# 3.0. I am referring to the misuse and overuse of the var keyword. The purpose of var, for those who don’t know, is to omit the… Continue reading →

Share/Bookmark
Posted in Coding practices.
E-Mail YouTube Channel LinkedIn Profile Google+ Profile Facebook Profile

Donations

If you find my code/articles useful, please consider making a donation:

PayPal: bs@brad-smith.info

Recent Posts

  • A Novel Solution for Previewing PDFs in Desktop Applications
  • An Alternative to Large Byte Arrays and MemoryStream
  • Building a Better Tag Cloud
  • A Searchable Drop-Down Control
  • Single Instance Application with a Custom URI Scheme
  • DataGridView Column Types for Drop-Down Controls
  • Managed Wrapper for TOM 2 / RichEdit 8
  • Sorting Strings Using Natural Language Rules

Tag Cloud

abstract classes accounting AppDomain C# C/C++ collections COM console custom controls data binding encryption enumerators Excel extension methods file formats generics graphics GUI design inheritance interfaces Interop linked lists LINQ MCML media center memory networking Office parsing physics refactoring reflection regular expressions remoting RichEdit RTF serialisation sorting SQL streams WCF Win32 Windows Forms Windows Registry XML

Categories

  • Announcements (15)
  • Coding practices (1)
  • Computer Science (3)
  • Databases (2)
  • Downloadable source code (20)
  • GUI components (10)
  • MS Office Interop (2)
  • Republished articles (2)
  • SharePoint (1)
  • Standards (1)
  • Utility code (26)
  • Web development (1)
  • Windows Media Center (9)

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2025 Brad Smith’s Coding Blog, all rights reserved.
Proudly powered by WordPress