c# - Global Static Class with Objects -


OK, so I know that you can not find objects in a fixed square but I need a class that I can hold the objects accessible from different classes. I am creating a DLL which will provide extended functionality to any other program so that I can not only inherit or pass classes around, if needed I can simply create the properties of each object that I have in a stable orbit Do whatever works, but I am not as friendly as I want. Anyone have any other ideas to accomplish something like this? In fact, you can put objects in a static class - they just have to be fixed

object.

For example:

  Public Fixed Category Shared Object {Private Static MyClass obj = new MyClass (); Public Static MyClass (GetObj) {back obj; }}  

And from anywhere you can call the instance methods / properties / etc in your program.

  SharedObjects.GetObj (). MyInstanceMethod ();  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -