110,567
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ClassTestDB
{
public class ClassDB
{
private int _ID;
private string _User;
private decimal _Balance;
List<ClassDB> db = new List<ClassDB>();
ClassDB cbd;
public void addList(int a, string b, decimal c)
{
cbd = new ClassDB();
cbd.ID = a;
cbd.User = b;
cbd.Balance = c;
}
public List<ClassDB> getList()
{
return db;
}
public int ID
{
get
{
return this._ID;
}
set
{
this._ID = value;
}
}
public string User
{
get
{
return this._User;
}
set
{
this._User = value;
}
}
public decimal Balance
{
get
{
return this._Balance;
}
set
{
this._Balance = value;
}
}
}
}