In the following code snippet:
public static Dictionary<int, string> myDictionary = new Dictionary<int, string>()
the type <int, string>
is written twice.
Can it be this be defined in some way to that the type only has to be written once?
So that the code would then look something like that suggested by the following pseudocode:
define myType = <int, string>
public static Dictionary<myType> myDictionary = new Dictionary<myType>()