KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
ReSharper has a "Check parameter for null" context action, that will automatically insert code to check an argument for null and throw ArgumentNullException if it is null. If the parameter is a string, I would like another option: "Check string for Null or empty". This should generate code something similar to this: if (String.IsNullOrEmpty(result)) throw new ArgumentException("Parameter cannot be null or empty", "result"); Is there any way to add this to ReSharper easily ?
Tags (comma-separated)
Save Edits
Cancel