Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# optional parameters

// Using Attribute
private void SomeMethod([Optional] string param)
{

}

// Using Default Values
private void SomeMethod(string param = null)
{

}
 
PREVIOUS NEXT
Tagged: #optional #parameters
ADD COMMENT
Topic
Name
5+1 =