c# out argument
// Defining Variable inline
myMethod(out Task output);
output.Start();
// Set existing variable
Task output;
myMethod(out output);
output.Start();
c# out argument
// Defining Variable inline
myMethod(out Task output);
output.Start();
// Set existing variable
Task output;
myMethod(out output);
output.Start();
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.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us