How can I set the namespace for an object?
Now I have to use an object in the following way. MyFirstTestCase tc = new MyFirstTestCase();
MyFirstTestCase tc = new MyFirstTestCase();
tc.dothis();
tc.dothat();
// ...
I want to use the object in this way. MyFirstTestCase tc = new MyFirstTestCase();
MyFirstTestCase tc = new MyFirstTestCase();
using tc;
dothis();
dothat();
// ...
But this does not work. How can I do this?
To clarify what I mean.
// MyFirstTestCase is the class
// tc is the object of MyFirstTestCase
// and instead of:
tc.dothis();
// ... I want to use:
dothis();
// dothis is a method of tc
MyFirstTestCase?