{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/1276","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/1276/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/1276/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/1276/events","html_url":"https://github.com/dotnet/roslyn/issues/1276","id":61803047,"number":1276,"title":"Feature request: Allow null-propagation operator for event accessors","user":{"login":"SLaks","id":313894,"avatar_url":"https://avatars.githubusercontent.com/u/313894?v=3","gravatar_id":"","url":"https://api.github.com/users/SLaks","html_url":"https://github.com/SLaks","followers_url":"https://api.github.com/users/SLaks/followers","following_url":"https://api.github.com/users/SLaks/following{/other_user}","gists_url":"https://api.github.com/users/SLaks/gists{/gist_id}","starred_url":"https://api.github.com/users/SLaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SLaks/subscriptions","organizations_url":"https://api.github.com/users/SLaks/orgs","repos_url":"https://api.github.com/users/SLaks/repos","events_url":"https://api.github.com/users/SLaks/events{/privacy}","received_events_url":"https://api.github.com/users/SLaks/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Language%20Design","name":"Area-Language Design","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Feature%20Request","name":"Feature Request","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/8","html_url":"https://github.com/dotnet/roslyn/milestones/C%23%207%20and%20VB%2015","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/8/labels","id":962632,"number":8,"title":"C# 7 and VB 15","description":"","creator":{"login":"gafter","id":3804346,"avatar_url":"https://avatars.githubusercontent.com/u/3804346?v=3","gravatar_id":"","url":"https://api.github.com/users/gafter","html_url":"https://github.com/gafter","followers_url":"https://api.github.com/users/gafter/followers","following_url":"https://api.github.com/users/gafter/following{/other_user}","gists_url":"https://api.github.com/users/gafter/gists{/gist_id}","starred_url":"https://api.github.com/users/gafter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gafter/subscriptions","organizations_url":"https://api.github.com/users/gafter/orgs","repos_url":"https://api.github.com/users/gafter/repos","events_url":"https://api.github.com/users/gafter/events{/privacy}","received_events_url":"https://api.github.com/users/gafter/received_events","type":"User","site_admin":false},"open_issues":28,"closed_issues":1,"state":"open","created_at":"2015-02-02T23:41:34Z","updated_at":"2015-03-26T18:03:45Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-03-15T12:14:33Z","updated_at":"2015-03-26T18:05:23Z","closed_at":null,"body":"Why can't I write code like this?\r\n\r\n```C#\r\nProcess.GetProcessById(2)?.Exited += delegate { };\r\n```\r\n\r\nError:\r\n > CS0079\tThe event 'Process.Exited' can only appear on the left hand side of += or -=\r\n\r\nThis would be especially useful when writing property setters that add and remove event handlers to their values if non-null."},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/86649615","html_url":"https://github.com/dotnet/roslyn/issues/1276#issuecomment-86649615","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/1276","id":86649615,"user":{"login":"SLaks","id":313894,"avatar_url":"https://avatars.githubusercontent.com/u/313894?v=3","gravatar_id":"","url":"https://api.github.com/users/SLaks","html_url":"https://github.com/SLaks","followers_url":"https://api.github.com/users/SLaks/followers","following_url":"https://api.github.com/users/SLaks/following{/other_user}","gists_url":"https://api.github.com/users/SLaks/gists{/gist_id}","starred_url":"https://api.github.com/users/SLaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SLaks/subscriptions","organizations_url":"https://api.github.com/users/SLaks/orgs","repos_url":"https://api.github.com/users/SLaks/repos","events_url":"https://api.github.com/users/SLaks/events{/privacy}","received_events_url":"https://api.github.com/users/SLaks/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T18:05:23Z","updated_at":"2015-03-26T18:05:23Z","body":"Note that the delegate expression (eg, `x?.SomeEvent += ExpensiveFunction().SomeMethod`) would still be evaluated if `x` is null."}}