예제 #1
0
 public static Lazy <T> LazyLastOrDefault <T>(this IContentQuery <T> contentQuery)
     where T : ContentBase
 {
     contentQuery = contentQuery.Create(new CallExpression(contentQuery.Expression, CallType.LastOrDefault));
     return(new Lazy <T>(() => contentQuery.LastOrDefault()));
 }