# GenerateSerializerAttribute.IncludePrimaryConstructorParameters

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.generateserializerattribute/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.generateserializerattribute/properties/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization.Abstractions/Annotations.cs)

```csharp
public bool IncludePrimaryConstructorParameters
```

Get or sets if primary constructor parameters should automatically be included as Serializable fields. Defaults to `true` for `record` types, `false` otherwise.
