# JsonRpcMethodCollection.AddMethod

Kind: Method  
Namespace: `Sisk.JsonRPC`  
Assembly: `Sisk.JsonRPC.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.JsonRPC.JsonRpcMethodCollection.AddMethod.html

## AddMethod(string, Delegate) {#Sisk_JsonRPC_JsonRpcMethodCollection_AddMethod_System_String_System_Delegate_}

Adds a method to the collection with the specified name.

```csharp
public void AddMethod(string name, Delegate method)
```

### Parameters

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name of the method to add.

`method` [Delegate](https://learn.microsoft.com/dotnet/api/system.delegate)

The delegate representing the method to add.
