IF statement formatting best-practise, what's your style?
问题 Looking to improve my IF statement, and I want to keep my code looking pretty This is what I am currently doing, is it readable , any room for improvement ? SomeObject o = LoadSomeObject(); if( null == o || null == o.ID || null == o.Title || 0 == o.ID.Length || 0 == o.Title.Length ) I don't have anyone to ask around. That's why I came here in first place. Please don't close my question :( 回答1: Your verbosity is leading to a less readable code, I think the following format is best: if ( null =