示例#1
0
        public static RLExcel_ContactsList FromRestList <T>(RestList <T> restList, Func <T, STExcel_ContactsStructure> converter)
        {
            RLExcel_ContactsList result = new RLExcel_ContactsList();

            result.InnerFromRestList(restList, converter);
            return(result);
        }
示例#2
0
        public static RLExcel_ContactsList ToList <T>(T[] array, Func <T, STExcel_ContactsStructure> converter)
        {
            RLExcel_ContactsList result = new RLExcel_ContactsList();

            result.InnerFromArray(array, converter);
            return(result);
        }
示例#3
0
 public static WORCExcel_ContactsRecord[] FromRecordList(RLExcel_ContactsList rl)
 {
     WORCExcel_ContactsRecord[] array = new WORCExcel_ContactsRecord[rl == null ? 0: rl.Length];
     for (int i = 0; i < array.Length; i++)
     {
         array[i] = rl.Data[i];
     }
     return(array);
 }
示例#4
0
 public WORLExcel_ContactsList(RLExcel_ContactsList rl)
 {
     rl    = (RLExcel_ContactsList)rl.Duplicate();
     Array = new WORCExcel_ContactsRecord[rl.Length];
     while (!rl.Eof)
     {
         Array[rl.CurrentRowNumber] = rl.CurrentRec.Duplicate();
         rl.Advance();
     }
 }
示例#5
0
        public static RLExcel_ContactsList ToRecordList(WORCExcel_ContactsRecord[] array)
        {
            RLExcel_ContactsList rl = new RLExcel_ContactsList();

            if (array != null)
            {
                foreach (WORCExcel_ContactsRecord val in array)
                {
                    rl.Append(val);
                }
            }
            return(rl);
        }
示例#6
0
 public static T[] ToArray <T>(RLExcel_ContactsList recordlist, Func <STExcel_ContactsStructure, T> converter)
 {
     return(InnerToArray(recordlist, converter));
 }