Hi;
I create a namespace and inside the class there is one function:
namespace mynamespace
{
public class TEST
{
public void test(int i)
{
i = 1;
}
}
}
made it as *.dll, and loaded it into another project:
.........
public class Mytest
{
public static void Main()
{
Mytest mytest = new Mytest();
mytest.test1();
}
public void test1()
{
int t=0;
mynamespace.TEST Test = new mynamespace.TEST();
Test.test(t);
Console.WriteLine(t);
}
so the output should be 1, wasn't it?
but it was 0, what was wrong?
this was weird