mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-14 09:52:53 +00:00
Added unit tests, added solution, added travis build
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CryptoExchange.Net
|
||||
{
|
||||
public static class ExtensionMethods
|
||||
{
|
||||
public static void AddParameter(this Dictionary<string, object> parameters, string key, string value)
|
||||
{
|
||||
parameters.Add(key, value);
|
||||
}
|
||||
|
||||
public static void AddParameter(this Dictionary<string, object> parameters, string key, object value)
|
||||
{
|
||||
parameters.Add(key, value);
|
||||
}
|
||||
|
||||
public static void AddOptionalParameter(this Dictionary<string, object> parameters, string key, object value)
|
||||
{
|
||||
if(value != null)
|
||||
parameters.Add(key, value);
|
||||
}
|
||||
|
||||
public static void AddOptionalParameter(this Dictionary<string, string> parameters, string key, string value)
|
||||
{
|
||||
if (value != null)
|
||||
parameters.Add(key, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user