Hi,
I've got the following method:
Is there any way I can use it like this?
Obviously the above gives an error as it thinks I'm trying to pass File to the method as well.
I'm new to C# so forgive me if this is stupidly easy
Thanks.
I've got the following method:
Code:
public void OutputSuccess(string Message)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine(Message);
Console.ResetColor()
}
Is there any way I can use it like this?
Code:
OutputSuccess("Successfully downloaded {0}", File)
Obviously the above gives an error as it thinks I'm trying to pass File to the method as well.
I'm new to C# so forgive me if this is stupidly easy
Thanks.