How can i pass a 2d array to another class?
This is a little of what i have at the moment:
the problem is when i pass the array, and then try to use later on in NewConnection, it throws the exception: "Object reference not set to an instance of an object."
This is a little of what i have at the moment:
Code:
class Ocl
{
string[,] blacklist;
public void test()
{//blacklist array has data(thats not the problem)
NewConnection pxy = new NewConnection(socket, blacklist);
}
class NewConnection
{
string[,] blist;
public NewConnection(string[,] blacklist)//constructor
{
blist = blacklist;
}
}
Comment