MSMVPS.COM
The Ultimate Destination for Blogs by Current and Former Microsoft Most Valuable Professionals.

Browse Site by Tags

Showing related tags and posts accross the entire site.
  • Fundamentals of OOD Part 3: Method Cohesion

    Single Responsibility Principle (SRP) helps us write more cohesive types and methods. Cohesion is the relatedness of the members of a type to each other and the relatedness parts of a method's code to other parts. Method cohesion Often times a method is not very cohesive, meaning the code that it...
    Posted to Peter Ritchie's MVP Blog (Weblog) by PeterRitchie on 06-10-2008
    Filed under: C#, Software Development, Design/Coding Guidance, DevCenterPost, OOD
  • Fundamentals of OOD, Part 2 - Encapsulation Scope

    Let's look at the ubiquitous Person concept. It might seem logical that an application that deals with people should have a Person interface for classes to implement. For example: public interface IPerson { String GivenName { get; set; } String SurName { get; set; } IAddress Address { get; set; ...
    Posted to Peter Ritchie's MVP Blog (Weblog) by PeterRitchie on 05-08-2008
    Filed under: C#, Software Development, Design/Coding Guidance, DevCenterPost
  • Fundamentals of Object-Oriented Design (OOD) Part 1

    With increased usage of patterns and situationally specific strategies, people sometimes lose sight of the concepts and principles behind these patterns and strategies and fail to follow them when they're not using patterns or strategies. I feel it's good to periodically review the fundamental...
    Posted to Peter Ritchie's MVP Blog (Weblog) by PeterRitchie on 05-01-2008
    Filed under: C#, Software Development, Design/Coding Guidance, DevCenterPost
  • Overcoming problems with MethodInfo.Invoke of methods with by-reference value type arguments

    I ran into an interesting problem on the Forums recently. Basically, when you use MethodInfo.Invoke to invoke a method with by-reference value type arguments you can't have the invoked method update a variable/argument. The problem is, when you invoke the method the parameter is passed to the MethodInfo...
    Posted to Peter Ritchie's MVP Blog (Weblog) by PeterRitchie on 04-29-2008
    Filed under: C#, .NET Development, Software Development, DevCenterPost
  • "Object is currently in use elsewhere" error.

    I was debugging what I thought was a strange exception the other day. The exception was an InvalidOperationException and the message was "Object is currently in use elsewhere". Unless you're familiar with this exception, it really doesn't offer much as to why the exception is occurring...
    Posted to Peter Ritchie's MVP Blog (Weblog) by PeterRitchie on 01-28-2008
    Filed under: C#, .NET Development, WinForms, DevCenterPost
  • Formatting/parsing for a specific culture redux

    In recent blog post I detailed how creating a culture via the CultureInfo constructor could actually create a user-overridden culture--which could be completely different than the culture that you've requested by name. Fortunately there's a way of overriding the user override (apologies for overloading...
    Posted to Peter Ritchie's MVP Blog (Weblog) by PeterRitchie on 01-22-2008
    Filed under: C#, .NET Development, .NET 2.0, Framework Bugs, DevCenterPost
  • Formatting/parsing for a specific culture

    Sometimes you may want to use a specific format for formatting and parsing of textual data. The easiest way to do this is to select a specific culture and use that with formatting and parsing methods. Unfortunately, the CultureInfo constructor that just takes the name of the culture defaults to accepting...
    Posted to Peter Ritchie's MVP Blog (Weblog) by PeterRitchie on 12-27-2007
    Filed under: C#, .NET Development, DevCenterPost
Page 1 of 1 (7 items)


Copyright © is the original authors. Blog site is an independent site not sponsored by Microsoft. The Yoda blog server and the Brianna SQL server would like to thank www.ownwebnow.com and www.exchangedefender.com. They wouldn't be here and broadcasting without the generosity of Vlad Mazek and his companies.

Powered by Community Server (Commercial Edition), by Telligent Systems