I am interpolating strings and at the end of the line of code when I put the ;
it gives me a message ( Empty statement is redundant ), but it still compiles the code, I show image.
The code is as follows:
static void FillTheseValues(out int a, out string b, out bool c)
{
a = 9;
b = "Enjoy your string.";
c = true;
}
Console.WriteLine("***** Fun with Methods *****");
int i;
string str;
bool b;
FillTheseValues(out i, out str, out b);
Console.WriteLine($"Int is: {i}");
Console.WriteLine($"String is: {str}");
By the way, I'm using Visual Studio 2015 , I have ReSharper installed.