You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_NetEscapades.EnumGenerators_ includes optional analyzers that encourage the use of the generated extension methods instead of the built-in `System.Enum` methods. These analyzers can help improve performance by suggesting the faster, generated, alternatives like `ToStringFast()`, `HasFlagFast()`, and `TryParse()`.
348
352
@@ -412,7 +416,8 @@ All usage analyzers include automatic code fixes. When a diagnostic is triggered
412
416
413
417
<!-- endInclude -->
[NetEscapades.EnumGenerators](https://www.nuget.org/packages/NetEscapades.EnumGenerators) is a metapackage that references additional packages for functionality.
418
423
@@ -634,7 +639,8 @@ public void CantIntercept()
634
639
```
635
640
<!--endInclude-->
636
641
637
-
## Preserving usages of the `[EnumExtensions]` attribute<!-- include: preserving-usages. path: /fragments/preserving-usages.include.md -->
## Preserving usages of the `[EnumExtensions]` attribute
638
644
639
645
The `[EnumExtensions]` attributeisdecoratedwiththe `[Conditional]` attribute, [sotheirusagewillnotappearinthebuildoutputofyourproject](https://andrewlock.net/conditional-compilation-for-ignoring-method-calls-with-the-conditionalattribute/#applying-the-conditional-attribute-to-classes). If you use reflection at runtime on one of your `enum`s, you will not find `[EnumExtensions]` in the list of custom attributes. If you wish to preserve these attributes in the build output, you can define the `NETESCAPADES_ENUMGENERATORS_USAGES` MSBuild variable.
_NetEscapades.EnumGenerators_ includes optional analyzers that encourage the use of the generated extension methods instead of the built-in `System.Enum` methods. These analyzers can help improve performance by suggesting the faster, generated, alternatives like `ToStringFast()`, `HasFlagFast()`, and `TryParse()`.
350
354
@@ -414,7 +418,8 @@ All usage analyzers include automatic code fixes. When a diagnostic is triggered
414
418
415
419
<!-- endInclude -->
[NetEscapades.EnumGenerators](https://www.nuget.org/packages/NetEscapades.EnumGenerators) is a metapackage that references additional packages for functionality.
420
425
@@ -636,7 +641,8 @@ public void CantIntercept()
636
641
```
637
642
<!--endInclude-->
638
643
639
-
## Preserving usages of the `[EnumExtensions]` attribute<!-- include: preserving-usages. path: /fragments/preserving-usages.include.md -->
## Preserving usages of the `[EnumExtensions]` attribute
640
646
641
647
The `[EnumExtensions]` attributeisdecoratedwiththe `[Conditional]` attribute, [sotheirusagewillnotappearinthebuildoutputofyourproject](https://andrewlock.net/conditional-compilation-for-ignoring-method-calls-with-the-conditionalattribute/#applying-the-conditional-attribute-to-classes). If you use reflection at runtime on one of your `enum`s, you will not find `[EnumExtensions]` in the list of custom attributes. If you wish to preserve these attributes in the build output, you can define the `NETESCAPADES_ENUMGENERATORS_USAGES` MSBuild variable.
_NetEscapades.EnumGenerators_ includes optional analyzers that encourage the use of the generated extension methods instead of the built-in `System.Enum` methods. These analyzers can help improve performance by suggesting the faster, generated, alternatives like `ToStringFast()`, `HasFlagFast()`, and `TryParse()`.
350
354
@@ -414,7 +418,8 @@ All usage analyzers include automatic code fixes. When a diagnostic is triggered
414
418
415
419
<!-- endInclude -->
[NetEscapades.EnumGenerators](https://www.nuget.org/packages/NetEscapades.EnumGenerators) is a metapackage that references additional packages for functionality.
420
425
@@ -636,7 +641,8 @@ public void CantIntercept()
636
641
```
637
642
<!--endInclude-->
638
643
639
-
## Preserving usages of the `[EnumExtensions]` attribute<!-- include: preserving-usages. path: /fragments/preserving-usages.include.md -->
## Preserving usages of the `[EnumExtensions]` attribute
640
646
641
647
The `[EnumExtensions]` attributeisdecoratedwiththe `[Conditional]` attribute, [sotheirusagewillnotappearinthebuildoutputofyourproject](https://andrewlock.net/conditional-compilation-for-ignoring-method-calls-with-the-conditionalattribute/#applying-the-conditional-attribute-to-classes). If you use reflection at runtime on one of your `enum`s, you will not find `[EnumExtensions]` in the list of custom attributes. If you wish to preserve these attributes in the build output, you can define the `NETESCAPADES_ENUMGENERATORS_USAGES` MSBuild variable.
Copy file name to clipboardExpand all lines: docs/fragments/package-referencing.include.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
1
2
## Package referencing options
2
3
3
4
[NetEscapades.EnumGenerators](https://www.nuget.org/packages/NetEscapades.EnumGenerators) is a metapackage that references additional packages for functionality.
Copy file name to clipboardExpand all lines: docs/fragments/preserving-usages.include.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
1
2
## Preserving usages of the `[EnumExtensions]` attribute
2
3
3
4
The `[EnumExtensions]` attribute is decorated with the `[Conditional]` attribute, [so their usage will not appear in the build output of your project](https://andrewlock.net/conditional-compilation-for-ignoring-method-calls-with-the-conditionalattribute/#applying-the-conditional-attribute-to-classes). If you use reflection at runtime on one of your `enum`s, you will not find `[EnumExtensions]` in the list of custom attributes. If you wish to preserve these attributes in the build output, you can define the `NETESCAPADES_ENUMGENERATORS_USAGES` MSBuild variable.
Copy file name to clipboardExpand all lines: docs/fragments/usage-analyzers.include.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
1
2
## Usage Analyzers
2
3
3
4
_NetEscapades.EnumGenerators_ includes optional analyzers that encourage the use of the generated extension methods instead of the built-in `System.Enum` methods. These analyzers can help improve performance by suggesting the faster, generated, alternatives like `ToStringFast()`, `HasFlagFast()`, and `TryParse()`.
0 commit comments