Description
Implement IXmlSerializable.GetSchema explicitly to avoid exposing it as part of the public API.Bad Code
Good Code
Properties
- Category: Usage
- Severity: Error
- Enabled by default: True
- Code fix available: False
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Implement IXmlSerializable.GetSchema explicitly to avoid exposing it as part of the public API
public XmlSchema? GetSchema() => null;
XmlSchema? IXmlSerializable.GetSchema() => null;
dotnet_diagnostic.AL0007.severity = warning
Was this page helpful?
