Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 public static long Long(this BufferedStreamReader reader)
 {
     return(long.Parse(reader.ReadToken(), CultureInfo.InvariantCulture));
 }
Esempio n. 5
0
 public static uint UnsignedInt(this BufferedStreamReader reader)
 {
     return(uint.Parse(reader.ReadToken(), CultureInfo.InvariantCulture));
 }
Esempio n. 6
0
 public static string String(this BufferedStreamReader reader)
 {
     return(reader.ReadToken());
 }
Esempio n. 7
0
 public static decimal Decimal(this BufferedStreamReader reader)
 {
     return(decimal.Parse(reader.ReadToken(), CultureInfo.InvariantCulture));
 }
Esempio n. 8
0
 public static double Double(this BufferedStreamReader reader)
 {
     return(double.Parse(reader.ReadToken(), CultureInfo.InvariantCulture));
 }