Is there any significant difference between the following, or pitfalls to look for …in both cases setup is called before dosomethingelse from other points in the main program
static Bitmap wxyz;
public static void setupConfig()
{
wxyz= new Bitmap(100,200);
wxzy.Clear();
}
public static void nowDoSomethingElse()
{
wxyz.Drawtext(blah blah)
}
static Bitmap wxyz = new Bitmap(100, 200);
public static void setupConfig()
{
wxzy.Clear();
}
public static void nowDoSomethingElse()
{
wxyz.Drawtext(blah blah)
}