C# ASP.NET MVC4编码错误
C#是一种区分大小写的语言。在C# ASP.NET MVC4编码错误,c#,html,asp.net-mvc-4,C#,Html,Asp.net Mvc 4,C#是一种区分大小写的语言。在值中需要大写V。而ToString需要是驼峰型。这将允许代码进行编译 >error CS1061: 'decimal' does not contain a definition for 'value' and no extension method 'value' accepting a first argument of type 'decimal' could be found (are you missing a using directive or
值中需要大写V。而ToString
需要是驼峰型。这将允许代码进行编译
>error CS1061: 'decimal' does not contain a definition for 'value' and no extension method 'value' accepting a first argument of type 'decimal' could be found (are you missing a using directive or an assembly reference?)
我正在学习asp.NETMVC4,这段代码是视频中的一个示例,它应该按照视频显示的方式运行,但每次都会出现相同的错误
>error CS1061: 'decimal' does not contain a definition for 'value' and no extension method 'value' accepting a first argument of type 'decimal' could be found (are you missing a using directive or an assembly reference?)
@auction.CurrentPrice.Value.ToString("c")