コード例 #1
0
 /// <summary>
 /// Create a Builder bound to an Enumerable .NET type that an endpoint returns. Use if the root of your KO ViewModel *IS* the .NET type.
 /// <para>NOTE: For strong typing purposes only. As long as it compiles you can transform the expression however you want</para>
 /// </summary>
 /// <typeparam name="TKoModel"></typeparam>
 /// <param name="endpointExpr"></param>
 /// <returns></returns>
 public EnumerableBuilder <TKoModel> Endpoint <TKoModel>(Expression <Func <TApi, IEnumerable <TKoModel> > > endpointExpr)
 {
     return(_webPageBase.KnockoutHelperForEnumerableType <TKoModel>());
 }