# GenerateCodeForDeclaringAssemblyAttribute Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.generatecodefordeclaringassemblyattribute/)

## GenerateCodeForDeclaringAssemblyAttribute(Type) {#constructor-system-type-b7ce03ed}

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

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

```csharp
public GenerateCodeForDeclaringAssemblyAttribute(Type type)
```

Initializes a new instance of the [GenerateCodeForDeclaringAssemblyAttribute](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.generatecodefordeclaringassemblyattribute/) class.

### Parameters

- `type` (`Type`): Any type in the assembly which the source generator should inspect and generate source for.
