{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/csharplang/issues/1743","repository_url":"https://api.github.com/repos/dotnet/csharplang","labels_url":"https://api.github.com/repos/dotnet/csharplang/issues/1743/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/csharplang/issues/1743/comments","events_url":"https://api.github.com/repos/dotnet/csharplang/issues/1743/events","html_url":"https://github.com/dotnet/csharplang/issues/1743","id":345378194,"node_id":"MDU6SXNzdWUzNDUzNzgxOTQ=","number":1743,"title":"LinQ and non-generic collections","user":{"login":"MohammadHamdyGhanem","id":29876310,"node_id":"MDQ6VXNlcjI5ODc2MzEw","avatar_url":"https://avatars0.githubusercontent.com/u/29876310?v=4","gravatar_id":"","url":"https://api.github.com/users/MohammadHamdyGhanem","html_url":"https://github.com/MohammadHamdyGhanem","followers_url":"https://api.github.com/users/MohammadHamdyGhanem/followers","following_url":"https://api.github.com/users/MohammadHamdyGhanem/following{/other_user}","gists_url":"https://api.github.com/users/MohammadHamdyGhanem/gists{/gist_id}","starred_url":"https://api.github.com/users/MohammadHamdyGhanem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MohammadHamdyGhanem/subscriptions","organizations_url":"https://api.github.com/users/MohammadHamdyGhanem/orgs","repos_url":"https://api.github.com/users/MohammadHamdyGhanem/repos","events_url":"https://api.github.com/users/MohammadHamdyGhanem/events{/privacy}","received_events_url":"https://api.github.com/users/MohammadHamdyGhanem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-07-27T21:58:44Z","updated_at":"2018-07-31T15:53:34Z","closed_at":null,"author_association":"NONE","body":"This LinQ will npt compile in C#:\r\n```var result2 = from c in this.Controls select c;```\r\nIt says:\r\n> Could not find an implementation of the query pattern for source type 'Control.ControlCollection'.  'Select' not found.  Consider explicitly specifying the type of the range variable 'var1'.\r\n\r\nit is OK in VB:\r\n```Dim result2 = From c  In Me.Controls Select c```\r\n\r\nWhy  can't C# infer c to be Object like VB does?  Of course it will be better to infer it as Control. We discussed this before https://github.com/dotnet/csharplang/issues/1492 and seems there is no easy solution.\r\nThis will work in C#:\r\n```var result2 = from Control c in this.Controls select c;```"},"comment":{"url":"https://api.github.com/repos/dotnet/csharplang/issues/comments/409271709","html_url":"https://github.com/dotnet/csharplang/issues/1743#issuecomment-409271709","issue_url":"https://api.github.com/repos/dotnet/csharplang/issues/1743","id":409271709,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTI3MTcwOQ==","user":{"login":"CyrusNajmabadi","id":4564579,"node_id":"MDQ6VXNlcjQ1NjQ1Nzk=","avatar_url":"https://avatars3.githubusercontent.com/u/4564579?v=4","gravatar_id":"","url":"https://api.github.com/users/CyrusNajmabadi","html_url":"https://github.com/CyrusNajmabadi","followers_url":"https://api.github.com/users/CyrusNajmabadi/followers","following_url":"https://api.github.com/users/CyrusNajmabadi/following{/other_user}","gists_url":"https://api.github.com/users/CyrusNajmabadi/gists{/gist_id}","starred_url":"https://api.github.com/users/CyrusNajmabadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyrusNajmabadi/subscriptions","organizations_url":"https://api.github.com/users/CyrusNajmabadi/orgs","repos_url":"https://api.github.com/users/CyrusNajmabadi/repos","events_url":"https://api.github.com/users/CyrusNajmabadi/events{/privacy}","received_events_url":"https://api.github.com/users/CyrusNajmabadi/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T15:53:34Z","updated_at":"2018-07-31T15:53:34Z","author_association":"NONE","body":">  What would be the point of even creating the PR if the whole idea is declined?\r\n\r\nIt could help foster discussion on what a suitable approach can be.  \r\n\r\n--\r\n\r\nNote: the entire conversation is a bit weird to me.  There are *existing* *supported* *trivial* ways to solve this problem.  So it seems weird to me that all of those are avoided."}}
{"actor":{"display_login":"CyrusNajmabadi"}}