Remove limitation for type alias in DEBUG configuration. Add generic aliases
1) I often use type aliases in my code for avoid too long type names. Like this:
using TypeItem = LongNamespace.TypeItem<LongNamespace.Class1,LongNamespace.Class2<LongNamespace.Class3>,.......>;
And compiler said that I can't compile code - alias too long for compile in DEBUG configuration.
2) Some type I need use alias with generic type parameter. By aliases doesn't allow that :( .Sample
using ItemType<T> = LongNamespace.ItemType<T, LongNamespace.Class2<LongNamespace.Class3>........>
2 comments
-
Mauricio Scheffer
commented
Related feedback on Microsoft Connect:
http://connect.microsoft.com/VisualStudio/feedback/details/92192/allow-generic-using-directive-alias
http://connect.microsoft.com/VisualStudio/feedback/details/295138/generic-aliases-via-using
https://connect.microsoft.com/VisualStudio/feedback/details/477321/allow-to-use-other-aliases-when-defining-new-aliases-in-c
http://connect.microsoft.com/VisualStudio/feedback/details/93520/generic-aliases -
Mauricio Scheffer
commented
Also add the ability to nest type aliases. E.g.
using A = System.Collections.Generic.IEnumerable<string>;
using F = System.Func<string, A>;I think making type aliases more powerful would make up a little for the lack of type inference in the language.