Hi ananya,
"public static" is one of the solution for this...
using tasklayer;
namespace MyProj
{
public static class CommonInstance
{
public static A a = new A();
public static B b = new B();
public static C c = new C();
}
class _A
{
CommonInstance.a.FooFunction(a,a,a);
}
class _B
{
CommonInstance.a.FooFunction(b,b,b);
}
class _C
{
CommonInstance.a.FooFunction(c,c,c);
}
}