This cvnt doesn't want to compile my shit, here's the 4 lines code example;
Changed the building compiler to C# 7.1 - nothing, installed Microsoft.CodeDom.Providers.DotNetCompilerPlatform - nothing, ideas?
This cvnt doesn't want to compile my shit, here's the 4 lines code example;
Changed the building compiler to C# 7.1 - nothing, installed Microsoft.CodeDom.Providers.DotNetCompilerPlatform - nothing, ideas?
>>> Credits to Sikk408 @ DevaintArt <<<
Canpai (07-24-2017)
I had issues with this too, don't know how to fix this
but in that particular example you could just do
Console.WriteLine(wormsLength:F2) couldn't you
I experienced those issues when doing e.g. $"hi {day == 1 ? variable : variable (heres when it would mess up)} hi"
to solve that you could just do "hi " + day == 1 ? variable : variable + " hi", although it probably isn't preferable...
Last edited by Skilly; 07-24-2017 at 05:54 PM.
Canpai (07-24-2017)
last time i checked, the $ operator can only be applied to strings..?
try to surround your variable in " 's, like this
Code:Console.WriteLine($"{wormsLength:F2}");
Last edited by Bunny; 07-24-2017 at 06:00 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)