Passing a dictionary as function arguments in C#

How do you pass a dictionary as a function argument in C#?

Unity shows errors with the following for a dictionary with string keys and int values:

public static int dicresult(Dictionary dic,String key)
public static int dicresult(Dictionary dic,String key)

If you’re using the standard C# dictionary, you need to parametrize it (e.g.
Dictionary<string, int> in your case). Alternately, you can pass it as an IDictionary (the non-generic interface).