The class foo can be designed, but is not the first class in the file error

后端 未结 5 1695
囚心锁ツ
囚心锁ツ 2021-02-20 08:36

I have this

The class foo can be designed, but is not the first class in the file

error after adding foo class derived from TextBox

5条回答
  •  南笙
    南笙 (楼主)
    2021-02-20 08:57

    You must have more than one classes in your file. Move your class up in the file so that it can be the first class in that file

    Visual Studio requires class that was responsible for creation of file to be on top or first class of that file

提交回复
热议问题