- 1
Fill in the blanks to use the generic method Func for the x and y variables:
Fill in the blanks to use the generic method Func for the x and y variables: static void Func<T U (T x U y) { Console.WriteLine(x+" "+y); } static void Main(string[] args) { double x = 7.42; string y = "test"; Func(x, ); }
2 Réponses
+ 1
static void Func<T , U >
(T x , U y)
{
Console.WriteLine(x+" "+y);
}
static void Main(string[] args) {
double x = 7.42;
string y = "test";
Func(x , y );
}
- 6
The Q&A Section is a place for Questions about Programming. This Riddle you may post in the Quiz Factory
https://www.sololearn.com/Discuss/1316935/?ref=app