Tech Off Post

Single Post Permalink

View Thread: is 'new object().property' or 'new object().method()' a good idea?
  • User profile image
    stevo_

    Well, you do that..

    The concept behind most things in .NET is; the operation either worked, or it didn't (and caused an exception)..

    All these pointless null checks are just chipping away at your performance slowly.. your code will be utterly confusing for anyone else who has to take it over..

    I'd put the action to work, and work on getting over mentally, because carrying on doing that is bad practice for a .NET app..

    Wink