Too Long; Didn't Read
C# Parameter Null Validation, Explained by Haiyang Wang Newbie Programmer. It is a common practice to check for null in parameters, but why? What would happen if we don't check the parameters? What's the benefit of parameters null validation? In most cases, it's necessary and useful in most cases. Validate null parameters can avoid execution which shouldn't happen, and it can specify the responsibility of the unexpected exception. It's a good choice to enable the CA1062 Warning, we needn't care about when to validate the parameters.
Share Your Thoughts