# DefaultInvokeMethodNameAttribute Constructors

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

## DefaultInvokeMethodNameAttribute(Type, string) {#constructor-system-type-string-9a44f242}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.defaultinvokemethodnameattribute/constructors/constructor-system-type-string-9a44f242/)

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

```csharp
public DefaultInvokeMethodNameAttribute(Type returnType, string methodName)
```

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

### Parameters

- `returnType` (`Type`): Type of the return.
- `methodName` (`string`): Name of the method.
