Skip to content

ORLEANS0006: Static or abstract members cannot be serialized

PropertyValue
CategoryUsage
SeverityError
Code fixNot available

A static or abstract member in a [GenerateSerializer] type is marked with [Id].

The member has no concrete per-instance storage which Orleans can serialize, so the declared schema is invalid.

Remove [Id] from the static or abstract member. Serialize a concrete instance member instead, or make an abstract property concrete when it represents serialized state.

Suppress only for a verified analyzer or compiler mismatch.

[*.cs]
dotnet_diagnostic.ORLEANS0006.severity = none