L
Lambert Symth
How can i use a variable from within a different function in which it was
not set.
Like the example.
using System;
namespace test
{
class class1
{
static void Main()
{
string name = "bob";
start();
}
static void start()
{
Console.WriteLine(name);
}
}
}
not set.
Like the example.
using System;
namespace test
{
class class1
{
static void Main()
{
string name = "bob";
start();
}
static void start()
{
Console.WriteLine(name);
}
}
}