using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace JsonRPC4.Router { public static class RpcParameterExtensions { public static bool TryGetValue(this IRpcParameter parameter, out T value) { if (parameter.TryGetValue(typeof(T), out object value2)) { value = (T)value2; return true; } value = default(T); return false; } } }