8000 Update xml/System.Diagnostics.CodeAnalysis/FeatureSwitchDefinitionAtt… · dotnet/dotnet-api-docs@cbd5fce · GitHub
[go: up one dir, main page]

Skip to content

Commit cbd5fce

Browse files
Update xml/System.Diagnostics.CodeAnalysis/FeatureSwitchDefinitionAttribute.xml
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
8000
1 parent 431f928 commit cbd5fce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.Diagnostics.CodeAnalysis/FeatureSwitchDefinitionAttribute.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ IL rewriters and compilers can use this attribute to substitute the return value
3636
3737
The value of the feature switch can only be specified at the application level and affects the entire application. It is possible to get into situations where one library that is part of the application requires the feature switch to be turned on, but has no way to communicate this to the application author.
3838
39-
Feature switches complicate unit testing and code sharing since different application configurations may have different values of the feature switch and it's difficult to ensure all code paths work as expected.
39+
Feature switches complicate unit testing and code sharing since different application configurations might have different values of the feature switch, and it's difficult to ensure all code paths work as expected.
4040
4141
It is therefore preferable to structure APIs in a way that trimming can happen naturally without any feature switches. The use of feature switches should be reserved for situations where trimming needs to happen, but it's not feasible to change the APIs to allow trimming naturally.
4242
]]></format>

0 commit comments

Comments
 (0)
0