Hi,
I have a project that has 11 classes. Now each class refers to the tasklayer ( another set of multiple classes) and instantiates them everytime.
For ex:
TaskLayer: contains 3 classes under same namespace.
A.cs
------
public class A{}
B.cs
---------
public class B{}
C.cs
--------
public class C{}
MyProj: my classes needs to refer to tasklayer classes
_A.cs
------
using Tasklayer;
class _A
{
A a = new A();
B b = new B();
C c = new C();
}
_B.cs
-----
using Tasklayer;
class _B
{
A a = new A();
B b = new B();
C c = new C();
}
_C.cs
------
using Tasklayer;
class _C
{
A a = new A();
B b = new B();
C c = new C();
}
Now I dont wanna create a separate set of objects for each of these class in myproj.
I want to create a single of set of object of the tasklayer classes and referance those in my myproj classes.
Can you please tell me how to do that.