我有一个DisplayedData类...
public class DisplayedData
{
private int _key;
private String _username;
private String _fullName;
private string _activated;
private string _suspended;
public int key { get { return _key; } set { _key = value; } }
public string username { get { return _username; } set { _username = value; } }
public string fullname { get { return _fullName; } set { _fullName = value; } }
public string activated { get { return _activated; } set { _activated = value; } }
public string suspended { get { return _suspended; } set { _suspended = value; } }
}
我想将此类中的对象放入一个数组中,该类中的所有对象都应转换为 String[]
我有..
DisplayedData _user = new DisplayedData();
String[] _chosenUser = _user. /* Im stuck here :)
或者我可以创建一个数组,其中所有项目都由不同数据类型的变量组成,这样整数仍然是整数,所以字符串也是?