{"action":"created","comment":{"url":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/comments/49836790","id":49836790,"diff_hunk":"@@ -0,0 +1,30 @@\n+﻿namespace Ploeh.AutoFixture.Kernel\r\n+{\r\n+    using System;\r\n+    using System.Collections.Generic;\r\n+    using System.Linq;\r\n+    using System.Reflection;\r\n+    using System.Reflection.Emit;\r\n+\r\n+    internal static class TypeExtensions\r\n+    {\r\n+        public static TypeCode GetTypeCode(this Type type)\r\n+        {\r\n+            if(!type.IsValueType)\r\n+            {\r\n+                return TypeCode.Object;\r\n+            }\r\n+            return GetTypeCode(Activator.CreateInstance(type));\r\n+        }\r\n+\r\n+        public static TypeCode GetTypeCode(object request)\r","path":"Src/AutoFixture/Kernel/TypeExtensions.cs","position":20,"original_position":20,"commit_id":"37258f8b3d90274cbef81f50e64f064d892ee608","original_commit_id":"37258f8b3d90274cbef81f50e64f064d892ee608","user":{"login":"lbargaoanu","id":4517428,"avatar_url":"https://avatars.githubusercontent.com/u/4517428?v=3","gravatar_id":"","url":"https://api.github.com/users/lbargaoanu","html_url":"https://github.com/lbargaoanu","followers_url":"https://api.github.com/users/lbargaoanu/followers","following_url":"https://api.github.com/users/lbargaoanu/following{/other_user}","gists_url":"https://api.github.com/users/lbargaoanu/gists{/gist_id}","starred_url":"https://api.github.com/users/lbargaoanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbargaoanu/subscriptions","organizations_url":"https://api.github.com/users/lbargaoanu/orgs","repos_url":"https://api.github.com/users/lbargaoanu/repos","events_url":"https://api.github.com/users/lbargaoanu/events{/privacy}","received_events_url":"https://api.github.com/users/lbargaoanu/received_events","type":"User","site_admin":false},"body":"It's just a static class. I could change the name I suppose.","created_at":"2016-01-15T09:55:50Z","updated_at":"2016-01-15T09:55:50Z","html_url":"https://github.com/AutoFixture/AutoFixture/pull/513#discussion_r49836790","pull_request_url":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/513","_links":{"self":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/comments/49836790"},"html":{"href":"https://github.com/AutoFixture/AutoFixture/pull/513#discussion_r49836790"},"pull_request":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/513"}}},"pull_request":{"url":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/513","id":56148266,"html_url":"https://github.com/AutoFixture/AutoFixture/pull/513","diff_url":"https://github.com/AutoFixture/AutoFixture/pull/513.diff","patch_url":"https://github.com/AutoFixture/AutoFixture/pull/513.patch","issue_url":"https://api.github.com/repos/AutoFixture/AutoFixture/issues/513","number":513,"state":"open","locked":false,"title":"Replace Type.GetTypeCode","user":{"login":"lbargaoanu","id":4517428,"avatar_url":"https://avatars.githubusercontent.com/u/4517428?v=3","gravatar_id":"","url":"https://api.github.com/users/lbargaoanu","html_url":"https://github.com/lbargaoanu","followers_url":"https://api.github.com/users/lbargaoanu/followers","following_url":"https://api.github.com/users/lbargaoanu/following{/other_user}","gists_url":"https://api.github.com/users/lbargaoanu/gists{/gist_id}","starred_url":"https://api.github.com/users/lbargaoanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbargaoanu/subscriptions","organizations_url":"https://api.github.com/users/lbargaoanu/orgs","repos_url":"https://api.github.com/users/lbargaoanu/repos","events_url":"https://api.github.com/users/lbargaoanu/events{/privacy}","received_events_url":"https://api.github.com/users/lbargaoanu/received_events","type":"User","site_admin":false},"body":"The Type extension method GetTypeCode trades an allocation for simpler code.","created_at":"2016-01-15T09:42:33Z","updated_at":"2016-01-15T09:55:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"203f457568652d54dea1b4fffb8a6710d4ab37d4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/513/commits","review_comments_url":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/513/comments","review_comment_url":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AutoFixture/AutoFixture/issues/513/comments","statuses_url":"https://api.github.com/repos/AutoFixture/AutoFixture/statuses/37258f8b3d90274cbef81f50e64f064d892ee608","head":{"label":"lbargaoanu:TypeCode","ref":"TypeCode","sha":"37258f8b3d90274cbef81f50e64f064d892ee608","user":{"login":"lbargaoanu","id":4517428,"avatar_url":"https://avatars.githubusercontent.com/u/4517428?v=3","gravatar_id":"","url":"https://api.github.com/users/lbargaoanu","html_url":"https://github.com/lbargaoanu","followers_url":"https://api.github.com/users/lbargaoanu/followers","following_url":"https://api.github.com/users/lbargaoanu/following{/other_user}","gists_url":"https://api.github.com/users/lbargaoanu/gists{/gist_id}","starred_url":"https://api.github.com/users/lbargaoanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbargaoanu/subscriptions","organizations_url":"https://api.github.com/users/lbargaoanu/orgs","repos_url":"https://api.github.com/users/lbargaoanu/repos","events_url":"https://api.github.com/users/lbargaoanu/events{/privacy}","received_events_url":"https://api.github.com/users/lbargaoanu/received_events","type":"User","site_admin":false},"repo":{"id":48180917,"name":"AutoFixture","full_name":"lbargaoanu/AutoFixture","owner":{"login":"lbargaoanu","id":4517428,"avatar_url":"https://avatars.githubusercontent.com/u/4517428?v=3","gravatar_id":"","url":"https://api.github.com/users/lbargaoanu","html_url":"https://github.com/lbargaoanu","followers_url":"https://api.github.com/users/lbargaoanu/followers","following_url":"https://api.github.com/users/lbargaoanu/following{/other_user}","gists_url":"https://api.github.com/users/lbargaoanu/gists{/gist_id}","starred_url":"https://api.github.com/users/lbargaoanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbargaoanu/subscriptions","organizations_url":"https://api.github.com/users/lbargaoanu/orgs","repos_url":"https://api.github.com/users/lbargaoanu/repos","events_url":"https://api.github.com/users/lbargaoanu/events{/privacy}","received_events_url":"https://api.github.com/users/lbargaoanu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lbargaoanu/AutoFixture","description":"AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximise maintainability.Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.","fork":true,"url":"https://api.github.com/repos/lbargaoanu/AutoFixture","forks_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/forks","keys_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/teams","hooks_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/hooks","issue_events_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/issues/events{/number}","events_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/events","assignees_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/assignees{/user}","branches_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/branches{/branch}","tags_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/tags","blobs_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/git/refs{/sha}","trees_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/statuses/{sha}","languages_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/languages","stargazers_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/stargazers","contributors_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/contributors","subscribers_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/subscribers","subscription_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/subscription","commits_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/commits{/sha}","git_commits_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/git/commits{/sha}","comments_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/comments{/number}","issue_comment_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/issues/comments{/number}","contents_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/contents/{+path}","compare_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/merges","archive_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/downloads","issues_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/issues{/number}","pulls_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/pulls{/number}","milestones_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/milestones{/number}","notifications_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/labels{/name}","releases_url":"https://api.github.com/repos/lbargaoanu/AutoFixture/releases{/id}","created_at":"2015-12-17T15:04:06Z","updated_at":"2015-12-17T15:04:08Z","pushed_at":"2016-01-15T09:39:42Z","git_url":"git://github.com/lbargaoanu/AutoFixture.git","ssh_url":"git@github.com:lbargaoanu/AutoFixture.git","clone_url":"https://github.com/lbargaoanu/AutoFixture.git","svn_url":"https://github.com/lbargaoanu/AutoFixture","homepage":"","size":28534,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"AutoFixture:v4","ref":"v4","sha":"506693a0a24b67212fb37a6d6456ae4a81df3931","user":{"login":"AutoFixture","id":1786815,"avatar_url":"https://avatars.githubusercontent.com/u/1786815?v=3","gravatar_id":"","url":"https://api.github.com/users/AutoFixture","html_url":"https://github.com/AutoFixture","followers_url":"https://api.github.com/users/AutoFixture/followers","following_url":"https://api.github.com/users/AutoFixture/following{/other_user}","gists_url":"https://api.github.com/users/AutoFixture/gists{/gist_id}","starred_url":"https://api.github.com/users/AutoFixture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AutoFixture/subscriptions","organizations_url":"https://api.github.com/users/AutoFixture/orgs","repos_url":"https://api.github.com/users/AutoFixture/repos","events_url":"https://api.github.com/users/AutoFixture/events{/privacy}","received_events_url":"https://api.github.com/users/AutoFixture/received_events","type":"Organization","site_admin":false},"repo":{"id":4475900,"name":"AutoFixture","full_name":"AutoFixture/AutoFixture","owner":{"login":"AutoFixture","id":1786815,"avatar_url":"https://avatars.githubusercontent.com/u/1786815?v=3","gravatar_id":"","url":"https://api.github.com/users/AutoFixture","html_url":"https://github.com/AutoFixture","followers_url":"https://api.github.com/users/AutoFixture/followers","following_url":"https://api.github.com/users/AutoFixture/following{/other_user}","gists_url":"https://api.github.com/users/AutoFixture/gists{/gist_id}","starred_url":"https://api.github.com/users/AutoFixture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AutoFixture/subscriptions","organizations_url":"https://api.github.com/users/AutoFixture/orgs","repos_url":"https://api.github.com/users/AutoFixture/repos","events_url":"https://api.github.com/users/AutoFixture/events{/privacy}","received_events_url":"https://api.github.com/users/AutoFixture/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AutoFixture/AutoFixture","description":"AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximise maintainability.Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.","fork":false,"url":"https://api.github.com/repos/AutoFixture/AutoFixture","forks_url":"https://api.github.com/repos/AutoFixture/AutoFixture/forks","keys_url":"https://api.github.com/repos/AutoFixture/AutoFixture/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AutoFixture/AutoFixture/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AutoFixture/AutoFixture/teams","hooks_url":"https://api.github.com/repos/AutoFixture/AutoFixture/hooks","issue_events_url":"https://api.github.com/repos/AutoFixture/AutoFixture/issues/events{/number}","events_url":"https://api.github.com/repos/AutoFixture/AutoFixture/events","assignees_url":"https://api.github.com/repos/AutoFixture/AutoFixture/assignees{/user}","branches_url":"https://api.github.com/repos/AutoFixture/AutoFixture/branches{/branch}","tags_url":"https://api.github.com/repos/AutoFixture/AutoFixture/tags","blobs_url":"https://api.github.com/repos/AutoFixture/AutoFixture/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AutoFixture/AutoFixture/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AutoFixture/AutoFixture/git/refs{/sha}","trees_url":"https://api.github.com/repos/AutoFixture/AutoFixture/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AutoFixture/AutoFixture/statuses/{sha}","languages_url":"https://api.github.com/repos/AutoFixture/AutoFixture/languages","stargazers_url":"https://api.github.com/repos/AutoFixture/AutoFixture/stargazers","contributors_url":"https://api.github.com/repos/AutoFixture/AutoFixture/contributors","subscribers_url":"https://api.github.com/repos/AutoFixture/AutoFixture/subscribers","subscription_url":"https://api.github.com/repos/AutoFixture/AutoFixture/subscription","commits_url":"https://api.github.com/repos/AutoFixture/AutoFixture/commits{/sha}","git_commits_url":"https://api.github.com/repos/AutoFixture/AutoFixture/git/commits{/sha}","comments_url":"https://api.github.com/repos/AutoFixture/AutoFixture/comments{/number}","issue_comment_url":"https://api.github.com/repos/AutoFixture/AutoFixture/issues/comments{/number}","contents_url":"https://api.github.com/repos/AutoFixture/AutoFixture/contents/{+path}","compare_url":"https://api.github.com/repos/AutoFixture/AutoFixture/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AutoFixture/AutoFixture/merges","archive_url":"https://api.github.com/repos/AutoFixture/AutoFixture/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AutoFixture/AutoFixture/downloads","issues_url":"https://api.github.com/repos/AutoFixture/AutoFixture/issues{/number}","pulls_url":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls{/number}","milestones_url":"https://api.github.com/repos/AutoFixture/AutoFixture/milestones{/number}","notifications_url":"https://api.github.com/repos/AutoFixture/AutoFixture/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AutoFixture/AutoFixture/labels{/name}","releases_url":"https://api.github.com/repos/AutoFixture/AutoFixture/releases{/id}","created_at":"2012-05-29T00:00:02Z","updated_at":"2016-01-13T15:40:50Z","pushed_at":"2016-01-15T09:42:33Z","git_url":"git://github.com/AutoFixture/AutoFixture.git","ssh_url":"git@github.com:AutoFixture/AutoFixture.git","clone_url":"https://github.com/AutoFixture/AutoFixture.git","svn_url":"https://github.com/AutoFixture/AutoFixture","homepage":"","size":36707,"stargazers_count":771,"watchers_count":771,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":133,"mirror_url":null,"open_issues_count":28,"forks":133,"open_issues":28,"watchers":771,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/513"},"html":{"href":"https://github.com/AutoFixture/AutoFixture/pull/513"},"issue":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/issues/513"},"comments":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/issues/513/comments"},"review_comments":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/513/comments"},"review_comment":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/513/commits"},"statuses":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/statuses/37258f8b3d90274cbef81f50e64f064d892ee608"}}}}