Topic | Value |
---|---|
Id | GU0050 |
Severity | Warning |
Enabled | True |
Category | Gu.Analyzers.Correctness |
Code | GU0050IgnoreEventsWhenSerializing |
Ignore events when serializing.
ADD MOTIVATION HERE
ADD HOW TO FIX VIOLATIONS HERE
Configure the severity per project, for more info see MSDN.
#pragma warning disable GU0050 // Ignore events when serializing
Code violating the rule here
#pragma warning restore GU0050 // Ignore events when serializing
Or put this at the top of the file to disable all instances.
#pragma warning disable GU0050 // Ignore events when serializing
[System.Diagnostics.CodeAnalysis.SuppressMessage("Gu.Analyzers.Correctness",
"GU0050:Ignore events when serializing",
Justification = "Reason...")]