Given the following method definition, what would be a valid call? The variable
someIntValue is defined as an int.
public static int GetData(out int aValue, ref int bValue)
a. someIntValue = GetData(aValue, bValue);
b. someIntValue = GetData(out aValue, ref bValue);
c. someIntValue = GetData(out, ref);
d. someIntValue = GetData(int out aValue, int ref bValue);
e. GetData(out aValue, ref bValue);
The correct answer is b. someIntValue = GetData(out aValue, ref bValue);
Explanation:
Consider the method definiton:
public static int GetData(out int aValue, ref int bValue)
So, the correct answer is b. someIntValue = GetData(out aValue, ref bValue);