# GeneratedActivatorConstructorAttribute

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#L536)

```csharp
public sealed class GeneratedActivatorConstructorAttribute : ActivatorUtilitiesConstructorAttribute
```

When applied to a constructor, indicates that generated activator implementations should use that constructor when activating instances.

## Remarks

This attribute can be used to call constructors which require injected dependencies.

## Constructors

- [GeneratedActivatorConstructorAttribute](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.generatedactivatorconstructorattribute/constructors/constructor-e76243a9/)
