且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何创建一个二维动态数组的长度?

更新时间:2023-11-12 08:58:46

IMO,自列是固定的,声明一个类为:

IMO, since the "columns" are fixed, declare a class for that:

public class Account
{
    public int ID {get;set;}
    public string Name {get;set;}
    public string User {get;set;}
    public string Password {get;set;} // you meant salted hash, right? ;p
}

现在有一个:

List<Account> list = new List<Account>();

这有你需要的一切:

添加到列表中选择,输入元素

add to list,select,input elements

list.Add

使用数据库查询的元素
  使用在其他功能的参数

using elements in database queries using as parameters in other functions

没有更多的信息模糊,但你可以通过任帐户或invidual值,或者整个列表。

vague without more info, but you can pass either the Account or invidual values, or the entire list.