3
Answers

how to return string and no string together?

Hi

How can i return this? Thanks

 static string MyMethod(int x)
    { return "{0} x {1} = {2}=", x, 2, x * 2; }

    static void Main(string[] args)
    {    Console.WriteLine(MyMethod(7));   }

Answers (3)