Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class Alias #15928

Closed
szguoxz opened this issue Dec 15, 2016 · 2 comments
Closed

Class Alias #15928

szguoxz opened this issue Dec 15, 2016 · 2 comments
Labels
Area-Language Design Resolution-Duplicate The described behavior is tracked in another issue

Comments

@szguoxz
Copy link

szguoxz commented Dec 15, 2016

Really like to have a Class alias feature.

i.e.: Alias xx = cc.vv.rrr;

This is different than the using statement. The problem of using statement is: It's only effective inside the file that defines it.

What it should do is: define it in an assembly, then whatever project refer to that assembly, should automatically have that alias.

I think the price to pay for this feature is minimum.

on reflection, the type name can go back to the original class name, or make it really fancy, add a alias property to Type class. Though I think it's unnecessary.

@HaloFour
Copy link

#7451

@gafter
Copy link
Member

gafter commented Dec 15, 2016

Yes, this is a dup of #7451

@gafter gafter closed this as completed Dec 15, 2016
@gafter gafter added the Resolution-Duplicate The described behavior is tracked in another issue label Dec 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Language Design Resolution-Duplicate The described behavior is tracked in another issue
Projects
None yet
Development

No branches or pull requests

4 participants