Can't access local variable inside an if...else statement [Answered]
When trying to print productChoice which should be a dictionary object. Rider is flagging it as an error, does anyone know why?

var productChouce without any assignment in Scope A, but that didn't workConsole.Read doesnt do what you think it doesReadLine or ReadKeyDictionary<string, Dictionary<string, Tuple<int, int, int>>>Dictionary<string, Dictionary<string, int>>Dictionary<string, Dictionary<string, Tuple<int, int, int>>> as well? But the last 2 int of the tuples will just be null valuableTuple<> is old syntax, now you just do (int, int, int)(int foo, int bar, int bla)$scopesscope A {
thing a;
scope B {
thing b;
}
}thing ascope Ascope Bscope Bthing bvar productChouceConsole.ReadReadLineReadKeyDictionary<string, Dictionary<string, Tuple<int, int, int>>>Dictionary<string, Dictionary<string, Tuple<int, int, int>>>Dictionary<string, Dictionary<string, int>>Tuple<>(int, int, int)(int foo, int bar, int bla