-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed as not planned
Labels
Area-Language DesignConcept-APIThis issue involves adding, removing, clarification, or modification of an API.This issue involves adding, removing, clarification, or modification of an API.Feature RequestResolution-DuplicateThe described behavior is tracked in another issueThe described behavior is tracked in another issue
Description
I've heard that C#12 will improve type aliases, so here's my opinion:
I hope to support defining aliases for generic definition types, example:
using Map<TKey, TValue> = System.Collections.Generic.Dictionary<TKey, TValue>;
using IntegerMap<TValue> = System.Collections.Generic.Dictionary<int, TValue>;If this feature is available, it will be more convenient to rewrite code from other languages into C#.
And it can also solve the problem of generic definition type name conflicts.
Metadata
Metadata
Assignees
Labels
Area-Language DesignConcept-APIThis issue involves adding, removing, clarification, or modification of an API.This issue involves adding, removing, clarification, or modification of an API.Feature RequestResolution-DuplicateThe described behavior is tracked in another issueThe described behavior is tracked in another issue