{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/952","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/952/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/952/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/952/events","html_url":"https://github.com/dotnet/roslyn/issues/952","id":59349329,"number":952,"title":"[Proposal] Infer enum names when enum type is implicit","user":{"login":"markrendle","id":178242,"avatar_url":"https://avatars.githubusercontent.com/u/178242?v=3","gravatar_id":"","url":"https://api.github.com/users/markrendle","html_url":"https://github.com/markrendle","followers_url":"https://api.github.com/users/markrendle/followers","following_url":"https://api.github.com/users/markrendle/following{/other_user}","gists_url":"https://api.github.com/users/markrendle/gists{/gist_id}","starred_url":"https://api.github.com/users/markrendle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markrendle/subscriptions","organizations_url":"https://api.github.com/users/markrendle/orgs","repos_url":"https://api.github.com/users/markrendle/repos","events_url":"https://api.github.com/users/markrendle/events{/privacy}","received_events_url":"https://api.github.com/users/markrendle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-28T17:19:15Z","updated_at":"2015-02-28T17:19:15Z","closed_at":null,"body":"There are probably dozens of reasons why this wouldn't work, but I was just looking at an API with a method `ListContainers(bool)` (it was in Go) and thinking about enums being better than Boolean flags, when it occurred to me that in .NET, expressing enums can be verbose.\r\n\r\nIn cases where the type can be determined from argument, property or field type, why does one have to type the enum name? Would it not be easier and more readable to just use the enum member name, like `type.GetProperties(Public | Static)`?\r\n\r\nThis is bound to be (a) stupid because of obvious reasons and also (b) already possible in F#, so I apologise in advance for wasting everybody's time."}}