class Program { private readonly int a = 20; private readonly float b; public Program(float tmp) { b = tmp; } static void Main(string[] args) { Program obj1 = new Program(1.2); Console.Read(); } }
它给错误无法转移双倍浮动.为什么不是1.2浮动值?
More details