Hi I want to be able to create a variable and name it using a string so;
public int number;
public void function ()
{
float number+number;
}
so if number = 3 then the float’s name should be number3
Hi I want to be able to create a variable and name it using a string so;
public int number;
public void function ()
{
float number+number;
}
so if number = 3 then the float’s name should be number3
This isn’t possible in C# unfortunately as variables are declared at compile time not run time.