VS Code编译时增加空间

时间:2018-09-24 14:17:39

标签: c# visual-studio-code

C#调车场控制台计算器的书写代码和vs代码不断在我的字典参考之间增加空间;

在编译之前;

if (operators.ContainsKey (Convert.ToString (ch)))
                return TokType.Operator;

编译后;

if (operator s.ContainsKey (Convert.ToString (ch)))
                return TokType.Operator;

上面的词典参考;

public IDictionary<string, Operator> operators = new Dictionary<string, Operator> {
        ["+"] = new Operator { Name = "+", Priority = 1 },
        ["-"] = new Operator { Name = "-", Priority = 1 },
        ["*"] = new Operator { Name = "*", Priority = 2 },
        ["/"] = new Operator { Name = "/", Priority = 2 },
        ["^"] = new Operator { Name = "/", Priority = 3, RHS = true }
    };

.csproj文件

<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><OutputType>Exe</OutputType<TargetFramework>netcoreapp2.1</TargetFramework></PropertyGroup></Project>

请帮助...我正在建立一个无处可去的论坛。

0 个答案:

没有答案