Welcome to MSDN Blogs Sign in | Join | Help

October 2006 - Posts

'const' vs 'static readonly'

I'm a big fan of reusing code whenever and wherever possible. A long time ago, I wrote an assembly that provided common methods and data to some applications I was writing. When I first wrote the assembly, I exposedthe common data as public fields decorated
Posted by DavidKlineMS | 3 Comments
Filed under:

Is it a field or a property?

I very much value code reviews , as long time readers can attest. During these reviews, I have often found myself wondering whether a given line references a field or a property. When reading isolated portions of code, properties can be easily mistaken
Posted by DavidKlineMS | 5 Comments
Filed under:

What is a Side Effect?

We've all heard the commercials or read the prescription information sheets describing the possible side effects of medications. The side effects described are typically negative (ex: upset stomach). There are other side effects of a more positive nature;
Posted by DavidKlineMS | 1 Comments
Filed under:

Separating Application Logic and Data Presentation layers

I'm a big advocate of separating an application's logic from it's user interface. By keeping the logic separate from the data presentation layer (UI), it becomes easy to swap out either component with minimal impact on the other. In addition to ease of
Posted by DavidKlineMS | 2 Comments
Filed under: ,

Quick Tip: Serializing an Object Field as an XML Attribute

The addition of the XML Serializer is one of the reasons I really love version 2 of the .NET Compact Framework. I use the XML Serializer in very nearly every application I write; to save application state, data files, etc. By default, the XML Serializer
 
Page view tracker