-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Idea: fullnameof() #2154
Comments
The namespace of a type To retrieve the fully qualified type name, one uses What exactly are you proposing? A compile-time constant resolution of the Properties |
If you actually want the full name of the type, not just the namespace, then I think this is a duplicate of #701. |
I think there was a proposal to make those compile-time constants so you can use it in attributes (or any const context). |
Yes, I am sorry, you guys are right. it IS a duplicate of #701 :) |
@alrz I think you're talking about dotnet/roslyn#10972. |
@janniksam Could you close this one please since you've linked to the original? |
Closing as a duplicate. |
This would be addressed by a proposal to make |
I like the nameof() functionality that was implemented a few versions ago.
I would love to have a similar functionality for full namespace:
An example:
[ServiceInterface(Name = nameof(IServiceInterface), ConfigurationName = "Foo.Bar.Test.IServiceInterface")]
public interface IAsyncServiceInterface : IServiceInterface
Could look like this:
[ServiceInterface(Name = nameof(IServiceInterface), ConfigurationName = namespaceof(IServiceInterface))]
public interface IAsyncServiceInterface : IServiceInterface
What you guys think about it?
The text was updated successfully, but these errors were encountered: