Why does Print Method couldn't be invoked ?
I set class as static and I've tried to instance an object of this method, but it didn't work. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; 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(text); Printer.Print(intNum); Printer.Print(doubNum); } } static class Printer { static void Print<T>(T text) { Console.WriteLine("Showing ",text); } //your code goes here } }