Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/z-customer-feedback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ body:
label: Type of issue
options:
- Typo
- Code doesn't work
- Code does not work
- Missing information
- Outdated article
- Thank you
- Other (describe below)
validations:
required: true
- type: textarea
id: feedback
validations:
required: true
attributes:
Expand Down
55 changes: 0 additions & 55 deletions .github/policies/close-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,58 +43,3 @@ configuration:
label: code-of-conduct
then:
- closeIssue

- description: Close learn template issues with empty descriptions. (spam)
if:
- payloadType: Issues
- or:
- bodyContains:
pattern: '### Description[\n\r]+\[Enter feedback here\][\n\r]+###'
isRegex: True
- bodyContains:
pattern: '### Description[\n\r]+\[Escriba sus comentarios aquí\][\n\r]+###'
isRegex: True
- bodyContains:
pattern: '### Description[\n\r]+\[Tapez vos commentaires ici\][\n\r]+###'
isRegex: True
- bodyContains:
pattern: '### Description[\n\r]+\[Hier Feedback eingeben\][\n\r]+###'
isRegex: true
- bodyContains:
pattern: '### Description[\n\r]+\[Geri bildiriminizi buraya girin\][\n\r]+###'
isRegex: True
- bodyContains:
pattern: '### Description[\n\r]+\[Ketikkan umpan balik di sini\][\n\r]+###'
isRegex: True
- bodyContains:
pattern: '### Description[\n\r]+\[Immetti qui i commenti\][\n\r]+###'
isRegex: True
- bodyContains:
pattern: '### Description[\n\r]+\[Voer hier feedback in\][\n\r]+###'
isRegex: True
- bodyContains:
pattern: '### Description[\n\r]+\[Insira comentários aqui\][\n\r]+###'
isRegex: True
- bodyContains:
pattern: '### Description[\n\r]+\[Введите отзыв здесь\][\n\r]+###'
isRegex: True
- bodyContains:
pattern: '### Description[\n\r]+\[اكتب ملاحظاتك هنا\][\n\r]+###'
isRegex: True
- bodyContains:
pattern: '### Description[\n\r]+\[在此处输入反馈\][\n\r]+###'
isRegex: True
- bodyContains:
pattern: '### Description[\n\r]+\[여기에 피드백 입력\][\n\r]+###'
isRegex: True
- bodyContains:
pattern: '### Description[\n\r]+\[フィードバックをこちらに入力してください\][\n\r]+###'
isRegex: True
- bodyContains:
pattern: '### Description[\n\r]+\[Skriv din feedback här\][\n\r]+###'
then:
- addLabel: 'needs-more-info'
- removeLabel: ':watch: Not Triaged'
- addReply:
reply: This issue has been automatically closed due to an empty issue description from the original author. Feel free to reopen it if you have more information that can help us investigate the issue further.
- closeIssue
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ _dependentPackages/
**/.vscode/
.vscode/
!.vscode/extensions.json
*.lscache

# Visual Studio 2019
.vs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ The following table shows the list of possible `target` values.
| `module` | Current assembly module |
| `field` | Field in a class or a struct |
| `event` | Event |
| `method` | Method or `get` and `set` property accessors |
| `method` | Method, constructor (including a primary constructor), or `get` and `set` property accessors |
| `param` | Method parameters or `set` property accessor parameters |
| `property` | Property |
| `return` | Return value of a method, property indexer, or `get` property accessor |
Expand Down
3 changes: 3 additions & 0 deletions docs/csharp/language-reference/attributes/general.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ The `AttributeUsage` attribute determines how a custom attribute class can be us
- Module
- Field
- Event
- Constructor
- Method
- Parameter
- Property
Expand Down Expand Up @@ -134,6 +135,8 @@ In this case, `NonInheritedAttribute` isn't applied to `DClass` via inheritance.

You can also use these keywords to specify where an attribute should be applied. For example, you can use the `field:` specifier to add an attribute to the backing field of an [automatically implemented property](../../programming-guide/classes-and-structs/properties.md#automatically-implemented-properties). Or you can use the `field:`, `property:` or `param:` specifier to apply an attribute to any of the elements generated from a positional record. For an example, see [Positional syntax for property definition](../builtin-types/record.md#positional-syntax-for-property-and-field-definition).

When you apply an attribute to a type with a [primary constructor](../../programming-guide/classes-and-structs/instance-constructors.md#primary-constructors), the attribute is applied to the class. You can specify that it's applied to the constructor by choosing the `method` target, which matches the *Constructor* attribute target.

## `AsyncMethodBuilder` attribute

You add the <xref:System.Runtime.CompilerServices.AsyncMethodBuilderAttribute?displayProperty=nameWithType> attribute to a type that can be an async return type. The attribute specifies the type that builds the async method implementation when the specified type is returned from an async method. The `AsyncMethodBuilder` attribute can be applied to a type that:
Expand Down
Loading