I am looking at coverting an application over to C#. Currently I have a
global list varible that needs to be converted. I have tested different
ideas to accomplish the same idea. Ths best way I have found for me is to
create a configuration class with a static array list that is accessed
through static methods. Is there a better way to handle this. This class
is in a DLL if that makes a difference.
public class Configuration
{
private static ArrayList _arraylist;
private static ArrayList List
{
get
{
if (_arraylist == null)
_arraylist = new ArrayList();
return _arraylist;
}
}
public static int Add(string Name, string Value)
{
return List.Add(Name +"="+Value);
}
}