how to pass an array to a function in C#?
suppose i have an 2-d array
char [,] b = new char [100,100]
how i pass it to function
how to pass an array to a function in C#?
suppose i have an 2-d array
char [,] b = new char [100,100]
how i pass it to function
do you mean how to passs it to a function or how to write a function that accepts it?
function that takes one would look like this
private void test(char[,] b)
{
//do whatever here
}
do you mean how to passs it to a function or how to write a function that accepts it?
function that takes one would look like this
private void test(char[,] b) { //do whatever here }
thanks alot
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.