Resharper will offer suggestions if you could access a member of the object, which may be empty.
In 4.0, “code contracts” support this at compile time - for example, it will stop you by passing a possible null to a method that claims to not want this.
source
share