Daniel Fisher (lennybacon.com)

SOA, DATA & THE WEB

Update all ArgumentNullExceptions to nameof syntax

Pretty simple with the search and replace of Visual Studio using Regular Expressions:

image

Find what:

throw new ArgumentNullException\(\"([a-z|A-Z]*)\"\);

Replace with:

throw new ArgumentNullException(nameof($1));

Comments

Write a comment