# GenerateCodeForDeclaringAssemblyAttribute

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

```csharp
public sealed class GenerateCodeForDeclaringAssemblyAttribute : Attribute
```

Indicates that the source generator should also inspect and generate code for the assembly containing the specified type.

## See also

- `System.Attribute`

## Constructors

- [GenerateCodeForDeclaringAssemblyAttribute(Type)](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.generatecodefordeclaringassemblyattribute/constructors/constructor-system-type-b7ce03ed/)

## Properties

- [Type](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.generatecodefordeclaringassemblyattribute/properties/type-eb6f9f04/)
