User Profile
Collapse
-
Thanks for your reply.When you are making a int or string as member of that class then you can easily share those using static but when an object is the class member variable then you can't share it that way. So I was looking something to share the object across the project.... -
Object Sharing across forms in C#
Hi,
I want to declare objects that several source files can use.(similar to C++ extern storage class specifier ). I know that I can pass ref to every single object(winforms ) will do but I was woundering is there any other work around ?
Using static class members I can share the variables but can't share the objects ? Please advice.
Thanks,
Sekhar
No activity results to display
Show More
Leave a comment: