Skip to main content
Source: AL0007ToAL0009IXmlSerializableAnalyzer.cs

Description

Calling GetSchema is not supported; it should always return null and isn’t intended to be invoked.

Bad Code

var schema = serializable.GetSchema();

Good Code

Remove the call - GetSchema should never be called.

Properties

  • Category: Usage
  • Severity: Error
  • Enabled by default: True
  • Code fix available: False

Configuration

dotnet_diagnostic.AL0009.severity = warning