I have met a issues that I couldn't declare var
into Dictionary
in c#.
Is there any way to declare a implicity datatype in Dictionary
in c#?
The current declaration of my codes
IDictionary<string, var> serializeMetadata = new Dictionary<string, var>();
With the shown code, my Visual Studio IDE returns an error of
The contextual keyword "var" may only appear within a local variable declaration or in script code