{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/docs/pulls/comments/203140288","pull_request_review_id":137970573,"id":203140288,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzE0MDI4OA==","diff_hunk":"@@ -36,27 +36,27 @@ To design your own custom attributes, you do not need to master many new concept\n   \n <a name=\"cpconapplyingattributeusageattribute\"></a>   \n ## Applying the AttributeUsageAttribute  \n- A custom attribute declaration begins with the **AttributeUsageAttribute**, which defines some of the key characteristics of your attribute class. For example, you can specify whether your attribute can be inherited by other classes or specify which elements the attribute can be applied to. The following code fragment demonstrates how to use the **AttributeUsageAttribute**.  \n+ A custom attribute declaration begins with the <xref:System.AttributeUsageAttribute?displayProperty=nameWithType>, which defines some of the key characteristics of your attribute class. For example, you can specify whether your attribute can be inherited by other classes or specify which elements the attribute can be applied to. The following code fragment demonstrates how to use the <xref:System.AttributeUsageAttribute>.  \n   \n  [!code-cpp[Conceptual.Attributes.Usage#5](../../../samples/snippets/cpp/VS_Snippets_CLR/conceptual.attributes.usage/cpp/source2.cpp#5)]\n  [!code-csharp[Conceptual.Attributes.Usage#5](../../../samples/snippets/csharp/VS_Snippets_CLR/conceptual.attributes.usage/cs/source2.cs#5)]\n  [!code-vb[Conceptual.Attributes.Usage#5](../../../samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.attributes.usage/vb/source2.vb#5)]  \n   \n- The <xref:System.AttributeUsageAttribute?displayProperty=nameWithType> has three members that are important for the creation of custom attributes: [AttributeTargets](#cpconwritingcustomattributesanchor1), [Inherited](#cpconwritingcustomattributesanchor2), and [AllowMultiple](#cpconwritingcustomattributesanchor3).  \n+ The <xref:System.AttributeUsageAttribute> has three members that are important for the creation of custom attributes: [AttributeTargets](#cpconwritingcustomattributesanchor1), [Inherited](#cpconwritingcustomattributesanchor2), and [AllowMultiple](#cpconwritingcustomattributesanchor3).  \n   \n <a name=\"cpconwritingcustomattributesanchor1\"></a>   \n ### AttributeTargets Member  \n- In the previous example, **AttributeTargets.All** is specified, indicating that this attribute can be applied to all program elements. Alternatively, you can specify **AttributeTargets.Class**, indicating that your attribute can be applied only to a class, or **AttributeTargets.Method**, indicating that your attribute can be applied only to a method. All program elements can be marked for description by a custom attribute in this manner.  \n+ In the previous example, <System.AttributeTargets.All?displayProperty=nameWithType> is specified, indicating that this attribute can be applied to all program elements. Alternatively, you can specify <System.AttributeTargets.Class?displayProperty=nameWithType>, indicating that your attribute can be applied only to a class, or <System.AttributeTargets.Method?displayProperty=nameWithType>, indicating that your attribute can be applied only to a method. All program elements can be marked for description by a custom attribute in this manner.  \n   \n- You can also pass multiple instances of <xref:System.AttributeTargets>. The following code fragment specifies that a custom attribute can be applied to any class or method.  \n+ You can also pass multiple <xref:System.AttributeTargets> values. The following code fragment specifies that a custom attribute can be applied to any class or method.  \n   \n  [!code-cpp[Conceptual.Attributes.Usage#6](../../../samples/snippets/cpp/VS_Snippets_CLR/conceptual.attributes.usage/cpp/source2.cpp#6)]\n  [!code-csharp[Conceptual.Attributes.Usage#6](../../../samples/snippets/csharp/VS_Snippets_CLR/conceptual.attributes.usage/cs/source2.cs#6)]\n  [!code-vb[Conceptual.Attributes.Usage#6](../../../samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.attributes.usage/vb/source2.vb#6)]  \n   \n <a name=\"cpconwritingcustomattributesanchor2\"></a>   \n ### Inherited Property  \n- The <xref:System.AttributeUsageAttribute.Inherited%2A?displayProperty=nameWithType> property indicates whether your attribute can be inherited by classes that are derived from the classes to which your attribute is applied. This property takes either a **true** (the default) or **false** flag. For example, in the following example, `MyAttribute` has a default <xref:System.AttributeUsageAttribute.Inherited%2A> value of **true**, while `YourAttribute` has an <xref:System.AttributeUsageAttribute.Inherited%2A> value of **false**.  \n+ The <xref:System.AttributeUsageAttribute.Inherited%2A?displayProperty=nameWithType> property indicates whether your attribute can be inherited by classes that are derived from the classes to which your attribute is applied. This property takes either a `true` (the default) or `false` flag. For example, in the following example, `MyAttribute` has a default <xref:System.AttributeUsageAttribute.Inherited%2A> value of `true`, while `YourAttribute` has an <xref:System.AttributeUsageAttribute.Inherited%2A> value of `false`.  ","path":"docs/standard/attributes/writing-custom-attributes.md","position":37,"original_position":37,"commit_id":"1dfcacd1d79083fd454ee9d647e7456e51247eed","original_commit_id":"1dfcacd1d79083fd454ee9d647e7456e51247eed","user":{"login":"mairaw","id":12971179,"node_id":"MDQ6VXNlcjEyOTcxMTc5","avatar_url":"https://avatars2.githubusercontent.com/u/12971179?v=4","gravatar_id":"","url":"https://api.github.com/users/mairaw","html_url":"https://github.com/mairaw","followers_url":"https://api.github.com/users/mairaw/followers","following_url":"https://api.github.com/users/mairaw/following{/other_user}","gists_url":"https://api.github.com/users/mairaw/gists{/gist_id}","starred_url":"https://api.github.com/users/mairaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mairaw/subscriptions","organizations_url":"https://api.github.com/users/mairaw/orgs","repos_url":"https://api.github.com/users/mairaw/repos","events_url":"https://api.github.com/users/mairaw/events{/privacy}","received_events_url":"https://api.github.com/users/mairaw/received_events","type":"User","site_admin":false},"body":"not related to your PR: For example, in the following example is a bit repetitive. Perhaps in the following code?","created_at":"2018-07-17T18:53:48Z","updated_at":"2018-07-17T18:58:38Z","html_url":"https://github.com/dotnet/docs/pull/6508#discussion_r203140288","pull_request_url":"https://api.github.com/repos/dotnet/docs/pulls/6508","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/dotnet/docs/pulls/comments/203140288"},"html":{"href":"https://github.com/dotnet/docs/pull/6508#discussion_r203140288"},"pull_request":{"href":"https://api.github.com/repos/dotnet/docs/pulls/6508"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/docs/pulls/6508","id":202032064,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyMDMyMDY0","html_url":"https://github.com/dotnet/docs/pull/6508","diff_url":"https://github.com/dotnet/docs/pull/6508.diff","patch_url":"https://github.com/dotnet/docs/pull/6508.patch","issue_url":"https://api.github.com/repos/dotnet/docs/issues/6508","number":6508,"state":"open","locked":false,"title":"Corrected erroneous sentence","user":{"login":"rpetrusha","id":10886961,"node_id":"MDQ6VXNlcjEwODg2OTYx","avatar_url":"https://avatars2.githubusercontent.com/u/10886961?v=4","gravatar_id":"","url":"https://api.github.com/users/rpetrusha","html_url":"https://github.com/rpetrusha","followers_url":"https://api.github.com/users/rpetrusha/followers","following_url":"https://api.github.com/users/rpetrusha/following{/other_user}","gists_url":"https://api.github.com/users/rpetrusha/gists{/gist_id}","starred_url":"https://api.github.com/users/rpetrusha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpetrusha/subscriptions","organizations_url":"https://api.github.com/users/rpetrusha/orgs","repos_url":"https://api.github.com/users/rpetrusha/repos","events_url":"https://api.github.com/users/rpetrusha/events{/privacy}","received_events_url":"https://api.github.com/users/rpetrusha/received_events","type":"User","site_admin":false},"body":"## Corrected erroneous sentence\r\n\r\nThis PR:\r\n- Corrects an erroneous sentence about constructor assignments (an argument is assigned to a member variable, not vice versa).\r\n- Replaces bolded type/member names with xrefs.\r\n- Replaces boldfaced with fenced `true` and `false`.\r\n \r\nFixes #6427","created_at":"2018-07-17T18:37:17Z","updated_at":"2018-07-17T18:58:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a03d6bd2c025c4c9a716b1c2a742ebe948e2465","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/docs/pulls/6508/commits","review_comments_url":"https://api.github.com/repos/dotnet/docs/pulls/6508/comments","review_comment_url":"https://api.github.com/repos/dotnet/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/docs/issues/6508/comments","statuses_url":"https://api.github.com/repos/dotnet/docs/statuses/1dfcacd1d79083fd454ee9d647e7456e51247eed","head":{"label":"rpetrusha:attrib","ref":"attrib","sha":"1dfcacd1d79083fd454ee9d647e7456e51247eed","user":{"login":"rpetrusha","id":10886961,"node_id":"MDQ6VXNlcjEwODg2OTYx","avatar_url":"https://avatars2.githubusercontent.com/u/10886961?v=4","gravatar_id":"","url":"https://api.github.com/users/rpetrusha","html_url":"https://github.com/rpetrusha","followers_url":"https://api.github.com/users/rpetrusha/followers","following_url":"https://api.github.com/users/rpetrusha/following{/other_user}","gists_url":"https://api.github.com/users/rpetrusha/gists{/gist_id}","starred_url":"https://api.github.com/users/rpetrusha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpetrusha/subscriptions","organizations_url":"https://api.github.com/users/rpetrusha/orgs","repos_url":"https://api.github.com/users/rpetrusha/repos","events_url":"https://api.github.com/users/rpetrusha/events{/privacy}","received_events_url":"https://api.github.com/users/rpetrusha/received_events","type":"User","site_admin":false},"repo":{"id":73105712,"node_id":"MDEwOlJlcG9zaXRvcnk3MzEwNTcxMg==","name":"docs","full_name":"rpetrusha/docs","owner":{"login":"rpetrusha","id":10886961,"node_id":"MDQ6VXNlcjEwODg2OTYx","avatar_url":"https://avatars2.githubusercontent.com/u/10886961?v=4","gravatar_id":"","url":"https://api.github.com/users/rpetrusha","html_url":"https://github.com/rpetrusha","followers_url":"https://api.github.com/users/rpetrusha/followers","following_url":"https://api.github.com/users/rpetrusha/following{/other_user}","gists_url":"https://api.github.com/users/rpetrusha/gists{/gist_id}","starred_url":"https://api.github.com/users/rpetrusha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpetrusha/subscriptions","organizations_url":"https://api.github.com/users/rpetrusha/orgs","repos_url":"https://api.github.com/users/rpetrusha/repos","events_url":"https://api.github.com/users/rpetrusha/events{/privacy}","received_events_url":"https://api.github.com/users/rpetrusha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rpetrusha/docs","description":"This repository contains .NET Documentation.","fork":true,"url":"https://api.github.com/repos/rpetrusha/docs","forks_url":"https://api.github.com/repos/rpetrusha/docs/forks","keys_url":"https://api.github.com/repos/rpetrusha/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rpetrusha/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rpetrusha/docs/teams","hooks_url":"https://api.github.com/repos/rpetrusha/docs/hooks","issue_events_url":"https://api.github.com/repos/rpetrusha/docs/issues/events{/number}","events_url":"https://api.github.com/repos/rpetrusha/docs/events","assignees_url":"https://api.github.com/repos/rpetrusha/docs/assignees{/user}","branches_url":"https://api.github.com/repos/rpetrusha/docs/branches{/branch}","tags_url":"https://api.github.com/repos/rpetrusha/docs/tags","blobs_url":"https://api.github.com/repos/rpetrusha/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rpetrusha/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rpetrusha/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/rpetrusha/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rpetrusha/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/rpetrusha/docs/languages","stargazers_url":"https://api.github.com/repos/rpetrusha/docs/stargazers","contributors_url":"https://api.github.com/repos/rpetrusha/docs/contributors","subscribers_url":"https://api.github.com/repos/rpetrusha/docs/subscribers","subscription_url":"https://api.github.com/repos/rpetrusha/docs/subscription","commits_url":"https://api.github.com/repos/rpetrusha/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/rpetrusha/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/rpetrusha/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/rpetrusha/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/rpetrusha/docs/contents/{+path}","compare_url":"https://api.github.com/repos/rpetrusha/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rpetrusha/docs/merges","archive_url":"https://api.github.com/repos/rpetrusha/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rpetrusha/docs/downloads","issues_url":"https://api.github.com/repos/rpetrusha/docs/issues{/number}","pulls_url":"https://api.github.com/repos/rpetrusha/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/rpetrusha/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/rpetrusha/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rpetrusha/docs/labels{/name}","releases_url":"https://api.github.com/repos/rpetrusha/docs/releases{/id}","deployments_url":"https://api.github.com/repos/rpetrusha/docs/deployments","created_at":"2016-11-07T17:56:06Z","updated_at":"2018-07-17T18:18:16Z","pushed_at":"2018-07-17T18:33:07Z","git_url":"git://github.com/rpetrusha/docs.git","ssh_url":"git@github.com:rpetrusha/docs.git","clone_url":"https://github.com/rpetrusha/docs.git","svn_url":"https://github.com/rpetrusha/docs","homepage":"https://docs.microsoft.com/dotnet","size":269783,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:master","ref":"master","sha":"735db8569fa045f62db2736c00aa6a33af20c99a","user":{"login":"dotnet","id":9141961,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxNDE5NjE=","avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":35890081,"node_id":"MDEwOlJlcG9zaXRvcnkzNTg5MDA4MQ==","name":"docs","full_name":"dotnet/docs","owner":{"login":"dotnet","id":9141961,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxNDE5NjE=","avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/docs","description":"This repository contains .NET Documentation.","fork":false,"url":"https://api.github.com/repos/dotnet/docs","forks_url":"https://api.github.com/repos/dotnet/docs/forks","keys_url":"https://api.github.com/repos/dotnet/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/docs/teams","hooks_url":"https://api.github.com/repos/dotnet/docs/hooks","issue_events_url":"https://api.github.com/repos/dotnet/docs/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/docs/events","assignees_url":"https://api.github.com/repos/dotnet/docs/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/docs/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/docs/tags","blobs_url":"https://api.github.com/repos/dotnet/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/docs/languages","stargazers_url":"https://api.github.com/repos/dotnet/docs/stargazers","contributors_url":"https://api.github.com/repos/dotnet/docs/contributors","subscribers_url":"https://api.github.com/repos/dotnet/docs/subscribers","subscription_url":"https://api.github.com/repos/dotnet/docs/subscription","commits_url":"https://api.github.com/repos/dotnet/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/docs/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/docs/merges","archive_url":"https://api.github.com/repos/dotnet/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/docs/downloads","issues_url":"https://api.github.com/repos/dotnet/docs/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/docs/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/docs/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/docs/deployments","created_at":"2015-05-19T15:13:32Z","updated_at":"2018-07-17T17:59:47Z","pushed_at":"2018-07-17T18:37:17Z","git_url":"git://github.com/dotnet/docs.git","ssh_url":"git@github.com:dotnet/docs.git","clone_url":"https://github.com/dotnet/docs.git","svn_url":"https://github.com/dotnet/docs","homepage":"https://docs.microsoft.com/dotnet","size":530085,"stargazers_count":1180,"watchers_count":1180,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2541,"mirror_url":null,"archived":false,"open_issues_count":728,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2541,"open_issues":728,"watchers":1180,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/docs/pulls/6508"},"html":{"href":"https://github.com/dotnet/docs/pull/6508"},"issue":{"href":"https://api.github.com/repos/dotnet/docs/issues/6508"},"comments":{"href":"https://api.github.com/repos/dotnet/docs/issues/6508/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/docs/pulls/6508/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/docs/pulls/6508/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/docs/statuses/1dfcacd1d79083fd454ee9d647e7456e51247eed"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mairaw"}}