Пример #1
0
 // rel - fix
 public static T[] ReadArray <T>(this TextFileManager tfm, List <string> anchorTexts, string stopText, int skipLines, int startColumn, int endColumn, int frequency = 1, bool removeEmpty = true)
 {
     return(tfm.ReadArray(anchorTexts, stopText, skipLines, startColumn, endColumn, frequency, removeEmpty).ConvertAll(s => (T)Convert.ChangeType(s, typeof(T))).ToArray());
 }
Пример #2
0
 public static T[] ReadArray <T>(this TextFileManager tfm, int line, string stopText, int startColumn, int endColumn, int frequency = 1, bool removeEmpty = true) => tfm.ReadArray(line, stopText, startColumn, endColumn, frequency, removeEmpty).ConvertAll(s => (T)Convert.ChangeType(s, typeof(T))).ToArray();
Пример #3
0
 public static T[] ReadArray <T>(this TextFileManager tfm, int line, string stopText, int position, int frequency = 1, char[] separators = null, bool removeEmpty = true) => tfm.ReadArray(line, stopText, position, frequency, separators, removeEmpty).ConvertAll(s => (T)Convert.ChangeType(s, typeof(T))).ToArray();