{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/8065","repository_url":"https://api.github.com/repos/dotnet/corefx","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/8065/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/8065/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/8065/events","html_url":"https://github.com/dotnet/corefx/pull/8065","id":150966076,"number":8065,"title":"Fix ListDictionary.CopyTo throwing IndexOutOfRangeException","user":{"login":"hughbe","id":1275900,"avatar_url":"https://avatars.githubusercontent.com/u/1275900?v=3","gravatar_id":"","url":"https://api.github.com/users/hughbe","html_url":"https://github.com/hughbe","followers_url":"https://api.github.com/users/hughbe/followers","following_url":"https://api.github.com/users/hughbe/following{/other_user}","gists_url":"https://api.github.com/users/hughbe/gists{/gist_id}","starred_url":"https://api.github.com/users/hughbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughbe/subscriptions","organizations_url":"https://api.github.com/users/hughbe/orgs","repos_url":"https://api.github.com/users/hughbe/repos","events_url":"https://api.github.com/users/hughbe/events{/privacy}","received_events_url":"https://api.github.com/users/hughbe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/corefx/labels/2%20-%20In%20Progress","name":"2 - In Progress","color":"CCCCCC"},{"url":"https://api.github.com/repos/dotnet/corefx/labels/cla-already-signed","name":"cla-already-signed","color":"009800"},{"url":"https://api.github.com/repos/dotnet/corefx/labels/System.IO","name":"System.IO","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-25T20:00:45Z","updated_at":"2016-04-25T20:43:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/corefx/pulls/8065","html_url":"https://github.com/dotnet/corefx/pull/8065","diff_url":"https://github.com/dotnet/corefx/pull/8065.diff","patch_url":"https://github.com/dotnet/corefx/pull/8065.patch"},"body":"- Now works as expected according to MSDN docs\r\n- Found in #7997, and caused inconsistencies in HybridDictionary behaviour at different lengths\r\n\r\nI got the impression that we should not throw an exception if count == 0, let me know if this is incorrect.\r\n\r\n/cc @ianhays"},"comment":{"url":"https://api.github.com/repos/dotnet/corefx/issues/comments/214515061","html_url":"https://github.com/dotnet/corefx/pull/8065#issuecomment-214515061","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/8065","id":214515061,"user":{"login":"JonHanna","id":1253369,"avatar_url":"https://avatars.githubusercontent.com/u/1253369?v=3","gravatar_id":"","url":"https://api.github.com/users/JonHanna","html_url":"https://github.com/JonHanna","followers_url":"https://api.github.com/users/JonHanna/followers","following_url":"https://api.github.com/users/JonHanna/following{/other_user}","gists_url":"https://api.github.com/users/JonHanna/gists{/gist_id}","starred_url":"https://api.github.com/users/JonHanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonHanna/subscriptions","organizations_url":"https://api.github.com/users/JonHanna/orgs","repos_url":"https://api.github.com/users/JonHanna/repos","events_url":"https://api.github.com/users/JonHanna/events{/privacy}","received_events_url":"https://api.github.com/users/JonHanna/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T20:43:18Z","updated_at":"2016-04-25T20:43:18Z","body":"> All the implementations in System.Collections and System.Collections.NonGeneric throw regardless of the count, so this should as well.\r\n\r\nNot quite true, they generally allow you to copy zero elements to just past the end (starting index equals length). If you copy zero to a further index most will throw ArgumentException as index + count > end, which I think this will from a glance, but some throw ArgumentOutOfRangeException."}}