但是,当我使用double作为变量类型时,它并不是编译。守则是:class program static void Main() bool Flag=true; string input=Console.ReadLine();
if(double.TryParse(input,out priceGain))please enter a number")
entry] [rendered]
ERROR in ng:///home/x/y/z.html (10,6): Operator '==' cannot be applied to types 'string' and 'number'.=' cannot be applied to types 'string' and 'number'.ERROR
this.pointsAgainst = 0;}updateStats = (bool: boolean, property: string`${property}For` : `${property}Against`}
但是,我得到一个错误,这个字符串不能分配给这个键,如果我强制类型如下`${property}For` as keyof this : `${property}Against` as ke