# GenerateSerializerAttribute

Package: [Microsoft.Orleans.Serialization.Abstractions](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Serialization.Abstractions) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization.Abstractions/Annotations.cs#L13)

```csharp
public sealed class GenerateSerializerAttribute : Attribute
```

When applied to a type, specifies that the type is intended to be serialized and that serialization code should be generated for the type.

## See also

- `System.Attribute`

## Constructors

- [GenerateSerializerAttribute](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.generateserializerattribute/constructors/constructor-f7fa7b1d/)

## Properties

- [GenerateFieldIds](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.generateserializerattribute/properties/generatefieldids-6458fecf/)
- [IncludePrimaryConstructorParameters](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.generateserializerattribute/properties/includeprimaryconstructorparameters-bfe59099/)
