Answers for "out parameter c#"

C#
0

c# out argument

// Defining Variable inline
myMethod(out Task output);
output.Start();


// Set existing variable
Task output;
myMethod(out output);
output.Start();
Posted by: Guest on January-11-2021
0

passing _ as out variable c#

What is _ in C#?
The underscore character ( _ ) is used to indicate that the parameter 
should be ignored. It's like it is the write-only parameter. 
It's also allowed to discard a variable type. 
Discards could be used to ignore more parameters at once.
Posted by: Guest on January-07-2021

C# Answers by Framework

Browse Popular Code Answers by Language