Problem solving C# 74.2
Hi, I'm not sure if what I do is right or wrong. Anyway, it doesn't seem to be accepted. Can you hint me what I understood wrong ? Here is the task : "You are writing a program that can output the value of a variable of any type. It takes a string, an integer, and a double value as input and then it should output them. Create a generic method Print for a Printer class to execute the given calls correctly. " And here is my code : namespace SoloLearn { class Program { static void Main(string[] args) { string text = Console.ReadLine(); int intNum = Convert.ToInt32(Console.ReadLine()); double doubNum = Convert.ToDouble(Console.ReadLine()); Printer.Print<string>(ref text); Printer.Print<int>(ref intNum); Printer.Print<double>(ref doubNum); } } class Printer { //your code goes here public static void Print<T>(ref T message) { Console.WriteLine(message); } } }