Exemple #1
0
 public static Args <T> As <T>(this Args args)
 {
     return((Args <T>)args.As(typeof(T)));
 }
Exemple #2
0
 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) }));
 }