.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to declare variables public in C#

1 REPLY 1
Reply
Message 1 of 2
Anonymous
269 Views, 1 Reply

How to declare variables public in C#

In simple words I would like to know how to declare variables global in c#.Net which was very easy in Visual Basic Application (i.e. VBA) where I used to declare variables globally in Modules as I am new in C# expected answer soon
OR
Is there any way to declare variables global like session variables are declared in "global.asax" in web applications using ASP
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

There are no Global varibles in C#. Look up using 'Static
variables/functions'

wrote in message news:5254355@discussion.autodesk.com...
In simple words I would like to know how to declare variables global in
c#.Net which was very easy in Visual Basic Application (i.e. VBA) where I
used to declare variables globally in Modules as I am new in C# expected
answer soon
OR
Is there any way to declare variables global like session variables are
declared in "global.asax" in web applications using ASP

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost