K
Multiple choices 40/50
Answer (Choose 1 answer)
How to define a delegate which points to the following methods?
A public delegate void ToString(int value);
B. public delegate string ToString(int value).
C. public string ToString(int value).
D. public delegate ToString(int value):
public static string ToNumberString(int num)
return String.Format("{0,-12:NO)", num);
}
public static string ToMoneyString(int money)
{
}
return String.Format("$ (0:C)", money);
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
29 30 31 32 33 34 35 36 37 38 39 40 41 42
43 44 45 46 47 48 49 50