I'm quite new to C# so I apologize if this has been asked before but I've done some searches and haven't found what I'm looking for.
Specifically, I'm aware I can use the keyword using
in the following manner to (in some way) mimic the use of typedef
:
using myStringDict = System.Collections.Generic.Dictionary<string, string>;
or other pre-defined types.
I am curious to know if there is a way to do this with generic types. As in
using mySomethingDict<T,K> = System.Collections.Generic.Dictionary<T,K>; //this doesn't work
This is all to avoid having to include using System.Collections.Generic;
in my files (as there are many files in my project).
Alternative advice is also welcome.