public class class1
{
private string[] userNames;
public string[] UserNames
{
get { return userNames; }
set { userNames = value; }
}
public class1()
{
userNames = new string[1];
userNames[0] = "pointeman";
}
public class class2
{
string[] local = null;
public class2()
{
class1 c = new class1();
local = new string[c.UserNames.Length];
c.UserNames.CopyTo(local, 0);
}
}