C# windows form problem

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,

I defined some const string in MyClass.cs file, what's the most convient way
for my project to use this MyClass.cs file so I don't need to write extra
code?
Thanks for help.


Jason
 
Jason,

If your class belong to the same namespace than the others classes in the
project, you won't need to write any extra code - just use
'MyClass.MyConstant' from any other place (supposing of course your constant
is defined public).

Regards - Octavio
 
Back
Top