Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

trhow exception if is null c#

var firstName = name ?? throw new ArgumentException("Mandatory parameter", nameof(name),);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #trhow #exception #null
ADD COMMENT
Topic
Name
6+2 =