コード例 #1
0
ファイル: ProcPage.cs プロジェクト: rwredding/jerrycurl
 public ProcPage(IProjection model, IProjection result)
 {
     this.M       = model?.Cast <TModel>() ?? throw new ArgumentNullException(nameof(model));
     this.R       = result?.Cast <TResult>() ?? throw new ArgumentNullException(nameof(result));
     this.Context = model.Context;
     this.Model   = (TModel)this.M.Attr().Field?.Invoke()?.Value;
 }
コード例 #2
0
 public ProcPage(IProjection model, IProjection result)
 {
     this.M       = model?.Cast <TModel>() ?? throw new ArgumentNullException(nameof(model));
     this.R       = result?.Cast <TResult>() ?? throw new ArgumentNullException(nameof(result));
     this.Context = model.Context;
     this.Model   = (TModel)(this.M.Attr().Data?.Source.Snapshot ?? default);
 }
コード例 #3
0
 public static IEnumerable <IProjection> Vals(this IProjection projection, int batchIndex = -1)
 => projection.Cast <object>().Vals(batchIndex);