class sample
{
public void sample_method()
{
Test (); // Call Error
}
}
public void test()
{
Console.WriteLine("Call Complete";
}
In this case, how do I write the test method to call it?
visual studio express 2015 (windows1064bit)
class sample
{
public void sample_method()
{
Test (); // Call Error
}
public void test()
{
Console.WriteLine("Call Complete";
}
}
Like this?
Do you mean you want to call a method in a different class?
© 2024 OneMinuteCode. All rights reserved.