Printing a parameter name C# with Example



Printing a parameter name C# with Example

Snippet 
public void DoSomething(int paramValue) 
{ 
Console.WriteLine(nameof(paramValue)); 
} 
... 
int myValue = 10; 
DoSomething(myValue); 
Console Output 
paramValue 

0 Comment's

Comment Form

Submit Comment