I have trouble with compiling my cod
I have 2 classes. There are: first public class with one public method, where I’m creating array. And second class – Program. When I’m trying to calls method from first class, I’m getting error “The name ‘Create Array’ does not exist in the current context”.
I don’t understand what is it. Help my mind -_- pls/
namespace UU
{
public class DDD
{
public int[] CreateArray(int count)
{
int min = 2;
int[] array = new int[count];
for (int i = 0; i <= count; i++)
{
array[i] = min;
min += 2;
Console.Write(array[i]);
}
return array;
}
}
public class Program
{
static void Main(string[] args)
{
CreateArray(3);
}
}
}