public class studentsRow : DataRow {
private studentsDataTable tablestudents;
internal studentsRow(DataRowBuilder rb) :
base(rb) {
this.tablestudents = ((studentsDataTable)(this.Table));
}......这是DataRow的子类而
[System.Diagnostics.DebuggerStepThrough()]
public class studentsDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnId;
private DataColumn columnName;
....
internal studentsDataTable() :
base("students") {
this.InitClass();
}
public studentsRow this[int index] {
get {
return ((studentsRow)(this.Rows[index]));
}
}
但通篇未找到studentsRow的构造函数的实参调用DataRowBuilder rb,为什么?
private studentsDataTable tablestudents;
internal studentsRow(DataRowBuilder rb) :
base(rb) {
this.tablestudents = ((studentsDataTable)(this.Table));
}......这是DataRow的子类而
[System.Diagnostics.DebuggerStepThrough()]
public class studentsDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnId;
private DataColumn columnName;
....
internal studentsDataTable() :
base("students") {
this.InitClass();
}
public studentsRow this[int index] {
get {
return ((studentsRow)(this.Rows[index]));
}
}
但通篇未找到studentsRow的构造函数的实参调用DataRowBuilder rb,为什么?
yourClassName.studentsRow studentsrow = studentsDataTable.NewstudentsRow();
然后就可以引用studentsrow 中的方法和属性了。