Global variable type, how to get to it?
Posted on 2009-12-19
Hello experts :-)
I have Delphi background and I am new to C#.
In Delphi I used to create special file where I kept all my global variable types. Then I used them across my different applications and in different classes within the same application.
Now I try to do the same in C#.
1. Is it a good idea in C#?
My current approach in C# is:
- I created new file
- in this file I created namespace, static class, and static field within my static class.
Now I try to get to it from other files. How can I do it?
I am C# newbie so please explain it to me in really simple manner :)