Global classes

  • Thread starter Thread starter Relaxin
  • Start date Start date
R

Relaxin

How would you make a class global to your entire application?

In C++ you could use "extern" to make a variable declare somewhere else
accessible from somewhere else.

Thanks
 
How would you make a class global to your entire application?

To make a type visible, give it an access modifier of public.
In C++ you could use "extern" to make a variable declare somewhere else
accessible from somewhere else.

The closest would be to mark a C# field as public and static.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top