首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

这几句,哪位高手帮忙注释一下,很简单

2012-03-27 
这几句,谁帮忙注释一下,很简单。public partial class my_StudySum : BasePage{USER_COURSE_REG bllUSER_CO

这几句,谁帮忙注释一下,很简单。
public partial class my_StudySum : BasePage
{
  USER_COURSE_REG bllUSER_COURSE_REG = new USER_COURSE_REG();
  USERS bllUsers = new USERS();
  CHW_EXAM_PREF bllchw_exam_pref = new CHW_EXAM_PREF();
  decimal user_nm = 0;
  string where = string.Empty;
  int exam_id;
  int sumscore = 0;
  public DataRow drUserSum;
  public string user_id = string.Empty;

USER_COURSE_REG是个数据库表,后面怎么个过程,谁的值给谁了,我就搞不懂了

[解决办法]
这里只是一个声明定义初始化而已
[解决办法]
搞不懂楼主要干嘛, 前面三句不就是 使用 new关键字生成三个对象,后面的不就是声明变量并赋值
[解决办法]
decimal user_nm = 0; 
string where = string.Empty; 
int exam_id; 
int sumscore = 0; 
public DataRow drUserSum; 
public string user_id = string.Empty;
这段和上面的
USER_COURSE_REG bllUSER_COURSE_REG = new USER_COURSE_REG(); 
USERS bllUsers = new USERS(); 
CHW_EXAM_PREF bllchw_exam_pref = new CHW_EXAM_PREF(); 从代码看没有任何关系,因此=后面的值给前面变量了哈。笑死我了你!
[解决办法]
另外:从public partial class my_StudySum : BasePage看,这个页面应该是个基类!
上面三个应该是在子页面时候使用的

热点排行