Skip to content
Merged
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: 2 additions & 1 deletion docs/Rules/MA0076.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
````csharp
_ = $"abc{-1}"; // non-compliant as the result depends on the current culture

_ = FormattableString.Invariant($"abc{-1}"); // compliant
_ = FormattableString.Invariant($"abc{-1}"); // compliant but will generate MA0111
_ = string.Create(CultureInfo.InvariantCulture, $"abc{-1}"); // compliant
FormattableString str = $"abc{-1}"; // compliant
````

Expand Down
Loading