Answers for "c# method out"

C#
0

c# method out

int initializeInMethod;
OutArgExample(out initializeInMethod);
Console.WriteLine(initializeInMethod);
// Output: 44

void OutArgExample(out int number)
{
    number = 44;
}
Posted by: Guest on May-27-2021

C# Answers by Framework

Browse Popular Code Answers by Language