public static void ExchangeContents (ref T value1, ref T value2)
{
T temp;
temp = value1;
value1 = value2;
value2 = temp;
}
?
?Which of the following is TRUE regarding the above segment of code?
A. ?The segment of code is defining a generic method.
B. ?T is a placeholder for the data type.
C. ?Data in the memory locations value1 and value2 are swapped.
D. ?All of the above
Answer: D
Computer Science & Information Technology
You might also like to view...
What happens during the management and support phase of creating and maintaining a security architecture?
What will be an ideal response?
Computer Science & Information Technology
ICMP (Internet Control Message Protocol) is a _______ layer core protocol that reports on the success or failure of data delivery.?
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology