Compiler error “Default parameter specifiers are not permitted”

前端 未结 2 524
独厮守ぢ
独厮守ぢ 2020-12-11 02:48

Below is my code.

public class PItem
{
    public String content;
    public int count;
    public int fee;
    public int amount;
    public string descript         


        
2条回答
  •  伪装坚强ぢ
    2020-12-11 03:12

    If your project seems to be set as .NET 4.0 then change it to for example 3.5 and then change to the 4.0 again. I got this error when I included a class library project from my old solution solution to a new one when I wanted to have the project in my new software. Both solutions were .NET 4 but I got "default parameter specifiers are not permitted" error. I just did what I explained.

提交回复
热议问题