string

来源:互联网 发布:电脑文件复原软件 编辑:程序博客网 时间:2024/06/04 19:17

1.   string.IsNullOrEmpty()示例


            if (string.IsNullOrEmpty(strBianH))
            {
                MessageBox.Show("请输入编号!");
                this.textBoxBianH.Focus();
                return;
            }

 

2.   string.Format()示例

       string strSql = string.Format("insert into banj values('{0}','{1}')", strBianH, strBanJ);

      

 

原创粉丝点击