{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/102","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/102/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/102/events","html_url":"https://github.com/dotnet/roslyn/issues/102","id":55732156,"number":102,"title":"Allow multiple return values in C#","user":{"login":"GoEddie","id":4895930,"avatar_url":"https://avatars.githubusercontent.com/u/4895930?v=3","gravatar_id":"","url":"https://api.github.com/users/GoEddie","html_url":"https://github.com/GoEddie","followers_url":"https://api.github.com/users/GoEddie/followers","following_url":"https://api.github.com/users/GoEddie/following{/other_user}","gists_url":"https://api.github.com/users/GoEddie/gists{/gist_id}","starred_url":"https://api.github.com/users/GoEddie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoEddie/subscriptions","organizations_url":"https://api.github.com/users/GoEddie/orgs","repos_url":"https://api.github.com/users/GoEddie/repos","events_url":"https://api.github.com/users/GoEddie/events{/privacy}","received_events_url":"https://api.github.com/users/GoEddie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-01-28T09:24:46Z","updated_at":"2015-01-28T17:45:44Z","closed_at":null,"body":"Hi,\r\n\r\nIn a newer version of c#, can you consider this as a new feature?\r\n\r\nReturning multiple values from a function is really useful and would avoid either returning a class / struct or using out parameters.\r\n\r\nThe syntax could be something like:\r\n\r\nvar result = false;\r\nvar someOtherValue = \"\";\r\n\r\nresult, someOtherValue = SomeMethod(100, 100);\r\n\r\nto return multiple values do something like:\r\n\r\npublic bool, string SomeMethod(int number1, int number2) {\r\n    return true, \"blah blah blah\";\r\n}\r\n\r\nwhich seems a lot nicer than:\r\n\r\npublic bool SomeMethod(int number1, int number2, out string returnValue) {\r\n  returnValue = \"blah blah blah\";\r\n  return true;\r\n}\r\n\r\nThere is already a uservoice for this:\r\n\r\nhttps://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2083753-return-multiple-values-from-functions-effortlessly"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/71880265","html_url":"https://github.com/dotnet/roslyn/issues/102#issuecomment-71880265","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/102","id":71880265,"user":{"login":"xanather","id":3013922,"avatar_url":"https://avatars.githubusercontent.com/u/3013922?v=3","gravatar_id":"","url":"https://api.github.com/users/xanather","html_url":"https://github.com/xanather","followers_url":"https://api.github.com/users/xanather/followers","following_url":"https://api.github.com/users/xanather/following{/other_user}","gists_url":"https://api.github.com/users/xanather/gists{/gist_id}","starred_url":"https://api.github.com/users/xanather/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xanather/subscriptions","organizations_url":"https://api.github.com/users/xanather/orgs","repos_url":"https://api.github.com/users/xanather/repos","events_url":"https://api.github.com/users/xanather/events{/privacy}","received_events_url":"https://api.github.com/users/xanather/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T17:45:44Z","updated_at":"2015-01-28T17:45:44Z","body":"What is so bad about using the \"out\" parameter? There is a reason why you have to explicitly type \"out\" on formal parameters and actual parameters, so others know it returns more values."}}