The problem: How do I pass the Dictionary from Search.Part2 into Search.Main
main part is
namespace Search
{
public class Search1 : Search
{
public static void Search1(string[] input)
{
string[] array = Search.part1(input);
var dictionary = Search.part2(input);
Search.Main(input, array, dictionary);
Console.ReadLine();
}
}
}
problem is
public static void Main(string[] input, string[] array, 'var' dictionary)
I cant use the contextual keyword 'var' as it may only appear within a local variable declaration or in script code. this maybe simple but idk what to put instead of var (or if i can even do it this way)