public SqlConnection getcon(){
...}
public void getcom(string M_str_sqlstr){
SqlConnection sqlcon=this.getcon();
...}
我调试过了红色字体为什么不能等价于SqlConnection sqlcon=new SqlConnection(this.getcon());?
它等价于SqlConnection sqlcon=(SqlConnection)this.getcon();这句不也是创建一个SqlConnection类并赋值吗?初学者概念不清楚,请高手指教。
...}
public void getcom(string M_str_sqlstr){
SqlConnection sqlcon=this.getcon();
...}
我调试过了红色字体为什么不能等价于SqlConnection sqlcon=new SqlConnection(this.getcon());?
它等价于SqlConnection sqlcon=(SqlConnection)this.getcon();这句不也是创建一个SqlConnection类并赋值吗?初学者概念不清楚,请高手指教。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货