S
stephen
Hi all,
VB .NET has modules in which you can create an object like this:
Module modVariables
Friend getPath As ArrayList = New ArrayList
End Module
and this arraylist is available anywhere in the project. the way I use it is
to populate it with the (directory) paths I use for file and fill it up in a
class like this:
Public Class HelperClass
Friend Function populatePaths() As Boolean
nvc = CType(ConfigurationSettings.GetConfig(pathArray(1)),
NameValueCollection)
//something something
getPath.Add(nvc(key))
End Function
End Class
and retrive this getPaths() info by index in any other class
How can I do this in C#?
whats the concept of module in C# where I can declare global varibles (like
arraylist) populate it and then use it any class?
Appreciate your help,
Stephen
VB .NET has modules in which you can create an object like this:
Module modVariables
Friend getPath As ArrayList = New ArrayList
End Module
and this arraylist is available anywhere in the project. the way I use it is
to populate it with the (directory) paths I use for file and fill it up in a
class like this:
Public Class HelperClass
Friend Function populatePaths() As Boolean
nvc = CType(ConfigurationSettings.GetConfig(pathArray(1)),
NameValueCollection)
//something something
getPath.Add(nvc(key))
End Function
End Class
and retrive this getPaths() info by index in any other class
How can I do this in C#?
whats the concept of module in C# where I can declare global varibles (like
arraylist) populate it and then use it any class?
Appreciate your help,
Stephen