> ## Documentation Index
> Fetch the complete documentation index at: https://ancplua.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AL0008 - GetSchema must return null and not be abstract

> GetSchema should return null according to IXmlSerializable guidance

Source: [AL0007ToAL0009IXmlSerializableAnalyzer.cs](https://github.com/ANcpLua/ANcpLua.Analyzers/blob/main/src/ANcpLua.Analyzers/Analyzers/AL0007ToAL0009IXmlSerializableAnalyzer.cs)

## Description

GetSchema should return null according to IXmlSerializable guidance and should not be abstract.

## Bad Code

```csharp theme={null}
XmlSchema? IXmlSerializable.GetSchema() => new XmlSchema();
```

## Good Code

```csharp theme={null}
XmlSchema? IXmlSerializable.GetSchema() => null;
```

## Properties

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

## Configuration

```editorconfig theme={null}
dotnet_diagnostic.AL0008.severity = warning
```
