use alias for generics in c#2.0


Aliased generics:

using ASimpleName = Dictionary<string, Dictionary<string, List<string>>>;

It allows you to use ASimpleName, instead of Dictionary<string, Dictionary<string, List<string>>>.

Use it when you would use the same generic big long complex thing in a lot of places.

Unknown's avatarAbout bpostaci
Escalation Engineer in Microsoft.

Leave a comment