public static Args <T> As <T>(this Args args) { return((Args <T>)args.As(typeof(T))); }
public Task <ITableEntity> GetAsync(Type type, Args parameter = null) { return((Task <ITableEntity>) this.GetType().GetMethod(nameof(this.GetEntityAsync), BindingFlags.Instance | BindingFlags.NonPublic).MakeGenericMethod(new[] { type }).Invoke(this, new[] { parameter.As(type) })); }