public static IList <T> ResultList <T>(this IAncestorResult result, Func <T> objectFactory, ResultListMode?mode = null, Encoding hardwordEncoding = null)
        {
            var m = mode ?? (objectFactory != null ? ResultListMode.Value : ResultListMode.All);

            return((IList <T>)AncestorResultHelper.ResultList(result, typeof(T), objectFactory, m, hardwordEncoding));
        }
        public static IList <Tuple <T1, T2> > ResultList <T1, T2>(this IAncestorResult result, Func <Tuple <T1, T2> > objectFactory = null, ResultListMode?mode = null, Encoding hardwordEncoding = null)
        {
            var m = mode ?? (objectFactory != null ? ResultListMode.Value : ResultListMode.All);

            return((IList <Tuple <T1, T2> >)AncestorResultHelper.ResultList(result, new Type[] { typeof(T1), typeof(T2) }, objectFactory, m, hardwordEncoding));
        }
Esempio n. 3
0
 public List <T> ResultList <T>(Encoding encoding = null) where T : class, new()
 {
     return((List <T>)AncestorResultHelper.ResultList(this, typeof(T), null, ResultListMode.All, encoding));
 }