public static int[] IntArray(this BufferedStreamReader reader, int n) { var array = new int[n]; for (int i = 0; i < n; ++i) { array[i] = int.Parse(reader.ReadToken(), CultureInfo.InvariantCulture); } return(array); }
public static string[] StringArray(this BufferedStreamReader reader, int n) { var array = new string[n]; for (int i = 0; i < n; ++i) { array[i] = reader.ReadToken(); } return(array); }
public static decimal[] DecimalArray(this BufferedStreamReader reader, int n) { var array = new decimal[n]; for (int i = 0; i < n; ++i) { array[i] = decimal.Parse(reader.ReadToken(), CultureInfo.InvariantCulture); } return(array); }
public static long Long(this BufferedStreamReader reader) { return(long.Parse(reader.ReadToken(), CultureInfo.InvariantCulture)); }
public static uint UnsignedInt(this BufferedStreamReader reader) { return(uint.Parse(reader.ReadToken(), CultureInfo.InvariantCulture)); }
public static string String(this BufferedStreamReader reader) { return(reader.ReadToken()); }
public static decimal Decimal(this BufferedStreamReader reader) { return(decimal.Parse(reader.ReadToken(), CultureInfo.InvariantCulture)); }
public static double Double(this BufferedStreamReader reader) { return(double.Parse(reader.ReadToken(), CultureInfo.InvariantCulture)); }