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.
 
Back
Top