A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/SonarSource/sonar-dotnet/issues/3945 below:

Classes not having extra properties should not have to extend ISerializable interface · Issue #3945 · SonarSource/sonar-dotnet · GitHub

Description

Rule S3925 demands that classes should always override ISerializable methods. However, if the class has no extra properties (or fields) this is not necessary, like in this scenario:

public CustomLookup : Dictionary<string, object> // Compliant, no extra fields/properties to serialize
{
}

The rule should not be applied in cases like these.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4