troubleshooting Question

Equivalent of VB.NET Modules in C#?

Avatar of rajesh_khater
rajesh_khater asked on
C#Visual Basic.NET
2 Comments1 Solution408 ViewsLast Modified:
Is there any equivalent of VB.NET modules in C#?

I have a lot of constant variables, which I want to define in a separate file as public const variables.

I want to access these public variables directly without qualifying them with the class name or object name.

This is possible in VB.NET. Can we do a similar thing in C#?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros