用c#预期的错误CS1513& amp; amp;#39;花括号(}) [英] error CS1513 'curly bracket (}) expected with c#

查看:163
本文介绍了用c#预期的错误CS1513& amp; amp;#39;花括号(})的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

命名空间WindowsFormsApp1

{

   公共部分课程表格2:表格

    {

        public Form2()

        {

            InitializeComponent();

        }
namespace WindowsFormsApp1
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

推荐答案

您需要在代码末尾添加}以关闭表单类,并在最后一个if语句中添加一个。
You need to add } to the end of the code to close out the form class and one for the last if statement.


这篇关于用c#预期的错误CS1513& amp; amp;#39;花括号(})的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆