NullReferenceException or ArgumentNullException

NullReferenceException or ArgumentNullException – “The API Design Guidelines encourage developers to check all their arguments and thereby avoid throwing a NullReferenceException. If an argument is null and the contract of the method forbids null arguments an ArgumentNullException should be thrown. ” [by Brad Adams]

Show Comments