From 31d91d2036e6f40fc4af1b4edb9aaa7ab07a85fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Thu, 2 Apr 2020 23:53:30 +0700 Subject: [PATCH 001/102] closes #28 Utils --- NETMouse - .NET release/Utils/Array.Input.cs | 1124 ++++++++++++++++-- NETMouse - .NET release/Utils/Base.Input.cs | 47 +- 2 files changed, 1027 insertions(+), 144 deletions(-) diff --git a/NETMouse - .NET release/Utils/Array.Input.cs b/NETMouse - .NET release/Utils/Array.Input.cs index 76e196c..51ba7b4 100644 --- a/NETMouse - .NET release/Utils/Array.Input.cs +++ b/NETMouse - .NET release/Utils/Array.Input.cs @@ -1,5 +1,6 @@ using ABCNET.Extensions; using System; +using System.Numerics; namespace ABCNET.Utils { @@ -9,6 +10,7 @@ namespace ABCNET.Utils public static partial class Array { #region public + /// /// Читает массив значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -36,6 +38,60 @@ public static bool[] ReadBoolean(int count, string prompt = EmptyStringHelper.Em return array; } + /// + /// Читает массив значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static byte[] ReadByte(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + byte[] array = new byte[count]; + int i = 0; + while (i < count) + try + { + array[i] = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + return array; + } + + /// + /// Читает массив значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static sbyte[] ReadSbyte(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + sbyte[] array = new sbyte[count]; + int i = 0; + while (i < count) + try + { + array[i] = Base.ReadSbyte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + return array; + } + /// /// Читает массив значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -48,271 +104,898 @@ public static char[] ReadChar(int count, string prompt = EmptyStringHelper.Empty throw new ArgumentOutOfRangeException(nameof(count)); char[] array = new char[count]; - for (int i = 0; i < count; i++) - array[i] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + int i = 0; + while (i < count) + try + { + array[i] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + return array; + } + + /// + /// Читает массив значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static decimal[] ReadDecimal(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + decimal[] array = new decimal[count]; + int i = 0; + while (i < count) + try + { + array[i] = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + return array; + } + + /// + /// Читает массив значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static double[] ReadDouble(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + double[] array = new double[count]; + int i = 0; + while (i < count) + try + { + array[i] = Base.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + return array; + } + + /// + /// Читает массив значений типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static float[] ReadFloat(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + float[] array = new float[count]; + int i = 0; + while (i < count) + try + { + array[i] = Base.ReadFloat(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + return array; + } + + /// + /// Читает массив значений типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static int[] ReadInt(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + int[] array = new int[count]; + int i = 0; + while (i < count) + try + { + array[i] = Base.ReadInt(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + return array; + } + + /// + /// Читает массив значений типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static uint[] ReadUint(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + uint[] array = new uint[count]; + int i = 0; + while (i < count) + try + { + array[i] = Base.ReadUint(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + return array; + } + + /// + /// Читает массив значений типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static long[] ReadLong(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + long[] array = new long[count]; + int i = 0; + while (i < count) + try + { + array[i] = Base.ReadLong(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + return array; + } + + /// + /// Читает массив значений типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static ulong[] ReadUlong(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + ulong[] array = new ulong[count]; + int i = 0; + while (i < count) + try + { + array[i] = Base.ReadUlong(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } return array; } /// - /// Читает массив значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static short[] ReadShort(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + short[] array = new short[count]; + int i = 0; + while (i < count) + try + { + array[i] = Base.ReadShort(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + return array; + } + + /// + /// Читает массив значений типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static ushort[] ReadUshort(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + ushort[] array = new ushort[count]; + int i = 0; + while (i < count) + try + { + array[i] = Base.ReadUshort(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + return array; + } + + /// + /// Читает массив значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static BigInteger[] ReadBigInteger(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + BigInteger[] array = new BigInteger[count]; + int i = 0; + while (i < count) + try + { + array[i] = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + return array; + } + + + /// + /// Читает массив значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static string[] ReadString(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + string[] array = new string[count]; + for (int i = 0; i < count; i++) + array[i] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + return array; + } + + /// + /// Заполняет 2 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple2(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Заполняет 2 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple2(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count)); + } + + /// + /// Заполняет 2 массива значениями типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSbyteTuple2(int count) + { + return Tuple.Of(ReadSbyte(count), ReadSbyte(count)); + } + + /// + /// Заполняет 2 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple2(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count)); + } + + /// + /// Заполняет 2 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple2(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Заполняет 2 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple2(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count)); + } + + /// + /// Заполняет 2 массива значениями типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadFloatTuple2(int count) + { + return Tuple.Of(ReadFloat(count), ReadFloat(count)); + } + + /// + /// Заполняет 2 массива значениями типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadIntTuple2(int count) + { + return Tuple.Of(ReadInt(count), ReadInt(count)); + } + + /// + /// Заполняет 2 массива значениями типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUintTuple2(int count) + { + return Tuple.Of(ReadUint(count), ReadUint(count)); + } + + /// + /// Заполняет 2 массива значениями типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadLongTuple2(int count) + { + return Tuple.Of(ReadLong(count), ReadLong(count)); + } + + /// + /// Заполняет 2 массива значениями типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUlongTuple2(int count) + { + return Tuple.Of(ReadUlong(count), ReadUlong(count)); + } + + /// + /// Заполняет 2 массива значениями типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadShortTuple2(int count) + { + return Tuple.Of(ReadShort(count), ReadShort(count)); + } + + /// + /// Заполняет 2 массива значениями типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUshortTuple2(int count) + { + return Tuple.Of(ReadUshort(count), ReadUshort(count)); + } + + /// + /// Заполняет 2 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple2(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count)); + } + + /// + /// Заполняет 2 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadStringTuple2(int count) + { + return Tuple.Of(ReadString(count), ReadString(count)); + } + + + /// + /// Заполняет 3 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple3(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Заполняет 3 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple3(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Заполняет 3 массива значениями типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSbyteTuple3(int count) + { + return Tuple.Of(ReadSbyte(count), ReadSbyte(count), ReadSbyte(count)); + } + + /// + /// Заполняет 3 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple3(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Заполняет 3 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple3(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Заполняет 3 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple3(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Заполняет 3 массива значениями типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadFloatTuple3(int count) + { + return Tuple.Of(ReadFloat(count), ReadFloat(count), ReadFloat(count)); + } + + /// + /// Заполняет 3 массива значениями типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadIntTuple3(int count) + { + return Tuple.Of(ReadInt(count), ReadInt(count), ReadInt(count)); + } + + /// + /// Заполняет 3 массива значениями типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUintTuple3(int count) + { + return Tuple.Of(ReadUint(count), ReadUint(count), ReadUint(count)); + } + + /// + /// Заполняет 3 массива значениями типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadLongTuple3(int count) + { + return Tuple.Of(ReadLong(count), ReadLong(count), ReadLong(count)); + } + + /// + /// Заполняет 3 массива значениями типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUlongTuple3(int count) + { + return Tuple.Of(ReadUlong(count), ReadUlong(count), ReadUlong(count)); + } + + /// + /// Заполняет 3 массива значениями типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadShortTuple3(int count) + { + return Tuple.Of(ReadShort(count), ReadShort(count), ReadShort(count)); + } + + /// + /// Заполняет 3 массива значениями типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUshortTuple3(int count) + { + return Tuple.Of(ReadUshort(count), ReadUshort(count), ReadUshort(count)); + } + + /// + /// Заполняет 3 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple3(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + /// + /// Заполняет 3 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadStringTuple3(int count) + { + return Tuple.Of(ReadString(count), ReadString(count), ReadString(count)); + } + + /// + /// Заполняет 4 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple4(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Заполняет 4 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple4(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Заполняет 4 массива значениями типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSbyteTuple4(int count) + { + return Tuple.Of(ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count)); + } + + /// + /// Заполняет 4 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple4(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Заполняет 4 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple4(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Заполняет 4 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple4(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Заполняет 4 массива значениями типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadFloatTuple4(int count) + { + return Tuple.Of(ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count)); + } + + /// + /// Заполняет 4 массива значениями типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// - /// Количество элементов. - /// Приглашение к вводу. - /// Массив. - public static double[] ReadDouble(int count, string prompt = EmptyStringHelper.Empty) + /// Размер массива. + /// Кортеж. + public static Tuple ReadIntTuple4(int count) { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - double[] array = new double[count]; - int i = 0; - while (i < count) - try - { - array[i] = Base.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - - return array; + return Tuple.Of(ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count)); } /// - /// Читает массив значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 4 массива значениями типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// - /// Количество элементов. - /// Приглашение к вводу. - /// Массив. - public static int[] ReadInt32(int count, string prompt = EmptyStringHelper.Empty) + /// Размер массива. + /// Кортеж. + public static Tuple ReadUintTuple4(int count) { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - int[] array = new int[count]; - int i = 0; - while (i < count) - try - { - array[i] = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - - return array; + return Tuple.Of(ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count)); } /// - /// Читает массив значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 4 массива значениями типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// - /// Количество элементов. - /// Приглашение к вводу. - /// Массив. - public static string[] ReadString(int count, string prompt = EmptyStringHelper.Empty) + /// Размер массива. + /// Кортеж. + public static Tuple ReadLongTuple4(int count) { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - string[] array = new string[count]; - for (int i = 0; i < count; i++) - array[i] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - return array; + return Tuple.Of(ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count)); } /// - /// Заполняет 2 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 4 массива значениями типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadBooleanTuple2(int count) + public static Tuple ReadUlongTuple4(int count) { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count)); + return Tuple.Of(ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count)); } /// - /// Заполняет 2 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 4 массива значениями типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadCharTuple2(int count) + public static Tuple ReadShortTuple4(int count) { - return Tuple.Of(ReadChar(count), ReadChar(count)); + return Tuple.Of(ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count)); } /// - /// Заполняет 2 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 4 массива значениями типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadInt32Tuple2(int count) + public static Tuple ReadUshortTuple4(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count)); + return Tuple.Of(ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count)); } /// - /// Заполняет 2 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 4 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadDoubleTuple2(int count) + public static Tuple ReadBigIntegerTuple4(int count) { - return Tuple.Of(ReadDouble(count), ReadDouble(count)); + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); } /// - /// Заполняет 2 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 4 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadStringTuple2(int count) + public static Tuple ReadStringTuple4(int count) { - return Tuple.Of(ReadString(count), ReadString(count)); + return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count)); } /// - /// Заполняет 3 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadBooleanTuple3(int count) + public static Tuple ReadBooleanTuple5(int count) { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } /// - /// Заполняет 3 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadCharTuple3(int count) + public static Tuple ReadByteTuple5(int count) { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count)); + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); } /// - /// Заполняет 3 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массива значениями типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadInt32Tuple3(int count) + public static Tuple ReadSbyteTuple5(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count)); + return Tuple.Of(ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count)); } /// - /// Заполняет 3 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadDoubleTuple3(int count) + public static Tuple ReadCharTuple5(int count) { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count)); + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); } /// - /// Заполняет 3 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadStringTuple3(int count) + public static Tuple ReadDecimalTuple5(int count) { - return Tuple.Of(ReadString(count), ReadString(count), ReadString(count)); + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); } /// - /// Заполняет 4 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadBooleanTuple4(int count) + public static Tuple ReadDoubleTuple5(int count) { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); } /// - /// Заполняет 4 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массива значениями типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadCharTuple4(int count) + public static Tuple ReadFloatTuple5(int count) { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + return Tuple.Of(ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count)); } /// - /// Заполняет 4 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массива значениями типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadInt32Tuple4(int count) + public static Tuple ReadIntTuple5(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + return Tuple.Of(ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count)); } /// - /// Заполняет 4 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массива значениями типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadDoubleTuple4(int count) + public static Tuple ReadUintTuple5(int count) { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + return Tuple.Of(ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count)); } /// - /// Заполняет 4 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массива значениями типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadStringTuple4(int count) + public static Tuple ReadLongTuple5(int count) { - return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count)); + return Tuple.Of(ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count)); } /// - /// Заполняет 5 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массива значениями типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadBooleanTuple5(int count) + public static Tuple ReadUlongTuple5(int count) { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + return Tuple.Of(ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count)); } /// - /// Заполняет 5 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массива значениями типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadCharTuple5(int count) + public static Tuple ReadShortTuple5(int count) { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + return Tuple.Of(ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count)); } /// - /// Заполняет 5 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массива значениями типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadInt32Tuple5(int count) + public static Tuple ReadUshortTuple5(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + return Tuple.Of(ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count)); } /// - /// Заполняет 5 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadDoubleTuple5(int count) + public static Tuple ReadBigIntegerTuple5(int count) { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); } /// @@ -335,6 +1018,26 @@ public static Tuple ReadBooleanT return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } + /// + /// Заполняет 6 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple6(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Заполняет 6 массива значениями типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSbyteTuple6(int count) + { + return Tuple.Of(ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count)); + } + /// /// Заполняет 6 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -346,13 +1049,13 @@ public static Tuple ReadCharTupl } /// - /// Заполняет 6 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 6 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadInt32Tuple6(int count) + public static Tuple ReadDecimalTuple6(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); } /// @@ -365,6 +1068,85 @@ public static Tuple return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); } + /// + /// Заполняет 6 массива значениями типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadFloatTuple6(int count) + { + return Tuple.Of(ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count)); + } + + /// + /// Заполняет 6 массива значениями типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadIntTuple6(int count) + { + return Tuple.Of(ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count)); + } + + /// + /// Заполняет 6 массива значениями типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUintTuple6(int count) + { + return Tuple.Of(ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count)); + } + + /// + /// Заполняет 6 массива значениями типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadLongTuple6(int count) + { + return Tuple.Of(ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count)); + } + + /// + /// Заполняет 6 массива значениями типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUlongTuple6(int count) + { + return Tuple.Of(ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count)); + } + /// + /// Заполняет 6 массива значениями типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadShortTuple6(int count) + { + return Tuple.Of(ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count)); + } + + /// + /// Заполняет 6 массива значениями типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUshortTuple6(int count) + { + return Tuple.Of(ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count)); + } + + /// + /// Заполняет 6 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple6(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + /// /// Заполняет 6 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -385,6 +1167,26 @@ public static Tuple Read return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } + /// + /// Заполняет 7 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple7(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Заполняет 7 массива значениями типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSbyteTuple7(int count) + { + return Tuple.Of(ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count)); + } + /// /// Заполняет 7 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -396,13 +1198,13 @@ public static Tuple Read } /// - /// Заполняет 7 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 7 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadInt32Tuple7(int count) + public static Tuple ReadDecimalTuple7(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); } /// @@ -415,6 +1217,85 @@ public static Tuple + /// Заполняет 7 массива значениями типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadFloatTuple7(int count) + { + return Tuple.Of(ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count)); + } + + /// + /// Заполняет 7 массива значениями типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadIntTuple7(int count) + { + return Tuple.Of(ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count)); + } + /// + /// Заполняет 7 массива значениями типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUintTuple7(int count) + { + return Tuple.Of(ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count)); + } + + /// + /// Заполняет 7 массива значениями типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadLongTuple7(int count) + { + return Tuple.Of(ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count)); + } + + /// + /// Заполняет 7 массива значениями типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUlongTuple7(int count) + { + return Tuple.Of(ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count)); + } + + /// + /// Заполняет 7 массива значениями типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadShortTuple7(int count) + { + return Tuple.Of(ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count)); + } + + /// + /// Заполняет 7 массива значениями типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUshortTuple7(int count) + { + return Tuple.Of(ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count)); + } + + /// + /// Заполняет 7 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple7(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + /// /// Заполняет 7 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -424,6 +1305,7 @@ public static Tuple /// Boolean. [ IDE PascalABC.NET.] /// @@ -33,11 +34,11 @@ public static byte ReadByte(string prompt = EmptyStringHelper.Empty) } /// - /// SByte. [ IDE PascalABC.NET.] + /// Sbyte. [ IDE PascalABC.NET.] /// /// . /// . - public static sbyte ReadSByte(string prompt = EmptyStringHelper.Empty) + public static sbyte ReadSbyte(string prompt = EmptyStringHelper.Empty) { prompt.Print(); return sbyte.Parse(Console.ReadLine()); @@ -51,7 +52,7 @@ public static sbyte ReadSByte(string prompt = EmptyStringHelper.Empty) public static char ReadChar(string prompt = EmptyStringHelper.Empty) { prompt.Print(); - return Console.ReadKey().KeyChar; + return char.Parse(Console.ReadLine()); } /// @@ -77,102 +78,102 @@ public static double ReadDouble(string prompt = EmptyStringHelper.Empty) } /// - /// Single. [ IDE PascalABC.NET.] + /// Float. [ IDE PascalABC.NET.] /// /// . /// . - public static float ReadSingle(string prompt = EmptyStringHelper.Empty) + public static float ReadFloat(string prompt = EmptyStringHelper.Empty) { prompt.Print(); return float.Parse(Console.ReadLine()); } /// - /// Int32. [ IDE PascalABC.NET.] + /// Int. [ IDE PascalABC.NET.] /// /// . /// . - public static int ReadInt32(string prompt = EmptyStringHelper.Empty) + public static int ReadInt(string prompt = EmptyStringHelper.Empty) { prompt.Print(); return int.Parse(Console.ReadLine()); } /// - /// UInt32. [ IDE PascalABC.NET.] + /// Uint. [ IDE PascalABC.NET.] /// /// . /// . - public static uint ReadUInt32(string prompt = EmptyStringHelper.Empty) + public static uint ReadUint(string prompt = EmptyStringHelper.Empty) { prompt.Print(); return uint.Parse(Console.ReadLine()); } /// - /// Int64. [ IDE PascalABC.NET.] + /// Long. [ IDE PascalABC.NET.] /// /// . /// . - public static long ReadInt64(string prompt = EmptyStringHelper.Empty) + public static long ReadLong(string prompt = EmptyStringHelper.Empty) { prompt.Print(); return long.Parse(Console.ReadLine()); } /// - /// UInt64. [ IDE PascalABC.NET.] + /// Ulong. [ IDE PascalABC.NET.] /// /// . /// . - public static ulong ReadUInt64(string prompt = EmptyStringHelper.Empty) + public static ulong ReadUlong(string prompt = EmptyStringHelper.Empty) { prompt.Print(); return ulong.Parse(Console.ReadLine()); } /// - /// Int16. [ IDE PascalABC.NET.] + /// Short. [ IDE PascalABC.NET.] /// /// . /// . - public static short ReadInt16(string prompt = EmptyStringHelper.Empty) + public static short ReadShort(string prompt = EmptyStringHelper.Empty) { prompt.Print(); return short.Parse(Console.ReadLine()); } /// - /// UInt16. [ IDE PascalABC.NET.] + /// Ushort. [ IDE PascalABC.NET.] /// /// . /// . - public static ushort ReadUInt16(string prompt = EmptyStringHelper.Empty) + public static ushort ReadUshort(string prompt = EmptyStringHelper.Empty) { prompt.Print(); return ushort.Parse(Console.ReadLine()); } /// - /// String. [ IDE PascalABC.NET.] + /// BigInteger. [ IDE PascalABC.NET.] /// /// . /// . - public static string ReadString(string prompt = EmptyStringHelper.Empty) + public static BigInteger ReadBigInteger(string prompt = EmptyStringHelper.Empty) { prompt.Print(); - return Console.ReadLine(); + return BigInteger.Parse(Console.ReadLine()); } /// - /// BigInteger. [ IDE PascalABC.NET.] + /// String. [ IDE PascalABC.NET.] /// /// . /// . - public static BigInteger ReadBigInteger(string prompt = EmptyStringHelper.Empty) + public static string ReadString(string prompt = EmptyStringHelper.Empty) { prompt.Print(); - return BigInteger.Parse(Console.ReadLine()); + return Console.ReadLine(); } /// From 351661c2fb7e41436202cfd8737ee0f7d17f2fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 3 Apr 2020 21:50:56 +0700 Subject: [PATCH 002/102] closes #27 Extensions --- .../Extensions/ArrayE.Input.cs | 263 +++++++++++++++++- 1 file changed, 257 insertions(+), 6 deletions(-) diff --git a/NETMouse - .NET release/Extensions/ArrayE.Input.cs b/NETMouse - .NET release/Extensions/ArrayE.Input.cs index e34d2c9..bc4b96d 100644 --- a/NETMouse - .NET release/Extensions/ArrayE.Input.cs +++ b/NETMouse - .NET release/Extensions/ArrayE.Input.cs @@ -1,4 +1,5 @@ using System; +using System.Numerics; using ABCNET.Utils; namespace ABCNET.Extensions @@ -9,6 +10,7 @@ namespace ABCNET.Extensions public static partial class ArrayE { #region public + /// /// Заполняет массив значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -32,6 +34,52 @@ public static void Read(this bool[] array, string prompt = EmptyStringHelper.Emp } } + /// + /// Заполняет массив значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this byte[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + /// + /// Заполняет массив значениями типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this sbyte[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadSbyte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + /// /// Заполняет массив значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -42,8 +90,40 @@ public static void Read(this char[] array, string prompt = EmptyStringHelper.Emp if (array == null) throw new ArgumentNullException(nameof(array)); - for (int i = 0; i < array.Length; i++) - array[i] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + /// + /// Заполняет массив значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this decimal[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } } /// @@ -70,7 +150,30 @@ public static void Read(this double[] array, string prompt = EmptyStringHelper.E } /// - /// Заполняет массив значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет массив значениями типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this float[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadFloat(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + /// + /// Заполняет массив значениями типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Массив. /// Приглашение к вводу. @@ -83,7 +186,145 @@ public static void Read(this int[] array, string prompt = EmptyStringHelper.Empt while (i < array.Length) try { - array[i] = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadInt(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + /// + /// Заполняет массив значениями типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this uint[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadUint(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + /// + /// Заполняет массив значениями типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this long[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadLong(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + /// + /// Заполняет массив значениями типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this ulong[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadUlong(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + /// + /// Заполняет массив значениями типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this short[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadShort(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + /// + /// Заполняет массив значениями типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this ushort[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadUshort(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + /// + /// Заполняет массив значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this BigInteger[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); i++; } catch (Exception) @@ -102,9 +343,19 @@ public static void Read(this string[] array, string prompt = EmptyStringHelper.E if (array == null) throw new ArgumentNullException(nameof(array)); - for (int i = 0; i < array.Length; i++) - array[i] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } } + #endregion public } } From 75e2fc248d71b0504c4b5297089b4dae8354c3b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 3 Apr 2020 21:51:46 +0700 Subject: [PATCH 003/102] Array.Input region adding --- NETMouse - .NET release/Utils/Array.Input.cs | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/NETMouse - .NET release/Utils/Array.Input.cs b/NETMouse - .NET release/Utils/Array.Input.cs index 51ba7b4..42e4244 100644 --- a/NETMouse - .NET release/Utils/Array.Input.cs +++ b/NETMouse - .NET release/Utils/Array.Input.cs @@ -11,6 +11,8 @@ public static partial class Array { #region public + #region Read + /// /// Читает массив значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -407,6 +409,10 @@ public static string[] ReadString(int count, string prompt = EmptyStringHelper.E return array; } + #endregion + + #region ReadTuple2 + /// /// Заполняет 2 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -557,6 +563,9 @@ public static Tuple ReadStringTuple2(int count) return Tuple.Of(ReadString(count), ReadString(count)); } + #endregion + + #region ReadTuple3 /// /// Заполняет 3 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -708,6 +717,10 @@ public static Tuple ReadStringTuple3(int count) return Tuple.Of(ReadString(count), ReadString(count), ReadString(count)); } + #endregion + + #region ReadTuple4 + /// /// Заполняет 4 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -858,6 +871,10 @@ public static Tuple ReadStringTuple4(int return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count)); } + #endregion + + #region ReadTuple5 + /// /// Заполняет 5 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -1008,6 +1025,10 @@ public static Tuple ReadString return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); } + #endregion + + #region ReadTuple6 + /// /// Заполняет 6 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -1157,6 +1178,10 @@ public static Tuple return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); } + #endregion + + #region ReadTuple7 + /// /// Заполняет 7 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -1306,6 +1331,8 @@ public static Tuple Date: Fri, 3 Apr 2020 22:18:52 +0700 Subject: [PATCH 004/102] closes #28 Extensions --- .../Extensions/MatrixE.Input.cs | 361 +++++++++++++++++- 1 file changed, 353 insertions(+), 8 deletions(-) diff --git a/NETMouse - .NET release/Extensions/MatrixE.Input.cs b/NETMouse - .NET release/Extensions/MatrixE.Input.cs index 7b6ba1c..cd2a5ac 100644 --- a/NETMouse - .NET release/Extensions/MatrixE.Input.cs +++ b/NETMouse - .NET release/Extensions/MatrixE.Input.cs @@ -1,4 +1,5 @@ using System; +using System.Numerics; using ABCNET.Utils; namespace ABCNET.Extensions @@ -9,6 +10,7 @@ namespace ABCNET.Extensions public static partial class MatrixE { #region public + /// /// Заполняет матрицу значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -40,6 +42,68 @@ public static void Read(this bool[,] matrix, string prompt = EmptyStringHelper.E } } + /// + /// Заполняет матрицу значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this byte[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + + /// + /// Заполняет матрицу значениями типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this sbyte[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadSbyte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + /// /// Заполняет матрицу значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -50,9 +114,56 @@ public static void Read(this char[,] matrix, string prompt = EmptyStringHelper.E if (matrix == null) throw new ArgumentNullException(nameof(matrix)); - for (int i = 0; i < matrix.GetLength(0); i++) - for (int j = 0; j < matrix.GetLength(1); j++) - matrix[i, j] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + + /// + /// Заполняет матрицу значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this decimal[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } } /// @@ -87,7 +198,38 @@ public static void Read(this double[,] matrix, string prompt = EmptyStringHelper } /// - /// Заполняет матрицу значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет матрицу значениями типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this float[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadFloat(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + + /// + /// Заполняет матрицу значениями типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Матрица. /// Приглашение к вводу. @@ -104,7 +246,193 @@ public static void Read(this int[,] matrix, string prompt = EmptyStringHelper.Em while (j < matrix.GetLength(1)) try { - matrix[i, j] = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + matrix[i, j] = Base.ReadInt(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + + /// + /// Заполняет матрицу значениями типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this uint[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadUint(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + + /// + /// Заполняет матрицу значениями типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this long[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadLong(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + + /// + /// Заполняет матрицу значениями типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this ulong[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadUlong(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + + /// + /// Заполняет матрицу значениями типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this short[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadShort(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + + /// + /// Заполняет матрицу значениями типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this ushort[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadUshort(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + + /// + /// Заполняет матрицу значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this BigInteger[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); j++; } catch (Exception) @@ -127,10 +455,27 @@ public static void Read(this string[,] matrix, string prompt = EmptyStringHelper if (matrix == null) throw new ArgumentNullException(nameof(matrix)); - for (int i = 0; i < matrix.GetLength(0); i++) - for (int j = 0; j < matrix.GetLength(1); j++) - matrix[i, j] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } } + #endregion public } } From 19309f6ccfc1d708e895247d831039d22e3891bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 3 Apr 2020 22:23:23 +0700 Subject: [PATCH 005/102] closes #28 Utils --- NETMouse - .NET release/Utils/Matrix.Input.cs | 619 ++++++++++-------- 1 file changed, 359 insertions(+), 260 deletions(-) diff --git a/NETMouse - .NET release/Utils/Matrix.Input.cs b/NETMouse - .NET release/Utils/Matrix.Input.cs index d8a5ae9..a025222 100644 --- a/NETMouse - .NET release/Utils/Matrix.Input.cs +++ b/NETMouse - .NET release/Utils/Matrix.Input.cs @@ -1,5 +1,6 @@ using ABCNET.Extensions; using System; +using System.Numerics; namespace ABCNET.Utils { @@ -9,6 +10,7 @@ namespace ABCNET.Utils public static partial class Matrix { #region public + /// /// Читает матрицу значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -47,43 +49,61 @@ public static partial class Matrix return source; } + /// - /// Читает матрицу значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. /// Приглашение к вводу. /// Матрица. - public static char[,] ReadChar(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + public static byte[,] ReadByte(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { if (rowsCount < 0) throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); - char[,] source = new char[rowsCount, colsCount]; - for (int i = 0; i < rowsCount; i++) - for (int j = 0; j < colsCount; j++) - source[i, j] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + byte[,] source = new byte[rowsCount, colsCount]; + int i = 0; + int j = 0; + + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + i++; + j = 0; + } return source; } + /// - /// Читает матрицу значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. /// Приглашение к вводу. /// Матрица. - public static double[,] ReadDouble(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + public static sbyte[,] ReadSbyte(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { if (rowsCount < 0) throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); - double[,] source = new double[rowsCount, colsCount]; + sbyte[,] source = new sbyte[rowsCount, colsCount]; int i = 0; int j = 0; @@ -92,7 +112,7 @@ public static partial class Matrix while (j < colsCount) try { - source[i, j] = Base.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + source[i, j] = Base.ReadSbyte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); j++; } catch (Exception) @@ -107,21 +127,22 @@ public static partial class Matrix return source; } + /// - /// Читает матрицу значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. /// Приглашение к вводу. /// Матрица. - public static int[,] ReadInt32(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + public static char[,] ReadChar(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { if (rowsCount < 0) throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); - int[,] source = new int[rowsCount, colsCount]; + char[,] source = new char[rowsCount, colsCount]; int i = 0; int j = 0; @@ -130,7 +151,7 @@ public static partial class Matrix while (j < colsCount) try { - source[i, j] = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + source[i, j] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); j++; } catch (Exception) @@ -145,357 +166,435 @@ public static partial class Matrix return source; } + /// - /// Читает матрицу значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. /// Приглашение к вводу. /// Матрица. - public static string[,] ReadString(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + public static decimal[,] ReadDecimal(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { if (rowsCount < 0) throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); - string[,] source = new string[rowsCount, colsCount]; - for (int i = 0; i < rowsCount; i++) - for (int j = 0; j < colsCount; j++) - source[i, j] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + decimal[,] source = new decimal[rowsCount, colsCount]; + int i = 0; + int j = 0; + + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + i++; + j = 0; + } return source; } - /// - /// Заполняет 2 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadBooleanTup2(int rowsCount, int colsCount) - { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); - } /// - /// Заполняет 2 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadCharTup2(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static double[,] ReadDouble(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); - } + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); - /// - /// Заполняет 2 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadInt32Tup2(int rowsCount, int colsCount) - { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); - } + double[,] source = new double[rowsCount, colsCount]; + int i = 0; + int j = 0; - /// - /// Заполняет 2 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadDoubleTup2(int rowsCount, int colsCount) - { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); - } + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } - /// - /// Заполняет 2 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadStringTup2(int rowsCount, int colsCount) - { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); - } + i++; + j = 0; + } - /// - /// Заполняет 3 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadBooleanTup3(int rowsCount, int colsCount) - { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + return source; } - /// - /// Заполняет 3 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadCharTup3(int rowsCount, int colsCount) - { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); - } /// - /// Заполняет 3 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadInt32Tup3(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static float[,] ReadFloat(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); - } + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); - /// - /// Заполняет 3 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadDoubleTup3(int rowsCount, int colsCount) - { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); - } + float[,] source = new float[rowsCount, colsCount]; + int i = 0; + int j = 0; - /// - /// Заполняет 3 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadStringTup3(int rowsCount, int colsCount) - { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); - } + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadFloat(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } - /// - /// Заполняет 4 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadBooleanTup4(int rowsCount, int colsCount) - { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); - } + i++; + j = 0; + } - /// - /// Заполняет 4 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadCharTup4(int rowsCount, int colsCount) - { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + return source; } - /// - /// Заполняет 4 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadInt32Tup4(int rowsCount, int colsCount) - { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); - } /// - /// Заполняет 4 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadDoubleTup4(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static int[,] ReadInt(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); - } + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); - /// - /// Заполняет 4 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadStringTup4(int rowsCount, int colsCount) - { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); - } + int[,] source = new int[rowsCount, colsCount]; + int i = 0; + int j = 0; - /// - /// Заполняет 5 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadBooleanTup5(int rowsCount, int colsCount) - { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); - } + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadInt(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } - /// - /// Заполняет 5 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadCharTup5(int rowsCount, int colsCount) - { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); - } + i++; + j = 0; + } - /// - /// Заполняет 5 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadInt32Tup5(int rowsCount, int colsCount) - { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + return source; } - /// - /// Заполняет 5 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadDoubleTup5(int rowsCount, int colsCount) - { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); - } /// - /// Заполняет 5 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadStringTup5(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static uint[,] ReadUint(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); - } + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); - /// - /// Заполняет 6 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadBooleanTup6(int rowsCount, int colsCount) - { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); - } + uint[,] source = new uint[rowsCount, colsCount]; + int i = 0; + int j = 0; - /// - /// Заполняет 6 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadCharTup6(int rowsCount, int colsCount) - { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); - } + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadUint(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } - /// - /// Заполняет 6 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadInt32Tup6(int rowsCount, int colsCount) - { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); - } + i++; + j = 0; + } - /// - /// Заполняет 6 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadDoubleTup6(int rowsCount, int colsCount) - { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + return source; } + /// - /// Заполняет 6 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadStringTup6(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static long[,] ReadLong(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + long[,] source = new long[rowsCount, colsCount]; + int i = 0; + int j = 0; + + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadLong(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + i++; + j = 0; + } + + return source; } + /// - /// Заполняет 6 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadBooleanTup7(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static ulong[,] ReadUlong(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + ulong[,] source = new ulong[rowsCount, colsCount]; + int i = 0; + int j = 0; + + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadUlong(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + i++; + j = 0; + } + + return source; } + /// - /// Заполняет 7 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadCharTup7(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static short[,] ReadShort(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + short[,] source = new short[rowsCount, colsCount]; + int i = 0; + int j = 0; + + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadShort(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + i++; + j = 0; + } + + return source; } + /// - /// Заполняет 7 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadInt32Tup7(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static ushort[,] ReadUshort(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + ushort[,] source = new ushort[rowsCount, colsCount]; + int i = 0; + int j = 0; + + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadUshort(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + i++; + j = 0; + } + + return source; } + /// - /// Заполняет 7 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadDoubleTup7(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static BigInteger[,] ReadBigInteger(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + BigInteger[,] source = new BigInteger[rowsCount, colsCount]; + int i = 0; + int j = 0; + + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + i++; + j = 0; + } + + return source; } + /// - /// Заполняет 2 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadStringTup7(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static string[,] ReadString(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + string[,] source = new string[rowsCount, colsCount]; + int i = 0; + int j = 0; + + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + i++; + j = 0; + } + + return source; } + #endregion public } } From 3ba22e4f5ef35172ea6c933665a766d11b3b1232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 3 Apr 2020 23:40:42 +0700 Subject: [PATCH 006/102] closes #30 --- .../Utils/Tuple.Generators.cs | 18 + NETMouse - .NET release/Utils/Tuple.Input.cs | 2021 ++++++++++++++++- 2 files changed, 1976 insertions(+), 63 deletions(-) diff --git a/NETMouse - .NET release/Utils/Tuple.Generators.cs b/NETMouse - .NET release/Utils/Tuple.Generators.cs index aed1966..54f6e0a 100644 --- a/NETMouse - .NET release/Utils/Tuple.Generators.cs +++ b/NETMouse - .NET release/Utils/Tuple.Generators.cs @@ -8,6 +8,9 @@ namespace ABCNET.Utils public static partial class Tuple { #region public + + #region OfOverloads + /// /// 2 . /// @@ -84,6 +87,10 @@ public static Tuple Of(T i return new Tuple(item1, item2, item3, item4, item5, item6, item7); } + #endregion + + #region RandomInt + /// /// Int32. /// @@ -150,6 +157,10 @@ public static Tuple Random7(int low = Int32Bo return Of(Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), Base.Random(low, high)); } + #endregion + + #region RandomDouble + /// /// Double. /// @@ -216,6 +227,10 @@ public static Tuple Rand return Of(Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), Base.Random(low, high)); } + #endregion + + #region Fill + /// /// , . /// @@ -275,6 +290,9 @@ public static Tuple Fill7(T value) { return Of(value, value, value, value, value, value, value); } + + #endregion + #endregion public } } \ No newline at end of file diff --git a/NETMouse - .NET release/Utils/Tuple.Input.cs b/NETMouse - .NET release/Utils/Tuple.Input.cs index 63ee316..754df7a 100644 --- a/NETMouse - .NET release/Utils/Tuple.Input.cs +++ b/NETMouse - .NET release/Utils/Tuple.Input.cs @@ -1,5 +1,6 @@ using ABCNET.Extensions; using System; +using System.Numerics; namespace ABCNET.Utils { @@ -9,131 +10,1758 @@ namespace ABCNET.Utils public static partial class Tuple { #region public + + #region ReadBoolean + + /// + /// Читает кортеж из двух значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple2(string prompt = EmptyStringHelper.Empty) + { + bool a = default; + bool b = default; + + ReadBooleanTupleItem(ref a, 0, prompt); + ReadBooleanTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple3(string prompt = EmptyStringHelper.Empty) + { + bool a = default; + bool b = default; + bool c = default; + + ReadBooleanTupleItem(ref a, 0, prompt); + ReadBooleanTupleItem(ref b, 1, prompt); + ReadBooleanTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple4(string prompt = EmptyStringHelper.Empty) + { + bool a = default; + bool b = default; + bool c = default; + bool d = default; + + ReadBooleanTupleItem(ref a, 0, prompt); + ReadBooleanTupleItem(ref b, 1, prompt); + ReadBooleanTupleItem(ref c, 2, prompt); + ReadBooleanTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple5(string prompt = EmptyStringHelper.Empty) + { + bool a = default; + bool b = default; + bool c = default; + bool d = default; + bool e = default; + + ReadBooleanTupleItem(ref a, 0, prompt); + ReadBooleanTupleItem(ref b, 1, prompt); + ReadBooleanTupleItem(ref c, 2, prompt); + ReadBooleanTupleItem(ref d, 3, prompt); + ReadBooleanTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple6(string prompt = EmptyStringHelper.Empty) + { + bool a = default; + bool b = default; + bool c = default; + bool d = default; + bool e = default; + bool f = default; + + ReadBooleanTupleItem(ref a, 0, prompt); + ReadBooleanTupleItem(ref b, 1, prompt); + ReadBooleanTupleItem(ref c, 2, prompt); + ReadBooleanTupleItem(ref d, 3, prompt); + ReadBooleanTupleItem(ref e, 4, prompt); + ReadBooleanTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple7(string prompt = EmptyStringHelper.Empty) + { + bool a = default; + bool b = default; + bool c = default; + bool d = default; + bool e = default; + bool f = default; + bool g = default; + + ReadBooleanTupleItem(ref a, 0, prompt); + ReadBooleanTupleItem(ref b, 1, prompt); + ReadBooleanTupleItem(ref c, 2, prompt); + ReadBooleanTupleItem(ref d, 3, prompt); + ReadBooleanTupleItem(ref e, 4, prompt); + ReadBooleanTupleItem(ref f, 5, prompt); + ReadBooleanTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadByte + + /// + /// Читает кортеж из двух значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple2(string prompt = EmptyStringHelper.Empty) + { + byte a = default; + byte b = default; + + ReadByteTupleItem(ref a, 0, prompt); + ReadByteTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple3(string prompt = EmptyStringHelper.Empty) + { + byte a = default; + byte b = default; + byte c = default; + + ReadByteTupleItem(ref a, 0, prompt); + ReadByteTupleItem(ref b, 1, prompt); + ReadByteTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple4(string prompt = EmptyStringHelper.Empty) + { + byte a = default; + byte b = default; + byte c = default; + byte d = default; + + ReadByteTupleItem(ref a, 0, prompt); + ReadByteTupleItem(ref b, 1, prompt); + ReadByteTupleItem(ref c, 2, prompt); + ReadByteTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple5(string prompt = EmptyStringHelper.Empty) + { + byte a = default; + byte b = default; + byte c = default; + byte d = default; + byte e = default; + + ReadByteTupleItem(ref a, 0, prompt); + ReadByteTupleItem(ref b, 1, prompt); + ReadByteTupleItem(ref c, 2, prompt); + ReadByteTupleItem(ref d, 3, prompt); + ReadByteTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple6(string prompt = EmptyStringHelper.Empty) + { + byte a = default; + byte b = default; + byte c = default; + byte d = default; + byte e = default; + byte f = default; + + ReadByteTupleItem(ref a, 0, prompt); + ReadByteTupleItem(ref b, 1, prompt); + ReadByteTupleItem(ref c, 2, prompt); + ReadByteTupleItem(ref d, 3, prompt); + ReadByteTupleItem(ref e, 4, prompt); + ReadByteTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple7(string prompt = EmptyStringHelper.Empty) + { + byte a = default; + byte b = default; + byte c = default; + byte d = default; + byte e = default; + byte f = default; + byte g = default; + + ReadByteTupleItem(ref a, 0, prompt); + ReadByteTupleItem(ref b, 1, prompt); + ReadByteTupleItem(ref c, 2, prompt); + ReadByteTupleItem(ref d, 3, prompt); + ReadByteTupleItem(ref e, 4, prompt); + ReadByteTupleItem(ref f, 5, prompt); + ReadByteTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadSbyte + + /// + /// Читает кортеж из двух значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSbyteTuple2(string prompt = EmptyStringHelper.Empty) + { + sbyte a = default; + sbyte b = default; + + ReadSbyteTupleItem(ref a, 0, prompt); + ReadSbyteTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSbyteTuple3(string prompt = EmptyStringHelper.Empty) + { + sbyte a = default; + sbyte b = default; + sbyte c = default; + + ReadSbyteTupleItem(ref a, 0, prompt); + ReadSbyteTupleItem(ref b, 1, prompt); + ReadSbyteTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSbyteTuple4(string prompt = EmptyStringHelper.Empty) + { + sbyte a = default; + sbyte b = default; + sbyte c = default; + sbyte d = default; + + ReadSbyteTupleItem(ref a, 0, prompt); + ReadSbyteTupleItem(ref b, 1, prompt); + ReadSbyteTupleItem(ref c, 2, prompt); + ReadSbyteTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSbyteTuple5(string prompt = EmptyStringHelper.Empty) + { + sbyte a = default; + sbyte b = default; + sbyte c = default; + sbyte d = default; + sbyte e = default; + + ReadSbyteTupleItem(ref a, 0, prompt); + ReadSbyteTupleItem(ref b, 1, prompt); + ReadSbyteTupleItem(ref c, 2, prompt); + ReadSbyteTupleItem(ref d, 3, prompt); + ReadSbyteTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSbyteTuple6(string prompt = EmptyStringHelper.Empty) + { + sbyte a = default; + sbyte b = default; + sbyte c = default; + sbyte d = default; + sbyte e = default; + sbyte f = default; + + ReadSbyteTupleItem(ref a, 0, prompt); + ReadSbyteTupleItem(ref b, 1, prompt); + ReadSbyteTupleItem(ref c, 2, prompt); + ReadSbyteTupleItem(ref d, 3, prompt); + ReadSbyteTupleItem(ref e, 4, prompt); + ReadSbyteTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSbyteTuple7(string prompt = EmptyStringHelper.Empty) + { + sbyte a = default; + sbyte b = default; + sbyte c = default; + sbyte d = default; + sbyte e = default; + sbyte f = default; + sbyte g = default; + + ReadSbyteTupleItem(ref a, 0, prompt); + ReadSbyteTupleItem(ref b, 1, prompt); + ReadSbyteTupleItem(ref c, 2, prompt); + ReadSbyteTupleItem(ref d, 3, prompt); + ReadSbyteTupleItem(ref e, 4, prompt); + ReadSbyteTupleItem(ref f, 5, prompt); + ReadSbyteTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadChar + + /// + /// Читает кортеж из двух значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple2(string prompt = EmptyStringHelper.Empty) + { + char a = default; + char b = default; + + ReadCharTupleItem(ref a, 0, prompt); + ReadCharTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple3(string prompt = EmptyStringHelper.Empty) + { + char a = default; + char b = default; + char c = default; + + ReadCharTupleItem(ref a, 0, prompt); + ReadCharTupleItem(ref b, 1, prompt); + ReadCharTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple4(string prompt = EmptyStringHelper.Empty) + { + char a = default; + char b = default; + char c = default; + char d = default; + + ReadCharTupleItem(ref a, 0, prompt); + ReadCharTupleItem(ref b, 1, prompt); + ReadCharTupleItem(ref c, 2, prompt); + ReadCharTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple5(string prompt = EmptyStringHelper.Empty) + { + char a = default; + char b = default; + char c = default; + char d = default; + char e = default; + + ReadCharTupleItem(ref a, 0, prompt); + ReadCharTupleItem(ref b, 1, prompt); + ReadCharTupleItem(ref c, 2, prompt); + ReadCharTupleItem(ref d, 3, prompt); + ReadCharTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple6(string prompt = EmptyStringHelper.Empty) + { + char a = default; + char b = default; + char c = default; + char d = default; + char e = default; + char f = default; + + ReadCharTupleItem(ref a, 0, prompt); + ReadCharTupleItem(ref b, 1, prompt); + ReadCharTupleItem(ref c, 2, prompt); + ReadCharTupleItem(ref d, 3, prompt); + ReadCharTupleItem(ref e, 4, prompt); + ReadCharTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple7(string prompt = EmptyStringHelper.Empty) + { + char a = default; + char b = default; + char c = default; + char d = default; + char e = default; + char f = default; + char g = default; + + ReadCharTupleItem(ref a, 0, prompt); + ReadCharTupleItem(ref b, 1, prompt); + ReadCharTupleItem(ref c, 2, prompt); + ReadCharTupleItem(ref d, 3, prompt); + ReadCharTupleItem(ref e, 4, prompt); + ReadCharTupleItem(ref f, 5, prompt); + ReadCharTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadDecimal + + /// + /// Читает кортеж из двух значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple2(string prompt = EmptyStringHelper.Empty) + { + decimal a = default; + decimal b = default; + + ReadDecimalTupleItem(ref a, 0, prompt); + ReadDecimalTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple3(string prompt = EmptyStringHelper.Empty) + { + decimal a = default; + decimal b = default; + decimal c = default; + + ReadDecimalTupleItem(ref a, 0, prompt); + ReadDecimalTupleItem(ref b, 1, prompt); + ReadDecimalTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple4(string prompt = EmptyStringHelper.Empty) + { + decimal a = default; + decimal b = default; + decimal c = default; + decimal d = default; + + ReadDecimalTupleItem(ref a, 0, prompt); + ReadDecimalTupleItem(ref b, 1, prompt); + ReadDecimalTupleItem(ref c, 2, prompt); + ReadDecimalTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple5(string prompt = EmptyStringHelper.Empty) + { + decimal a = default; + decimal b = default; + decimal c = default; + decimal d = default; + decimal e = default; + + ReadDecimalTupleItem(ref a, 0, prompt); + ReadDecimalTupleItem(ref b, 1, prompt); + ReadDecimalTupleItem(ref c, 2, prompt); + ReadDecimalTupleItem(ref d, 3, prompt); + ReadDecimalTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple6(string prompt = EmptyStringHelper.Empty) + { + decimal a = default; + decimal b = default; + decimal c = default; + decimal d = default; + decimal e = default; + decimal f = default; + + ReadDecimalTupleItem(ref a, 0, prompt); + ReadDecimalTupleItem(ref b, 1, prompt); + ReadDecimalTupleItem(ref c, 2, prompt); + ReadDecimalTupleItem(ref d, 3, prompt); + ReadDecimalTupleItem(ref e, 4, prompt); + ReadDecimalTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple7(string prompt = EmptyStringHelper.Empty) + { + decimal a = default; + decimal b = default; + decimal c = default; + decimal d = default; + decimal e = default; + decimal f = default; + decimal g = default; + + ReadDecimalTupleItem(ref a, 0, prompt); + ReadDecimalTupleItem(ref b, 1, prompt); + ReadDecimalTupleItem(ref c, 2, prompt); + ReadDecimalTupleItem(ref d, 3, prompt); + ReadDecimalTupleItem(ref e, 4, prompt); + ReadDecimalTupleItem(ref f, 5, prompt); + ReadDecimalTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadDouble + + /// + /// Читает кортеж из двух значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple2(string prompt = EmptyStringHelper.Empty) + { + double a = default; + double b = default; + + ReadDoubleTupleItem(ref a, 0, prompt); + ReadDoubleTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple3(string prompt = EmptyStringHelper.Empty) + { + double a = default; + double b = default; + double c = default; + + ReadDoubleTupleItem(ref a, 0, prompt); + ReadDoubleTupleItem(ref b, 1, prompt); + ReadDoubleTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple4(string prompt = EmptyStringHelper.Empty) + { + double a = default; + double b = default; + double c = default; + double d = default; + + ReadDoubleTupleItem(ref a, 0, prompt); + ReadDoubleTupleItem(ref b, 1, prompt); + ReadDoubleTupleItem(ref c, 2, prompt); + ReadDoubleTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple5(string prompt = EmptyStringHelper.Empty) + { + double a = default; + double b = default; + double c = default; + double d = default; + double e = default; + + ReadDoubleTupleItem(ref a, 0, prompt); + ReadDoubleTupleItem(ref b, 1, prompt); + ReadDoubleTupleItem(ref c, 2, prompt); + ReadDoubleTupleItem(ref d, 3, prompt); + ReadDoubleTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple6(string prompt = EmptyStringHelper.Empty) + { + double a = default; + double b = default; + double c = default; + double d = default; + double e = default; + double f = default; + + ReadDoubleTupleItem(ref a, 0, prompt); + ReadDoubleTupleItem(ref b, 1, prompt); + ReadDoubleTupleItem(ref c, 2, prompt); + ReadDoubleTupleItem(ref d, 3, prompt); + ReadDoubleTupleItem(ref e, 4, prompt); + ReadDoubleTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple7(string prompt = EmptyStringHelper.Empty) + { + double a = default; + double b = default; + double c = default; + double d = default; + double e = default; + double f = default; + double g = default; + + ReadDoubleTupleItem(ref a, 0, prompt); + ReadDoubleTupleItem(ref b, 1, prompt); + ReadDoubleTupleItem(ref c, 2, prompt); + ReadDoubleTupleItem(ref d, 3, prompt); + ReadDoubleTupleItem(ref e, 4, prompt); + ReadDoubleTupleItem(ref f, 5, prompt); + ReadDoubleTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadFloat + + /// + /// Читает кортеж из двух значений типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadFloatTuple2(string prompt = EmptyStringHelper.Empty) + { + float a = default; + float b = default; + + ReadFloatTupleItem(ref a, 0, prompt); + ReadFloatTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadFloatTuple3(string prompt = EmptyStringHelper.Empty) + { + float a = default; + float b = default; + float c = default; + + ReadFloatTupleItem(ref a, 0, prompt); + ReadFloatTupleItem(ref b, 1, prompt); + ReadFloatTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadFloatTuple4(string prompt = EmptyStringHelper.Empty) + { + float a = default; + float b = default; + float c = default; + float d = default; + + ReadFloatTupleItem(ref a, 0, prompt); + ReadFloatTupleItem(ref b, 1, prompt); + ReadFloatTupleItem(ref c, 2, prompt); + ReadFloatTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadFloatTuple5(string prompt = EmptyStringHelper.Empty) + { + float a = default; + float b = default; + float c = default; + float d = default; + float e = default; + + ReadFloatTupleItem(ref a, 0, prompt); + ReadFloatTupleItem(ref b, 1, prompt); + ReadFloatTupleItem(ref c, 2, prompt); + ReadFloatTupleItem(ref d, 3, prompt); + ReadFloatTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadFloatTuple6(string prompt = EmptyStringHelper.Empty) + { + float a = default; + float b = default; + float c = default; + float d = default; + float e = default; + float f = default; + + ReadFloatTupleItem(ref a, 0, prompt); + ReadFloatTupleItem(ref b, 1, prompt); + ReadFloatTupleItem(ref c, 2, prompt); + ReadFloatTupleItem(ref d, 3, prompt); + ReadFloatTupleItem(ref e, 4, prompt); + ReadFloatTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadFloatTuple7(string prompt = EmptyStringHelper.Empty) + { + float a = default; + float b = default; + float c = default; + float d = default; + float e = default; + float f = default; + float g = default; + + ReadFloatTupleItem(ref a, 0, prompt); + ReadFloatTupleItem(ref b, 1, prompt); + ReadFloatTupleItem(ref c, 2, prompt); + ReadFloatTupleItem(ref d, 3, prompt); + ReadFloatTupleItem(ref e, 4, prompt); + ReadFloatTupleItem(ref f, 5, prompt); + ReadFloatTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadInt + + /// + /// Читает кортеж из двух значений типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadIntTuple2(string prompt = EmptyStringHelper.Empty) + { + int a = default; + int b = default; + + ReadIntTupleItem(ref a, 0, prompt); + ReadIntTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadIntTuple3(string prompt = EmptyStringHelper.Empty) + { + int a = default; + int b = default; + int c = default; + + ReadIntTupleItem(ref a, 0, prompt); + ReadIntTupleItem(ref b, 1, prompt); + ReadIntTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadIntTuple4(string prompt = EmptyStringHelper.Empty) + { + int a = default; + int b = default; + int c = default; + int d = default; + + ReadIntTupleItem(ref a, 0, prompt); + ReadIntTupleItem(ref b, 1, prompt); + ReadIntTupleItem(ref c, 2, prompt); + ReadIntTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadIntTuple5(string prompt = EmptyStringHelper.Empty) + { + int a = default; + int b = default; + int c = default; + int d = default; + int e = default; + + ReadIntTupleItem(ref a, 0, prompt); + ReadIntTupleItem(ref b, 1, prompt); + ReadIntTupleItem(ref c, 2, prompt); + ReadIntTupleItem(ref d, 3, prompt); + ReadIntTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadIntTuple6(string prompt = EmptyStringHelper.Empty) + { + int a = default; + int b = default; + int c = default; + int d = default; + int e = default; + int f = default; + + ReadIntTupleItem(ref a, 0, prompt); + ReadIntTupleItem(ref b, 1, prompt); + ReadIntTupleItem(ref c, 2, prompt); + ReadIntTupleItem(ref d, 3, prompt); + ReadIntTupleItem(ref e, 4, prompt); + ReadIntTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadIntTuple7(string prompt = EmptyStringHelper.Empty) + { + int a = default; + int b = default; + int c = default; + int d = default; + int e = default; + int f = default; + int g = default; + + ReadIntTupleItem(ref a, 0, prompt); + ReadIntTupleItem(ref b, 1, prompt); + ReadIntTupleItem(ref c, 2, prompt); + ReadIntTupleItem(ref d, 3, prompt); + ReadIntTupleItem(ref e, 4, prompt); + ReadIntTupleItem(ref f, 5, prompt); + ReadIntTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadUint + + /// + /// Читает кортеж из двух значений типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUintTuple2(string prompt = EmptyStringHelper.Empty) + { + uint a = default; + uint b = default; + + ReadUintTupleItem(ref a, 0, prompt); + ReadUintTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUintTuple3(string prompt = EmptyStringHelper.Empty) + { + uint a = default; + uint b = default; + uint c = default; + + ReadUintTupleItem(ref a, 0, prompt); + ReadUintTupleItem(ref b, 1, prompt); + ReadUintTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUintTuple4(string prompt = EmptyStringHelper.Empty) + { + uint a = default; + uint b = default; + uint c = default; + uint d = default; + + ReadUintTupleItem(ref a, 0, prompt); + ReadUintTupleItem(ref b, 1, prompt); + ReadUintTupleItem(ref c, 2, prompt); + ReadUintTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUintTuple5(string prompt = EmptyStringHelper.Empty) + { + uint a = default; + uint b = default; + uint c = default; + uint d = default; + uint e = default; + + ReadUintTupleItem(ref a, 0, prompt); + ReadUintTupleItem(ref b, 1, prompt); + ReadUintTupleItem(ref c, 2, prompt); + ReadUintTupleItem(ref d, 3, prompt); + ReadUintTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUintTuple6(string prompt = EmptyStringHelper.Empty) + { + uint a = default; + uint b = default; + uint c = default; + uint d = default; + uint e = default; + uint f = default; + + ReadUintTupleItem(ref a, 0, prompt); + ReadUintTupleItem(ref b, 1, prompt); + ReadUintTupleItem(ref c, 2, prompt); + ReadUintTupleItem(ref d, 3, prompt); + ReadUintTupleItem(ref e, 4, prompt); + ReadUintTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUintTuple7(string prompt = EmptyStringHelper.Empty) + { + uint a = default; + uint b = default; + uint c = default; + uint d = default; + uint e = default; + uint f = default; + uint g = default; + + ReadUintTupleItem(ref a, 0, prompt); + ReadUintTupleItem(ref b, 1, prompt); + ReadUintTupleItem(ref c, 2, prompt); + ReadUintTupleItem(ref d, 3, prompt); + ReadUintTupleItem(ref e, 4, prompt); + ReadUintTupleItem(ref f, 5, prompt); + ReadUintTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadLong + + /// + /// Читает кортеж из двух значений типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadLongTuple2(string prompt = EmptyStringHelper.Empty) + { + long a = default; + long b = default; + + ReadLongTupleItem(ref a, 0, prompt); + ReadLongTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadLongTuple3(string prompt = EmptyStringHelper.Empty) + { + long a = default; + long b = default; + long c = default; + + ReadLongTupleItem(ref a, 0, prompt); + ReadLongTupleItem(ref b, 1, prompt); + ReadLongTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadLongTuple4(string prompt = EmptyStringHelper.Empty) + { + long a = default; + long b = default; + long c = default; + long d = default; + + ReadLongTupleItem(ref a, 0, prompt); + ReadLongTupleItem(ref b, 1, prompt); + ReadLongTupleItem(ref c, 2, prompt); + ReadLongTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadLongTuple5(string prompt = EmptyStringHelper.Empty) + { + long a = default; + long b = default; + long c = default; + long d = default; + long e = default; + + ReadLongTupleItem(ref a, 0, prompt); + ReadLongTupleItem(ref b, 1, prompt); + ReadLongTupleItem(ref c, 2, prompt); + ReadLongTupleItem(ref d, 3, prompt); + ReadLongTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadLongTuple6(string prompt = EmptyStringHelper.Empty) + { + long a = default; + long b = default; + long c = default; + long d = default; + long e = default; + long f = default; + + ReadLongTupleItem(ref a, 0, prompt); + ReadLongTupleItem(ref b, 1, prompt); + ReadLongTupleItem(ref c, 2, prompt); + ReadLongTupleItem(ref d, 3, prompt); + ReadLongTupleItem(ref e, 4, prompt); + ReadLongTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadLongTuple7(string prompt = EmptyStringHelper.Empty) + { + long a = default; + long b = default; + long c = default; + long d = default; + long e = default; + long f = default; + long g = default; + + ReadLongTupleItem(ref a, 0, prompt); + ReadLongTupleItem(ref b, 1, prompt); + ReadLongTupleItem(ref c, 2, prompt); + ReadLongTupleItem(ref d, 3, prompt); + ReadLongTupleItem(ref e, 4, prompt); + ReadLongTupleItem(ref f, 5, prompt); + ReadLongTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadUlong + + /// + /// Читает кортеж из двух значений типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUlongTuple2(string prompt = EmptyStringHelper.Empty) + { + ulong a = default; + ulong b = default; + + ReadUlongTupleItem(ref a, 0, prompt); + ReadUlongTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUlongTuple3(string prompt = EmptyStringHelper.Empty) + { + ulong a = default; + ulong b = default; + ulong c = default; + + ReadUlongTupleItem(ref a, 0, prompt); + ReadUlongTupleItem(ref b, 1, prompt); + ReadUlongTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUlongTuple4(string prompt = EmptyStringHelper.Empty) + { + ulong a = default; + ulong b = default; + ulong c = default; + ulong d = default; + + ReadUlongTupleItem(ref a, 0, prompt); + ReadUlongTupleItem(ref b, 1, prompt); + ReadUlongTupleItem(ref c, 2, prompt); + ReadUlongTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUlongTuple5(string prompt = EmptyStringHelper.Empty) + { + ulong a = default; + ulong b = default; + ulong c = default; + ulong d = default; + ulong e = default; + + ReadUlongTupleItem(ref a, 0, prompt); + ReadUlongTupleItem(ref b, 1, prompt); + ReadUlongTupleItem(ref c, 2, prompt); + ReadUlongTupleItem(ref d, 3, prompt); + ReadUlongTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUlongTuple6(string prompt = EmptyStringHelper.Empty) + { + ulong a = default; + ulong b = default; + ulong c = default; + ulong d = default; + ulong e = default; + ulong f = default; + + ReadUlongTupleItem(ref a, 0, prompt); + ReadUlongTupleItem(ref b, 1, prompt); + ReadUlongTupleItem(ref c, 2, prompt); + ReadUlongTupleItem(ref d, 3, prompt); + ReadUlongTupleItem(ref e, 4, prompt); + ReadUlongTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUlongTuple7(string prompt = EmptyStringHelper.Empty) + { + ulong a = default; + ulong b = default; + ulong c = default; + ulong d = default; + ulong e = default; + ulong f = default; + ulong g = default; + + ReadUlongTupleItem(ref a, 0, prompt); + ReadUlongTupleItem(ref b, 1, prompt); + ReadUlongTupleItem(ref c, 2, prompt); + ReadUlongTupleItem(ref d, 3, prompt); + ReadUlongTupleItem(ref e, 4, prompt); + ReadUlongTupleItem(ref f, 5, prompt); + ReadUlongTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadShort + + /// + /// Читает кортеж из двух значений типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadShortTuple2(string prompt = EmptyStringHelper.Empty) + { + short a = default; + short b = default; + + ReadShortTupleItem(ref a, 0, prompt); + ReadShortTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadShortTuple3(string prompt = EmptyStringHelper.Empty) + { + short a = default; + short b = default; + short c = default; + + ReadShortTupleItem(ref a, 0, prompt); + ReadShortTupleItem(ref b, 1, prompt); + ReadShortTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadShortTuple4(string prompt = EmptyStringHelper.Empty) + { + short a = default; + short b = default; + short c = default; + short d = default; + + ReadShortTupleItem(ref a, 0, prompt); + ReadShortTupleItem(ref b, 1, prompt); + ReadShortTupleItem(ref c, 2, prompt); + ReadShortTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadShortTuple5(string prompt = EmptyStringHelper.Empty) + { + short a = default; + short b = default; + short c = default; + short d = default; + short e = default; + + ReadShortTupleItem(ref a, 0, prompt); + ReadShortTupleItem(ref b, 1, prompt); + ReadShortTupleItem(ref c, 2, prompt); + ReadShortTupleItem(ref d, 3, prompt); + ReadShortTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadShortTuple6(string prompt = EmptyStringHelper.Empty) + { + short a = default; + short b = default; + short c = default; + short d = default; + short e = default; + short f = default; + + ReadShortTupleItem(ref a, 0, prompt); + ReadShortTupleItem(ref b, 1, prompt); + ReadShortTupleItem(ref c, 2, prompt); + ReadShortTupleItem(ref d, 3, prompt); + ReadShortTupleItem(ref e, 4, prompt); + ReadShortTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadShortTuple7(string prompt = EmptyStringHelper.Empty) + { + short a = default; + short b = default; + short c = default; + short d = default; + short e = default; + short f = default; + short g = default; + + ReadShortTupleItem(ref a, 0, prompt); + ReadShortTupleItem(ref b, 1, prompt); + ReadShortTupleItem(ref c, 2, prompt); + ReadShortTupleItem(ref d, 3, prompt); + ReadShortTupleItem(ref e, 4, prompt); + ReadShortTupleItem(ref f, 5, prompt); + ReadShortTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadUshort + + /// + /// Читает кортеж из двух значений типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUshortTuple2(string prompt = EmptyStringHelper.Empty) + { + ushort a = default; + ushort b = default; + + ReadUshortTupleItem(ref a, 0, prompt); + ReadUshortTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + /// - /// Читает кортеж из двух значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadBooleanTuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUshortTuple3(string prompt = EmptyStringHelper.Empty) { - bool a = default; - bool b = default; + ushort a = default; + ushort b = default; + ushort c = default; - ReadBooleanTupleItem(ref a, 0, prompt); - ReadBooleanTupleItem(ref b, 1, prompt); + ReadUshortTupleItem(ref a, 0, prompt); + ReadUshortTupleItem(ref b, 1, prompt); + ReadUshortTupleItem(ref c, 2, prompt); - return Of(a, b); + return Of(a, b, c); } /// - /// Читает кортеж из трёх значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadBooleanTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUshortTuple4(string prompt = EmptyStringHelper.Empty) { - bool a = default; - bool b = default; - bool c = default; + ushort a = default; + ushort b = default; + ushort c = default; + ushort d = default; - ReadBooleanTupleItem(ref a, 0, prompt); - ReadBooleanTupleItem(ref b, 1, prompt); - ReadBooleanTupleItem(ref c, 2, prompt); + ReadUshortTupleItem(ref a, 0, prompt); + ReadUshortTupleItem(ref b, 1, prompt); + ReadUshortTupleItem(ref c, 2, prompt); + ReadUshortTupleItem(ref d, 3, prompt); - return Of(a, b, c); + return Of(a, b, c, d); } /// - /// Читает кортеж из двух значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadCharTuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUshortTuple5(string prompt = EmptyStringHelper.Empty) { - return Of(Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 0)), - Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 1))); + ushort a = default; + ushort b = default; + ushort c = default; + ushort d = default; + ushort e = default; + + ReadUshortTupleItem(ref a, 0, prompt); + ReadUshortTupleItem(ref b, 1, prompt); + ReadUshortTupleItem(ref c, 2, prompt); + ReadUshortTupleItem(ref d, 3, prompt); + ReadUshortTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); } /// - /// Читает кортеж из трёх значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadCharTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUshortTuple6(string prompt = EmptyStringHelper.Empty) { - return Of(Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 0)), - Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 1)), - Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 2))); + ushort a = default; + ushort b = default; + ushort c = default; + ushort d = default; + ushort e = default; + ushort f = default; + + ReadUshortTupleItem(ref a, 0, prompt); + ReadUshortTupleItem(ref b, 1, prompt); + ReadUshortTupleItem(ref c, 2, prompt); + ReadUshortTupleItem(ref d, 3, prompt); + ReadUshortTupleItem(ref e, 4, prompt); + ReadUshortTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); } /// - /// Читает кортеж из двух значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadDoubleTuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUshortTuple7(string prompt = EmptyStringHelper.Empty) { - double a = default; - double b = default; + ushort a = default; + ushort b = default; + ushort c = default; + ushort d = default; + ushort e = default; + ushort f = default; + ushort g = default; + + ReadUshortTupleItem(ref a, 0, prompt); + ReadUshortTupleItem(ref b, 1, prompt); + ReadUshortTupleItem(ref c, 2, prompt); + ReadUshortTupleItem(ref d, 3, prompt); + ReadUshortTupleItem(ref e, 4, prompt); + ReadUshortTupleItem(ref f, 5, prompt); + ReadUshortTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadBiginteger + + /// + /// Читает кортеж из двух значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple2(string prompt = EmptyStringHelper.Empty) + { + BigInteger a = default; + BigInteger b = default; - ReadRealTupleItem(ref a, 0, prompt); - ReadRealTupleItem(ref b, 1, prompt); + ReadBigIntegerTupleItem(ref a, 0, prompt); + ReadBigIntegerTupleItem(ref b, 1, prompt); return Of(a, b); } /// - /// Читает кортеж из трёх значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadDoubleTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple3(string prompt = EmptyStringHelper.Empty) { - double a = default; - double b = default; - double c = default; + BigInteger a = default; + BigInteger b = default; + BigInteger c = default; - ReadRealTupleItem(ref a, 0, prompt); - ReadRealTupleItem(ref b, 1, prompt); - ReadRealTupleItem(ref c, 2, prompt); + ReadBigIntegerTupleItem(ref a, 0, prompt); + ReadBigIntegerTupleItem(ref b, 1, prompt); + ReadBigIntegerTupleItem(ref c, 2, prompt); return Of(a, b, c); } /// - /// Читает кортеж из двух значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadInt32Tuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple4(string prompt = EmptyStringHelper.Empty) { - int a = default; - int b = default; + BigInteger a = default; + BigInteger b = default; + BigInteger c = default; + BigInteger d = default; - ReadIntegerTupleItem(ref a, 0, prompt); - ReadIntegerTupleItem(ref b, 1, prompt); + ReadBigIntegerTupleItem(ref a, 0, prompt); + ReadBigIntegerTupleItem(ref b, 1, prompt); + ReadBigIntegerTupleItem(ref c, 2, prompt); + ReadBigIntegerTupleItem(ref d, 3, prompt); - return Of(a, b); + return Of(a, b, c, d); } /// - /// Читает кортеж из трёх значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadInt32Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple5(string prompt = EmptyStringHelper.Empty) { - int a = default; - int b = default; - int c = default; + BigInteger a = default; + BigInteger b = default; + BigInteger c = default; + BigInteger d = default; + BigInteger e = default; - ReadIntegerTupleItem(ref a, 0, prompt); - ReadIntegerTupleItem(ref b, 1, prompt); - ReadIntegerTupleItem(ref c, 2, prompt); + ReadBigIntegerTupleItem(ref a, 0, prompt); + ReadBigIntegerTupleItem(ref b, 1, prompt); + ReadBigIntegerTupleItem(ref c, 2, prompt); + ReadBigIntegerTupleItem(ref d, 3, prompt); + ReadBigIntegerTupleItem(ref e, 4, prompt); - return Of(a, b, c); + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple6(string prompt = EmptyStringHelper.Empty) + { + BigInteger a = default; + BigInteger b = default; + BigInteger c = default; + BigInteger d = default; + BigInteger e = default; + BigInteger f = default; + + ReadBigIntegerTupleItem(ref a, 0, prompt); + ReadBigIntegerTupleItem(ref b, 1, prompt); + ReadBigIntegerTupleItem(ref c, 2, prompt); + ReadBigIntegerTupleItem(ref d, 3, prompt); + ReadBigIntegerTupleItem(ref e, 4, prompt); + ReadBigIntegerTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple7(string prompt = EmptyStringHelper.Empty) + { + BigInteger a = default; + BigInteger b = default; + BigInteger c = default; + BigInteger d = default; + BigInteger e = default; + BigInteger f = default; + BigInteger g = default; + + ReadBigIntegerTupleItem(ref a, 0, prompt); + ReadBigIntegerTupleItem(ref b, 1, prompt); + ReadBigIntegerTupleItem(ref c, 2, prompt); + ReadBigIntegerTupleItem(ref d, 3, prompt); + ReadBigIntegerTupleItem(ref e, 4, prompt); + ReadBigIntegerTupleItem(ref f, 5, prompt); + ReadBigIntegerTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); } + #endregion + + #region ReadString + /// /// Читает кортеж из двух значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. public static Tuple ReadStringTuple2(string prompt = EmptyStringHelper.Empty) { - return Of(Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 0)), - Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 1))); + string a = default; + string b = default; + + ReadStringTupleItem(ref a, 0, prompt); + ReadStringTupleItem(ref b, 1, prompt); + + return Of(a, b); } /// @@ -142,13 +1770,111 @@ public static Tuple ReadStringTuple2(string prompt = EmptyString /// Кортеж. public static Tuple ReadStringTuple3(string prompt = EmptyStringHelper.Empty) { - return Of(Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 0)), - Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 1)), - Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 2))); + string a = default; + string b = default; + string c = default; + + ReadStringTupleItem(ref a, 0, prompt); + ReadStringTupleItem(ref b, 1, prompt); + ReadStringTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadStringTuple4(string prompt = EmptyStringHelper.Empty) + { + string a = default; + string b = default; + string c = default; + string d = default; + + ReadStringTupleItem(ref a, 0, prompt); + ReadStringTupleItem(ref b, 1, prompt); + ReadStringTupleItem(ref c, 2, prompt); + ReadStringTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadStringTuple5(string prompt = EmptyStringHelper.Empty) + { + string a = default; + string b = default; + string c = default; + string d = default; + string e = default; + + ReadStringTupleItem(ref a, 0, prompt); + ReadStringTupleItem(ref b, 1, prompt); + ReadStringTupleItem(ref c, 2, prompt); + ReadStringTupleItem(ref d, 3, prompt); + ReadStringTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadStringTuple6(string prompt = EmptyStringHelper.Empty) + { + string a = default; + string b = default; + string c = default; + string d = default; + string e = default; + string f = default; + + ReadStringTupleItem(ref a, 0, prompt); + ReadStringTupleItem(ref b, 1, prompt); + ReadStringTupleItem(ref c, 2, prompt); + ReadStringTupleItem(ref d, 3, prompt); + ReadStringTupleItem(ref e, 4, prompt); + ReadStringTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadStringTuple7(string prompt = EmptyStringHelper.Empty) + { + string a = default; + string b = default; + string c = default; + string d = default; + string e = default; + string f = default; + string g = default; + + ReadStringTupleItem(ref a, 0, prompt); + ReadStringTupleItem(ref b, 1, prompt); + ReadStringTupleItem(ref c, 2, prompt); + ReadStringTupleItem(ref d, 3, prompt); + ReadStringTupleItem(ref e, 4, prompt); + ReadStringTupleItem(ref f, 5, prompt); + ReadStringTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); } + + #endregion + #endregion public #region private + private static void ReadBooleanTupleItem(ref bool field, int index, string prompt) { while (true) @@ -163,12 +1889,54 @@ private static void ReadBooleanTupleItem(ref bool field, int index, string promp } } - private static void ReadIntegerTupleItem(ref int field, int index, string prompt) + private static void ReadByteTupleItem(ref byte field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadSbyteTupleItem(ref sbyte field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadSbyte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadCharTupleItem(ref char field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadDecimalTupleItem(ref decimal field, int index, string prompt) { while (true) try { - field = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + field = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); return; } catch (Exception) @@ -177,7 +1945,7 @@ private static void ReadIntegerTupleItem(ref int field, int index, string prompt } } - private static void ReadRealTupleItem(ref double field, int index, string prompt) + private static void ReadDoubleTupleItem(ref double field, int index, string prompt) { while (true) try @@ -190,6 +1958,133 @@ private static void ReadRealTupleItem(ref double field, int index, string prompt InputErrorHelper.Message.PrintLine(); } } + + private static void ReadFloatTupleItem(ref float field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadFloat(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadIntTupleItem(ref int field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadInt(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadUintTupleItem(ref uint field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadUint(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadLongTupleItem(ref long field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadLong(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadUlongTupleItem(ref ulong field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadUlong(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadShortTupleItem(ref short field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadShort(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadUshortTupleItem(ref ushort field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadUshort(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadBigIntegerTupleItem(ref BigInteger field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadStringTupleItem(ref string field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + #endregion private } } From e1a870d6ff9ba7f7dd5f360c671d305719003db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sat, 4 Apr 2020 12:54:32 +0700 Subject: [PATCH 007/102] closes #27 Utils --- NETMouse - .NET release/Utils/Array.Input.cs | 451 ++++++++----------- 1 file changed, 198 insertions(+), 253 deletions(-) diff --git a/NETMouse - .NET release/Utils/Array.Input.cs b/NETMouse - .NET release/Utils/Array.Input.cs index 51ba7b4..4d89ca3 100644 --- a/NETMouse - .NET release/Utils/Array.Input.cs +++ b/NETMouse - .NET release/Utils/Array.Input.cs @@ -11,6 +11,8 @@ public static partial class Array { #region public + #region Read + /// /// Читает массив значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -407,6 +409,10 @@ public static string[] ReadString(int count, string prompt = EmptyStringHelper.E return array; } + #endregion + + #region ReadTuple2 + /// /// Заполняет 2 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -416,7 +422,6 @@ public static Tuple ReadBooleanTuple2(int count) { return Tuple.Of(ReadBoolean(count), ReadBoolean(count)); } - /// /// Заполняет 2 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -426,17 +431,15 @@ public static Tuple ReadByteTuple2(int count) { return Tuple.Of(ReadByte(count), ReadByte(count)); } - /// - /// Заполняет 2 массива значениями типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadSbyteTuple2(int count) + public static Tuple ReadSByteTuple2(int count) { - return Tuple.Of(ReadSbyte(count), ReadSbyte(count)); + return Tuple.Of(ReadSByte(count), ReadSByte(count)); } - /// /// Заполняет 2 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -446,7 +449,6 @@ public static Tuple ReadCharTuple2(int count) { return Tuple.Of(ReadChar(count), ReadChar(count)); } - /// /// Заполняет 2 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -456,7 +458,6 @@ public static Tuple ReadDecimalTuple2(int count) { return Tuple.Of(ReadDecimal(count), ReadDecimal(count)); } - /// /// Заполняет 2 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -466,77 +467,69 @@ public static Tuple ReadDoubleTuple2(int count) { return Tuple.Of(ReadDouble(count), ReadDouble(count)); } - /// - /// Заполняет 2 массива значениями типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadFloatTuple2(int count) + public static Tuple ReadSingleTuple2(int count) { - return Tuple.Of(ReadFloat(count), ReadFloat(count)); + return Tuple.Of(ReadSingle(count), ReadSingle(count)); } - /// - /// Заполняет 2 массива значениями типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadIntTuple2(int count) + public static Tuple ReadInt32Tuple2(int count) { - return Tuple.Of(ReadInt(count), ReadInt(count)); + return Tuple.Of(ReadInt32(count), ReadInt32(count)); } - /// - /// Заполняет 2 массива значениями типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUintTuple2(int count) + public static Tuple ReadUint32Tuple2(int count) { - return Tuple.Of(ReadUint(count), ReadUint(count)); + return Tuple.Of(ReadUint32(count), ReadUint32(count)); } - /// - /// Заполняет 2 массива значениями типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadLongTuple2(int count) + public static Tuple ReadInt64Tuple2(int count) { - return Tuple.Of(ReadLong(count), ReadLong(count)); + return Tuple.Of(ReadInt64(count), ReadInt64(count)); } - /// - /// Заполняет 2 массива значениями типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUlongTuple2(int count) + public static Tuple ReadUInt64Tuple2(int count) { - return Tuple.Of(ReadUlong(count), ReadUlong(count)); + return Tuple.Of(ReadUInt64(count), ReadUInt64(count)); } - /// - /// Заполняет 2 массива значениями типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadShortTuple2(int count) + public static Tuple ReadInt16Tuple2(int count) { - return Tuple.Of(ReadShort(count), ReadShort(count)); + return Tuple.Of(ReadInt16(count), ReadInt16(count)); } - /// - /// Заполняет 2 массива значениями типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUshortTuple2(int count) + public static Tuple ReadUInt16Tuple2(int count) { - return Tuple.Of(ReadUshort(count), ReadUshort(count)); + return Tuple.Of(ReadUInt16(count), ReadUInt16(count)); } - /// /// Заполняет 2 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -546,7 +539,6 @@ public static Tuple ReadBigIntegerTuple2(int count) { return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count)); } - /// /// Заполняет 2 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -557,6 +549,9 @@ public static Tuple ReadStringTuple2(int count) return Tuple.Of(ReadString(count), ReadString(count)); } + #endregion + + #region ReadTuple3 /// /// Заполняет 3 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -567,7 +562,6 @@ public static Tuple ReadBooleanTuple3(int count) { return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } - /// /// Заполняет 3 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -577,17 +571,15 @@ public static Tuple ReadByteTuple3(int count) { return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count)); } - /// - /// Заполняет 3 массива значениями типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 3 массива значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadSbyteTuple3(int count) + public static Tuple ReadSByteTuple3(int count) { - return Tuple.Of(ReadSbyte(count), ReadSbyte(count), ReadSbyte(count)); + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count)); } - /// /// Заполняет 3 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -597,7 +589,6 @@ public static Tuple ReadCharTuple3(int count) { return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count)); } - /// /// Заполняет 3 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -607,7 +598,6 @@ public static Tuple ReadDecimalTuple3(int count { return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); } - /// /// Заполняет 3 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -617,77 +607,69 @@ public static Tuple ReadDoubleTuple3(int count) { return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count)); } - /// - /// Заполняет 3 массива значениями типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 3 массива значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadFloatTuple3(int count) + public static Tuple ReadSingleTuple3(int count) { - return Tuple.Of(ReadFloat(count), ReadFloat(count), ReadFloat(count)); + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count)); } - /// - /// Заполняет 3 массива значениями типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 3 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadIntTuple3(int count) + public static Tuple ReadInt32Tuple3(int count) { - return Tuple.Of(ReadInt(count), ReadInt(count), ReadInt(count)); + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count)); } - /// - /// Заполняет 3 массива значениями типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 3 массива значениями типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUintTuple3(int count) + public static Tuple ReadUint32Tuple3(int count) { - return Tuple.Of(ReadUint(count), ReadUint(count), ReadUint(count)); + return Tuple.Of(ReadUint32(count), ReadUint32(count), ReadUint32(count)); } - /// - /// Заполняет 3 массива значениями типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 3 массива значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadLongTuple3(int count) + public static Tuple ReadInt64Tuple3(int count) { - return Tuple.Of(ReadLong(count), ReadLong(count), ReadLong(count)); + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count)); } - /// - /// Заполняет 3 массива значениями типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 3 массива значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUlongTuple3(int count) + public static Tuple ReadUInt64Tuple3(int count) { - return Tuple.Of(ReadUlong(count), ReadUlong(count), ReadUlong(count)); + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); } - /// - /// Заполняет 3 массива значениями типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 3 массива значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadShortTuple3(int count) + public static Tuple ReadInt16Tuple3(int count) { - return Tuple.Of(ReadShort(count), ReadShort(count), ReadShort(count)); + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count)); } - /// - /// Заполняет 3 массива значениями типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 3 массива значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUshortTuple3(int count) + public static Tuple ReadUInt16Tuple3(int count) { - return Tuple.Of(ReadUshort(count), ReadUshort(count), ReadUshort(count)); + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); } - /// /// Заполняет 3 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -697,7 +679,6 @@ public static Tuple ReadBigIntegerTupl { return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); } - /// /// Заполняет 3 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -708,6 +689,10 @@ public static Tuple ReadStringTuple3(int count) return Tuple.Of(ReadString(count), ReadString(count), ReadString(count)); } + #endregion + + #region ReadTuple4 + /// /// Заполняет 4 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -717,7 +702,6 @@ public static Tuple ReadBooleanTuple4(int count) { return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } - /// /// Заполняет 4 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -727,17 +711,15 @@ public static Tuple ReadByteTuple4(int count) { return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); } - /// - /// Заполняет 4 массива значениями типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 4 массива значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadSbyteTuple4(int count) + public static Tuple ReadSByteTuple4(int count) { - return Tuple.Of(ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count)); + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); } - /// /// Заполняет 4 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -747,7 +729,6 @@ public static Tuple ReadCharTuple4(int count) { return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); } - /// /// Заполняет 4 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -757,7 +738,6 @@ public static Tuple ReadDecimalTuple { return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); } - /// /// Заполняет 4 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -767,77 +747,69 @@ public static Tuple ReadDoubleTuple4(int { return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); } - /// - /// Заполняет 4 массива значениями типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 4 массива значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadFloatTuple4(int count) + public static Tuple ReadSingleTuple4(int count) { - return Tuple.Of(ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count)); + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); } - /// - /// Заполняет 4 массива значениями типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 4 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadIntTuple4(int count) + public static Tuple ReadInt32Tuple4(int count) { - return Tuple.Of(ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count)); + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); } - /// - /// Заполняет 4 массива значениями типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 4 массива значениями типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUintTuple4(int count) + public static Tuple ReadUint32Tuple4(int count) { - return Tuple.Of(ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count)); + return Tuple.Of(ReadUint32(count), ReadUint32(count), ReadUint32(count), ReadUint32(count)); } - /// - /// Заполняет 4 массива значениями типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 4 массива значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadLongTuple4(int count) + public static Tuple ReadInt64Tuple4(int count) { - return Tuple.Of(ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count)); + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); } - /// - /// Заполняет 4 массива значениями типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 4 массива значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUlongTuple4(int count) + public static Tuple ReadUInt64Tuple4(int count) { - return Tuple.Of(ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count)); + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); } - /// - /// Заполняет 4 массива значениями типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 4 массива значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadShortTuple4(int count) + public static Tuple ReadInt16Tuple4(int count) { - return Tuple.Of(ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count)); + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); } - /// - /// Заполняет 4 массива значениями типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 4 массива значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUshortTuple4(int count) + public static Tuple ReadUInt16Tuple4(int count) { - return Tuple.Of(ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count)); + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); } - /// /// Заполняет 4 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -847,7 +819,6 @@ public static Tuple Read { return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); } - /// /// Заполняет 4 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -858,8 +829,12 @@ public static Tuple ReadStringTuple4(int return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count)); } + #endregion + + #region ReadTuple5 + /// - /// Заполняет 5 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массивов значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -867,9 +842,8 @@ public static Tuple ReadBooleanTuple5(in { return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } - /// - /// Заполняет 5 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массивов значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -877,19 +851,17 @@ public static Tuple ReadByteTuple5(int c { return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); } - /// - /// Заполняет 5 массива значениями типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массивов значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadSbyteTuple5(int count) + public static Tuple ReadSByteTuple5(int count) { - return Tuple.Of(ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count)); + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); } - /// - /// Заполняет 5 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массивов значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -897,9 +869,8 @@ public static Tuple ReadCharTuple5(int c { return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); } - /// - /// Заполняет 5 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массивов значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -907,9 +878,8 @@ public static Tuple ReadD { return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); } - /// - /// Заполняет 5 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массивов значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -917,79 +887,71 @@ public static Tuple ReadDouble { return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); } - /// - /// Заполняет 5 массива значениями типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массивов значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadFloatTuple5(int count) + public static Tuple ReadSingleTuple5(int count) { - return Tuple.Of(ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count)); + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); } - /// - /// Заполняет 5 массива значениями типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массивов значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadIntTuple5(int count) + public static Tuple ReadInt32Tuple5(int count) { - return Tuple.Of(ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count)); + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); } - /// - /// Заполняет 5 массива значениями типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массивов значениями типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUintTuple5(int count) + public static Tuple ReadUint32Tuple5(int count) { - return Tuple.Of(ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count)); + return Tuple.Of(ReadUint32(count), ReadUint32(count), ReadUint32(count), ReadUint32(count), ReadUint32(count)); } - /// - /// Заполняет 5 массива значениями типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массивов значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadLongTuple5(int count) + public static Tuple ReadInt64Tuple5(int count) { - return Tuple.Of(ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count)); + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); } - /// - /// Заполняет 5 массива значениями типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массивов значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUlongTuple5(int count) + public static Tuple ReadUInt64Tuple5(int count) { - return Tuple.Of(ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count)); + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); } - /// - /// Заполняет 5 массива значениями типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массивов значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadShortTuple5(int count) + public static Tuple ReadInt16Tuple5(int count) { - return Tuple.Of(ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count)); + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); } - /// - /// Заполняет 5 массива значениями типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массивов значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUshortTuple5(int count) + public static Tuple ReadUInt16Tuple5(int count) { - return Tuple.Of(ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count)); + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); } - /// - /// Заполняет 5 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массивов значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -997,9 +959,8 @@ public static Tuple - /// Заполняет 5 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 5 массивов значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -1008,8 +969,12 @@ public static Tuple ReadString return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); } + #endregion + + #region ReadTuple6 + /// - /// Заполняет 6 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 6 массивов значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -1017,9 +982,8 @@ public static Tuple ReadBooleanT { return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } - /// - /// Заполняет 6 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 6 массивов значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -1027,19 +991,17 @@ public static Tuple ReadByteTupl { return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); } - /// - /// Заполняет 6 массива значениями типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 6 массивов значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadSbyteTuple6(int count) + public static Tuple ReadSByteTuple6(int count) { - return Tuple.Of(ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count)); + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); } - /// - /// Заполняет 6 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 6 массивов значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -1047,9 +1009,8 @@ public static Tuple ReadCharTupl { return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); } - /// - /// Заполняет 6 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 6 массивов значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -1057,9 +1018,8 @@ public static Tuple - /// Заполняет 6 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 6 массивов значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -1067,78 +1027,71 @@ public static Tuple { return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); } - /// - /// Заполняет 6 массива значениями типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 6 массивов значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadFloatTuple6(int count) + public static Tuple ReadSingleTuple6(int count) { - return Tuple.Of(ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count)); + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); } - /// - /// Заполняет 6 массива значениями типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 6 массивов значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadIntTuple6(int count) + public static Tuple ReadInt32Tuple6(int count) { - return Tuple.Of(ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count)); + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); } - /// - /// Заполняет 6 массива значениями типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 6 массивов значениями типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUintTuple6(int count) + public static Tuple ReadUint32Tuple6(int count) { - return Tuple.Of(ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count)); + return Tuple.Of(ReadUint32(count), ReadUint32(count), ReadUint32(count), ReadUint32(count), ReadUint32(count), ReadUint32(count)); } - /// - /// Заполняет 6 массива значениями типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 6 массивов значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadLongTuple6(int count) + public static Tuple ReadInt64Tuple6(int count) { - return Tuple.Of(ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count)); + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); } - /// - /// Заполняет 6 массива значениями типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 6 массивов значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUlongTuple6(int count) + public static Tuple ReadUInt64Tuple6(int count) { - return Tuple.Of(ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count)); + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); } /// - /// Заполняет 6 массива значениями типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 6 массивов значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadShortTuple6(int count) + public static Tuple ReadInt16Tuple6(int count) { - return Tuple.Of(ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count)); + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); } - /// - /// Заполняет 6 массива значениями типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 6 массивов значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUshortTuple6(int count) + public static Tuple ReadUInt16Tuple6(int count) { - return Tuple.Of(ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count)); + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); } - /// - /// Заполняет 6 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 6 массивов значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -1146,9 +1099,8 @@ public static Tuple - /// Заполняет 6 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 6 массивов значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -1157,137 +1109,129 @@ public static Tuple return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); } + #endregion + + #region ReadTuple7 + /// - /// Заполняет 7 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 7 массивов значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. public static Tuple ReadBooleanTuple7(int count) { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), Readbool(count), ReadBoolean(count)); } - /// - /// Заполняет 7 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 7 массивов значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. public static Tuple ReadByteTuple7(int count) { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), Readbyte(count), ReadByte(count)); } - /// - /// Заполняет 7 массива значениями типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 7 массивов значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadSbyteTuple7(int count) + public static Tuple ReadSByteTuple7(int count) { - return Tuple.Of(ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count), ReadSbyte(count)); + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), Readsbyte(count), ReadSByte(count)); } - /// - /// Заполняет 7 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 7 массивов значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. public static Tuple ReadCharTuple7(int count) { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), Readchar(count), ReadChar(count)); } - /// - /// Заполняет 7 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 7 массивов значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. public static Tuple ReadDecimalTuple7(int count) { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), Readdecimal(count), ReadDecimal(count)); } - /// - /// Заполняет 7 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 7 массивов значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. public static Tuple ReadDoubleTuple7(int count) { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), Readdouble(count), ReadDouble(count)); } - /// - /// Заполняет 7 массива значениями типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 7 массивов значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadFloatTuple7(int count) + public static Tuple ReadSingleTuple7(int count) { - return Tuple.Of(ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count), ReadFloat(count)); + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), Readfloat(count), ReadSingle(count)); } - /// - /// Заполняет 7 массива значениями типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 7 массивов значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadIntTuple7(int count) + public static Tuple ReadInt32Tuple7(int count) { - return Tuple.Of(ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count), ReadInt(count)); + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), Readint(count), ReadInt32(count)); } /// - /// Заполняет 7 массива значениями типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 7 массивов значениями типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUintTuple7(int count) + public static Tuple ReadUint32Tuple7(int count) { - return Tuple.Of(ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count), ReadUint(count)); + return Tuple.Of(ReadUint32(count), ReadUint32(count), ReadUint32(count), ReadUint32(count), ReadUint32(count), Readuint(count), ReadUint32(count)); } - /// - /// Заполняет 7 массива значениями типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 7 массивов значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadLongTuple7(int count) + public static Tuple ReadInt64Tuple7(int count) { - return Tuple.Of(ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count), ReadLong(count)); + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), Readlong(count), ReadInt64(count)); } - /// - /// Заполняет 7 массива значениями типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 7 массивов значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUlongTuple7(int count) + public static Tuple ReadUInt64Tuple7(int count) { - return Tuple.Of(ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count), ReadUlong(count)); + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), Readulong(count), ReadUInt64(count)); } - /// - /// Заполняет 7 массива значениями типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 7 массивов значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadShortTuple7(int count) + public static Tuple ReadInt16Tuple7(int count) { - return Tuple.Of(ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count), ReadShort(count)); + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), Readshort(count), ReadInt16(count)); } - /// - /// Заполняет 7 массива значениями типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 7 массивов значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadUshortTuple7(int count) + public static Tuple ReadUInt16Tuple7(int count) { - return Tuple.Of(ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count), ReadUshort(count)); + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), Readushort(count), ReadUInt16(count)); } - /// - /// Заполняет 7 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 7 массивов значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -1295,17 +1239,18 @@ public static Tuple - /// Заполняет 7 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 7 массивов значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. public static Tuple ReadStringTuple7(int count) { - return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); + return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), Readstring(count), ReadString(count)); } + #endregion + #endregion public } } From 7847733f18d9451c24245aef6048acec9e9ae250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sat, 4 Apr 2020 12:57:14 +0700 Subject: [PATCH 008/102] Base Read rename --- NETMouse - .NET release/Utils/Base.Input.cs | 46 +++++++-------------- 1 file changed, 16 insertions(+), 30 deletions(-) diff --git a/NETMouse - .NET release/Utils/Base.Input.cs b/NETMouse - .NET release/Utils/Base.Input.cs index c4f2291..a22dd78 100644 --- a/NETMouse - .NET release/Utils/Base.Input.cs +++ b/NETMouse - .NET release/Utils/Base.Input.cs @@ -21,7 +21,6 @@ public static bool ReadBoolean(string prompt = EmptyStringHelper.Empty) prompt.Print(); return bool.Parse(Console.ReadLine()); } - /// /// Byte. [ IDE PascalABC.NET.] /// @@ -32,18 +31,16 @@ public static byte ReadByte(string prompt = EmptyStringHelper.Empty) prompt.Print(); return byte.Parse(Console.ReadLine()); } - /// - /// Sbyte. [ IDE PascalABC.NET.] + /// SByte. [ IDE PascalABC.NET.] /// /// . /// . - public static sbyte ReadSbyte(string prompt = EmptyStringHelper.Empty) + public static sbyte ReadSByte(string prompt = EmptyStringHelper.Empty) { prompt.Print(); return sbyte.Parse(Console.ReadLine()); } - /// /// Char. [ IDE PascalABC.NET.] /// @@ -54,7 +51,6 @@ public static char ReadChar(string prompt = EmptyStringHelper.Empty) prompt.Print(); return char.Parse(Console.ReadLine()); } - /// /// Decimal. [ IDE PascalABC.NET.] /// @@ -65,7 +61,6 @@ public static decimal ReadDecimal(string prompt = EmptyStringHelper.Empty) prompt.Print(); return decimal.Parse(Console.ReadLine()); } - /// /// Double. [ IDE PascalABC.NET.] /// @@ -76,84 +71,76 @@ public static double ReadDouble(string prompt = EmptyStringHelper.Empty) prompt.Print(); return double.Parse(Console.ReadLine()); } - /// - /// Float. [ IDE PascalABC.NET.] + /// Single. [ IDE PascalABC.NET.] /// /// . /// . - public static float ReadFloat(string prompt = EmptyStringHelper.Empty) + public static float ReadSingle(string prompt = EmptyStringHelper.Empty) { prompt.Print(); return float.Parse(Console.ReadLine()); } - /// - /// Int. [ IDE PascalABC.NET.] + /// Int32. [ IDE PascalABC.NET.] /// /// . /// . - public static int ReadInt(string prompt = EmptyStringHelper.Empty) + public static int ReadInt32(string prompt = EmptyStringHelper.Empty) { prompt.Print(); return int.Parse(Console.ReadLine()); } - /// - /// Uint. [ IDE PascalABC.NET.] + /// Uint32. [ IDE PascalABC.NET.] /// /// . /// . - public static uint ReadUint(string prompt = EmptyStringHelper.Empty) + public static uint ReadUint32(string prompt = EmptyStringHelper.Empty) { prompt.Print(); return uint.Parse(Console.ReadLine()); } - /// - /// Long. [ IDE PascalABC.NET.] + /// Int64. [ IDE PascalABC.NET.] /// /// . /// . - public static long ReadLong(string prompt = EmptyStringHelper.Empty) + public static long ReadInt64(string prompt = EmptyStringHelper.Empty) { prompt.Print(); return long.Parse(Console.ReadLine()); } - /// - /// Ulong. [ IDE PascalABC.NET.] + /// UInt64. [ IDE PascalABC.NET.] /// /// . /// . - public static ulong ReadUlong(string prompt = EmptyStringHelper.Empty) + public static ulong ReadUInt64(string prompt = EmptyStringHelper.Empty) { prompt.Print(); return ulong.Parse(Console.ReadLine()); } - /// - /// Short. [ IDE PascalABC.NET.] + /// Int16. [ IDE PascalABC.NET.] /// /// . /// . - public static short ReadShort(string prompt = EmptyStringHelper.Empty) + public static short ReadInt16(string prompt = EmptyStringHelper.Empty) { prompt.Print(); return short.Parse(Console.ReadLine()); } - /// - /// Ushort. [ IDE PascalABC.NET.] + /// UInt16. [ IDE PascalABC.NET.] /// /// . /// . - public static ushort ReadUshort(string prompt = EmptyStringHelper.Empty) + public static ushort ReadUInt16(string prompt = EmptyStringHelper.Empty) { prompt.Print(); return ushort.Parse(Console.ReadLine()); } - /// /// BigInteger. [ IDE PascalABC.NET.] /// @@ -164,7 +151,6 @@ public static BigInteger ReadBigInteger(string prompt = EmptyStringHelper.Empty) prompt.Print(); return BigInteger.Parse(Console.ReadLine()); } - /// /// String. [ IDE PascalABC.NET.] /// From f0eb39e6dc2b152914c4d1ec1c2882646bc57525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sat, 4 Apr 2020 13:01:27 +0700 Subject: [PATCH 009/102] closes #27 Extensions --- .../Extensions/ArrayE.Input.cs | 259 +++++++++++++++++- 1 file changed, 255 insertions(+), 4 deletions(-) diff --git a/NETMouse - .NET release/Extensions/ArrayE.Input.cs b/NETMouse - .NET release/Extensions/ArrayE.Input.cs index e34d2c9..67b68dd 100644 --- a/NETMouse - .NET release/Extensions/ArrayE.Input.cs +++ b/NETMouse - .NET release/Extensions/ArrayE.Input.cs @@ -1,4 +1,5 @@ using System; +using System.Numerics; using ABCNET.Utils; namespace ABCNET.Extensions @@ -9,6 +10,7 @@ namespace ABCNET.Extensions public static partial class ArrayE { #region public + /// /// Заполняет массив значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -32,6 +34,52 @@ public static void Read(this bool[] array, string prompt = EmptyStringHelper.Emp } } + /// + /// Заполняет массив значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this byte[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + /// + /// Заполняет массив значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this sbyte[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadSByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + /// /// Заполняет массив значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -42,8 +90,40 @@ public static void Read(this char[] array, string prompt = EmptyStringHelper.Emp if (array == null) throw new ArgumentNullException(nameof(array)); - for (int i = 0; i < array.Length; i++) - array[i] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + /// + /// Заполняет массив значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this decimal[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } } /// @@ -69,6 +149,29 @@ public static void Read(this double[] array, string prompt = EmptyStringHelper.E } } + /// + /// Заполняет массив значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this float[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadSingle(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + /// /// Заполняет массив значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -92,6 +195,144 @@ public static void Read(this int[] array, string prompt = EmptyStringHelper.Empt } } + /// + /// Заполняет массив значениями типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this uint[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadUint32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + /// + /// Заполняет массив значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this long[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + /// + /// Заполняет массив значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this ulong[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + /// + /// Заполняет массив значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this short[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + /// + /// Заполняет массив значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this ushort[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + /// + /// Заполняет массив значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this BigInteger[] array, string prompt = EmptyStringHelper.Empty) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + /// /// Заполняет массив значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -102,9 +343,19 @@ public static void Read(this string[] array, string prompt = EmptyStringHelper.E if (array == null) throw new ArgumentNullException(nameof(array)); - for (int i = 0; i < array.Length; i++) - array[i] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + int i = 0; + while (i < array.Length) + try + { + array[i] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } } + #endregion public } } From fe53b8c0faa695405769369476e1cab54af74121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sat, 4 Apr 2020 13:05:44 +0700 Subject: [PATCH 010/102] closes #28 Utils --- NETMouse - .NET release/Utils/Matrix.Input.cs | 605 ++++++++++-------- 1 file changed, 345 insertions(+), 260 deletions(-) diff --git a/NETMouse - .NET release/Utils/Matrix.Input.cs b/NETMouse - .NET release/Utils/Matrix.Input.cs index d8a5ae9..93bbf20 100644 --- a/NETMouse - .NET release/Utils/Matrix.Input.cs +++ b/NETMouse - .NET release/Utils/Matrix.Input.cs @@ -1,5 +1,6 @@ using ABCNET.Extensions; using System; +using System.Numerics; namespace ABCNET.Utils { @@ -9,6 +10,7 @@ namespace ABCNET.Utils public static partial class Matrix { #region public + /// /// Читает матрицу значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -48,42 +50,58 @@ public static partial class Matrix } /// - /// Читает матрицу значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. /// Приглашение к вводу. /// Матрица. - public static char[,] ReadChar(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + public static byte[,] ReadByte(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { if (rowsCount < 0) throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); - char[,] source = new char[rowsCount, colsCount]; - for (int i = 0; i < rowsCount; i++) - for (int j = 0; j < colsCount; j++) - source[i, j] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + byte[,] source = new byte[rowsCount, colsCount]; + int i = 0; + int j = 0; + + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + i++; + j = 0; + } return source; } /// - /// Читает матрицу значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. /// Приглашение к вводу. /// Матрица. - public static double[,] ReadDouble(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + public static sbyte[,] ReadSByte(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { if (rowsCount < 0) throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); - double[,] source = new double[rowsCount, colsCount]; + sbyte[,] source = new sbyte[rowsCount, colsCount]; int i = 0; int j = 0; @@ -92,7 +110,7 @@ public static partial class Matrix while (j < colsCount) try { - source[i, j] = Base.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + source[i, j] = Base.ReadSByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); j++; } catch (Exception) @@ -108,20 +126,20 @@ public static partial class Matrix } /// - /// Читает матрицу значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. /// Приглашение к вводу. /// Матрица. - public static int[,] ReadInt32(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + public static char[,] ReadChar(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { if (rowsCount < 0) throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); - int[,] source = new int[rowsCount, colsCount]; + char[,] source = new char[rowsCount, colsCount]; int i = 0; int j = 0; @@ -130,7 +148,7 @@ public static partial class Matrix while (j < colsCount) try { - source[i, j] = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + source[i, j] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); j++; } catch (Exception) @@ -146,356 +164,423 @@ public static partial class Matrix } /// - /// Читает матрицу значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. /// Приглашение к вводу. /// Матрица. - public static string[,] ReadString(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + public static decimal[,] ReadDecimal(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { if (rowsCount < 0) throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); - string[,] source = new string[rowsCount, colsCount]; - for (int i = 0; i < rowsCount; i++) - for (int j = 0; j < colsCount; j++) - source[i, j] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + decimal[,] source = new decimal[rowsCount, colsCount]; + int i = 0; + int j = 0; + + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + i++; + j = 0; + } return source; } /// - /// Заполняет 2 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadBooleanTup2(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static double[,] ReadDouble(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); - } + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); - /// - /// Заполняет 2 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadCharTup2(int rowsCount, int colsCount) - { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); - } + double[,] source = new double[rowsCount, colsCount]; + int i = 0; + int j = 0; - /// - /// Заполняет 2 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadInt32Tup2(int rowsCount, int colsCount) - { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); - } + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } - /// - /// Заполняет 2 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadDoubleTup2(int rowsCount, int colsCount) - { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); - } + i++; + j = 0; + } - /// - /// Заполняет 2 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadStringTup2(int rowsCount, int colsCount) - { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + return source; } /// - /// Заполняет 3 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadBooleanTup3(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static float[,] ReadSingle(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); - } + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); - /// - /// Заполняет 3 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadCharTup3(int rowsCount, int colsCount) - { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); - } + float[,] source = new float[rowsCount, colsCount]; + int i = 0; + int j = 0; - /// - /// Заполняет 3 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadInt32Tup3(int rowsCount, int colsCount) - { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); - } + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadSingle(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } - /// - /// Заполняет 3 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadDoubleTup3(int rowsCount, int colsCount) - { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); - } + i++; + j = 0; + } - /// - /// Заполняет 3 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadStringTup3(int rowsCount, int colsCount) - { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + return source; } /// - /// Заполняет 4 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadBooleanTup4(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static int[,] ReadInt32(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); - } + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); - /// - /// Заполняет 4 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadCharTup4(int rowsCount, int colsCount) - { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); - } + int[,] source = new int[rowsCount, colsCount]; + int i = 0; + int j = 0; - /// - /// Заполняет 4 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadInt32Tup4(int rowsCount, int colsCount) - { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); - } + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } - /// - /// Заполняет 4 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadDoubleTup4(int rowsCount, int colsCount) - { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); - } + i++; + j = 0; + } - /// - /// Заполняет 4 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadStringTup4(int rowsCount, int colsCount) - { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + return source; } /// - /// Заполняет 5 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadBooleanTup5(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static uint[,] ReadUint32(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); - } + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); - /// - /// Заполняет 5 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadCharTup5(int rowsCount, int colsCount) - { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); - } + uint[,] source = new uint[rowsCount, colsCount]; + int i = 0; + int j = 0; - /// - /// Заполняет 5 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadInt32Tup5(int rowsCount, int colsCount) - { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); - } + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadUint32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } - /// - /// Заполняет 5 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadDoubleTup5(int rowsCount, int colsCount) - { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); - } + i++; + j = 0; + } - /// - /// Заполняет 5 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadStringTup5(int rowsCount, int colsCount) - { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + return source; } /// - /// Заполняет 6 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadBooleanTup6(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static long[,] ReadInt64(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); - } + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); - /// - /// Заполняет 6 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadCharTup6(int rowsCount, int colsCount) - { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); - } + long[,] source = new long[rowsCount, colsCount]; + int i = 0; + int j = 0; - /// - /// Заполняет 6 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadInt32Tup6(int rowsCount, int colsCount) - { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); - } + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } - /// - /// Заполняет 6 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadDoubleTup6(int rowsCount, int colsCount) - { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); - } + i++; + j = 0; + } - /// - /// Заполняет 6 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Количество строк. - /// Количество столбцов. - /// Кортеж. - public static Tuple ReadStringTup6(int rowsCount, int colsCount) - { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + return source; } /// - /// Заполняет 6 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadBooleanTup7(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static ulong[,] ReadUInt64(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + ulong[,] source = new ulong[rowsCount, colsCount]; + int i = 0; + int j = 0; + + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + i++; + j = 0; + } + + return source; } /// - /// Заполняет 7 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadCharTup7(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static short[,] ReadInt16(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + short[,] source = new short[rowsCount, colsCount]; + int i = 0; + int j = 0; + + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + i++; + j = 0; + } + + return source; } /// - /// Заполняет 7 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadInt32Tup7(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static ushort[,] ReadUInt16(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + ushort[,] source = new ushort[rowsCount, colsCount]; + int i = 0; + int j = 0; + + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + i++; + j = 0; + } + + return source; } /// - /// Заполняет 7 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadDoubleTup7(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static BigInteger[,] ReadBigInteger(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + BigInteger[,] source = new BigInteger[rowsCount, colsCount]; + int i = 0; + int j = 0; + + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + i++; + j = 0; + } + + return source; } /// - /// Заполняет 2 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. - /// Кортеж. - public static Tuple ReadStringTup7(int rowsCount, int colsCount) + /// Приглашение к вводу. + /// Матрица. + public static string[,] ReadString(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + string[,] source = new string[rowsCount, colsCount]; + int i = 0; + int j = 0; + + while (i < rowsCount) + { + while (j < colsCount) + try + { + source[i, j] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + + i++; + j = 0; + } + + return source; } + #endregion public } } From f0af979e223b15e19979d324d80ff01fd1b39b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sat, 4 Apr 2020 13:09:37 +0700 Subject: [PATCH 011/102] closes #28 Extensions --- .../Extensions/MatrixE.Input.cs | 357 +++++++++++++++++- 1 file changed, 351 insertions(+), 6 deletions(-) diff --git a/NETMouse - .NET release/Extensions/MatrixE.Input.cs b/NETMouse - .NET release/Extensions/MatrixE.Input.cs index 7b6ba1c..521cd67 100644 --- a/NETMouse - .NET release/Extensions/MatrixE.Input.cs +++ b/NETMouse - .NET release/Extensions/MatrixE.Input.cs @@ -1,4 +1,5 @@ using System; +using System.Numerics; using ABCNET.Utils; namespace ABCNET.Extensions @@ -9,6 +10,7 @@ namespace ABCNET.Extensions public static partial class MatrixE { #region public + /// /// Заполняет матрицу значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -40,6 +42,68 @@ public static void Read(this bool[,] matrix, string prompt = EmptyStringHelper.E } } + /// + /// Заполняет матрицу значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this byte[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + + /// + /// Заполняет матрицу значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this sbyte[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadSByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + /// /// Заполняет матрицу значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -50,9 +114,56 @@ public static void Read(this char[,] matrix, string prompt = EmptyStringHelper.E if (matrix == null) throw new ArgumentNullException(nameof(matrix)); - for (int i = 0; i < matrix.GetLength(0); i++) - for (int j = 0; j < matrix.GetLength(1); j++) - matrix[i, j] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + + /// + /// Заполняет матрицу значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this decimal[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } } /// @@ -86,6 +197,37 @@ public static void Read(this double[,] matrix, string prompt = EmptyStringHelper } } + /// + /// Заполняет матрицу значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this float[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadSingle(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + /// /// Заполняет матрицу значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -117,6 +259,192 @@ public static void Read(this int[,] matrix, string prompt = EmptyStringHelper.Em } } + /// + /// Заполняет матрицу значениями типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this uint[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadUint32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + + /// + /// Заполняет матрицу значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this long[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + + /// + /// Заполняет матрицу значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this ulong[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + + /// + /// Заполняет матрицу значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this short[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + + /// + /// Заполняет матрицу значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this ushort[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + + /// + /// Заполняет матрицу значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this BigInteger[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } + } + /// /// Заполняет матрицу значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -127,10 +455,27 @@ public static void Read(this string[,] matrix, string prompt = EmptyStringHelper if (matrix == null) throw new ArgumentNullException(nameof(matrix)); - for (int i = 0; i < matrix.GetLength(0); i++) - for (int j = 0; j < matrix.GetLength(1); j++) - matrix[i, j] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + int i = 0; + int j = 0; + + while (i < matrix.GetLength(0)) + { + while (j < matrix.GetLength(1)) + try + { + matrix[i, j] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } + catch (Exception) + { + Console.WriteLine(InputErrorHelper.Message); + } + + i++; + j = 0; + } } + #endregion public } } From 434713146b0bb6defdb782394d47d8748658613d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sat, 4 Apr 2020 13:28:52 +0700 Subject: [PATCH 012/102] closes #30 --- NETMouse - .NET release/Utils/Tuple.Input.cs | 2020 +++++++++++++++++- 1 file changed, 1957 insertions(+), 63 deletions(-) diff --git a/NETMouse - .NET release/Utils/Tuple.Input.cs b/NETMouse - .NET release/Utils/Tuple.Input.cs index 63ee316..81e42a3 100644 --- a/NETMouse - .NET release/Utils/Tuple.Input.cs +++ b/NETMouse - .NET release/Utils/Tuple.Input.cs @@ -1,5 +1,6 @@ using ABCNET.Extensions; using System; +using System.Numerics; namespace ABCNET.Utils { @@ -9,131 +10,1757 @@ namespace ABCNET.Utils public static partial class Tuple { #region public + + #region ReadBoolean + + /// + /// Читает кортеж из двух значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple2(string prompt = EmptyStringHelper.Empty) + { + bool a = default; + bool b = default; + + ReadBooleanTupleItem(ref a, 0, prompt); + ReadBooleanTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple3(string prompt = EmptyStringHelper.Empty) + { + bool a = default; + bool b = default; + bool c = default; + + ReadBooleanTupleItem(ref a, 0, prompt); + ReadBooleanTupleItem(ref b, 1, prompt); + ReadBooleanTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple4(string prompt = EmptyStringHelper.Empty) + { + bool a = default; + bool b = default; + bool c = default; + bool d = default; + + ReadBooleanTupleItem(ref a, 0, prompt); + ReadBooleanTupleItem(ref b, 1, prompt); + ReadBooleanTupleItem(ref c, 2, prompt); + ReadBooleanTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple5(string prompt = EmptyStringHelper.Empty) + { + bool a = default; + bool b = default; + bool c = default; + bool d = default; + bool e = default; + + ReadBooleanTupleItem(ref a, 0, prompt); + ReadBooleanTupleItem(ref b, 1, prompt); + ReadBooleanTupleItem(ref c, 2, prompt); + ReadBooleanTupleItem(ref d, 3, prompt); + ReadBooleanTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple6(string prompt = EmptyStringHelper.Empty) + { + bool a = default; + bool b = default; + bool c = default; + bool d = default; + bool e = default; + bool f = default; + + ReadBooleanTupleItem(ref a, 0, prompt); + ReadBooleanTupleItem(ref b, 1, prompt); + ReadBooleanTupleItem(ref c, 2, prompt); + ReadBooleanTupleItem(ref d, 3, prompt); + ReadBooleanTupleItem(ref e, 4, prompt); + ReadBooleanTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple7(string prompt = EmptyStringHelper.Empty) + { + bool a = default; + bool b = default; + bool c = default; + bool d = default; + bool e = default; + bool f = default; + bool g = default; + + ReadBooleanTupleItem(ref a, 0, prompt); + ReadBooleanTupleItem(ref b, 1, prompt); + ReadBooleanTupleItem(ref c, 2, prompt); + ReadBooleanTupleItem(ref d, 3, prompt); + ReadBooleanTupleItem(ref e, 4, prompt); + ReadBooleanTupleItem(ref f, 5, prompt); + ReadBooleanTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadByte + + /// + /// Читает кортеж из двух значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple2(string prompt = EmptyStringHelper.Empty) + { + byte a = default; + byte b = default; + + ReadByteTupleItem(ref a, 0, prompt); + ReadByteTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple3(string prompt = EmptyStringHelper.Empty) + { + byte a = default; + byte b = default; + byte c = default; + + ReadByteTupleItem(ref a, 0, prompt); + ReadByteTupleItem(ref b, 1, prompt); + ReadByteTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple4(string prompt = EmptyStringHelper.Empty) + { + byte a = default; + byte b = default; + byte c = default; + byte d = default; + + ReadByteTupleItem(ref a, 0, prompt); + ReadByteTupleItem(ref b, 1, prompt); + ReadByteTupleItem(ref c, 2, prompt); + ReadByteTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple5(string prompt = EmptyStringHelper.Empty) + { + byte a = default; + byte b = default; + byte c = default; + byte d = default; + byte e = default; + + ReadByteTupleItem(ref a, 0, prompt); + ReadByteTupleItem(ref b, 1, prompt); + ReadByteTupleItem(ref c, 2, prompt); + ReadByteTupleItem(ref d, 3, prompt); + ReadByteTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple6(string prompt = EmptyStringHelper.Empty) + { + byte a = default; + byte b = default; + byte c = default; + byte d = default; + byte e = default; + byte f = default; + + ReadByteTupleItem(ref a, 0, prompt); + ReadByteTupleItem(ref b, 1, prompt); + ReadByteTupleItem(ref c, 2, prompt); + ReadByteTupleItem(ref d, 3, prompt); + ReadByteTupleItem(ref e, 4, prompt); + ReadByteTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple7(string prompt = EmptyStringHelper.Empty) + { + byte a = default; + byte b = default; + byte c = default; + byte d = default; + byte e = default; + byte f = default; + byte g = default; + + ReadByteTupleItem(ref a, 0, prompt); + ReadByteTupleItem(ref b, 1, prompt); + ReadByteTupleItem(ref c, 2, prompt); + ReadByteTupleItem(ref d, 3, prompt); + ReadByteTupleItem(ref e, 4, prompt); + ReadByteTupleItem(ref f, 5, prompt); + ReadByteTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadSbyte + + /// + /// Читает кортеж из двух значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSbyteTuple2(string prompt = EmptyStringHelper.Empty) + { + sbyte a = default; + sbyte b = default; + + ReadSByteTupleItem(ref a, 0, prompt); + ReadSByteTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSbyteTuple3(string prompt = EmptyStringHelper.Empty) + { + sbyte a = default; + sbyte b = default; + sbyte c = default; + + ReadSByteTupleItem(ref a, 0, prompt); + ReadSByteTupleItem(ref b, 1, prompt); + ReadSByteTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSbyteTuple4(string prompt = EmptyStringHelper.Empty) + { + sbyte a = default; + sbyte b = default; + sbyte c = default; + sbyte d = default; + + ReadSByteTupleItem(ref a, 0, prompt); + ReadSByteTupleItem(ref b, 1, prompt); + ReadSByteTupleItem(ref c, 2, prompt); + ReadSByteTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSbyteTuple5(string prompt = EmptyStringHelper.Empty) + { + sbyte a = default; + sbyte b = default; + sbyte c = default; + sbyte d = default; + sbyte e = default; + + ReadSByteTupleItem(ref a, 0, prompt); + ReadSByteTupleItem(ref b, 1, prompt); + ReadSByteTupleItem(ref c, 2, prompt); + ReadSByteTupleItem(ref d, 3, prompt); + ReadSByteTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSbyteTuple6(string prompt = EmptyStringHelper.Empty) + { + sbyte a = default; + sbyte b = default; + sbyte c = default; + sbyte d = default; + sbyte e = default; + sbyte f = default; + + ReadSByteTupleItem(ref a, 0, prompt); + ReadSByteTupleItem(ref b, 1, prompt); + ReadSByteTupleItem(ref c, 2, prompt); + ReadSByteTupleItem(ref d, 3, prompt); + ReadSByteTupleItem(ref e, 4, prompt); + ReadSByteTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSbyteTuple7(string prompt = EmptyStringHelper.Empty) + { + sbyte a = default; + sbyte b = default; + sbyte c = default; + sbyte d = default; + sbyte e = default; + sbyte f = default; + sbyte g = default; + + ReadSByteTupleItem(ref a, 0, prompt); + ReadSByteTupleItem(ref b, 1, prompt); + ReadSByteTupleItem(ref c, 2, prompt); + ReadSByteTupleItem(ref d, 3, prompt); + ReadSByteTupleItem(ref e, 4, prompt); + ReadSByteTupleItem(ref f, 5, prompt); + ReadSByteTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadChar + + /// + /// Читает кортеж из двух значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple2(string prompt = EmptyStringHelper.Empty) + { + char a = default; + char b = default; + + ReadCharTupleItem(ref a, 0, prompt); + ReadCharTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple3(string prompt = EmptyStringHelper.Empty) + { + char a = default; + char b = default; + char c = default; + + ReadCharTupleItem(ref a, 0, prompt); + ReadCharTupleItem(ref b, 1, prompt); + ReadCharTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple4(string prompt = EmptyStringHelper.Empty) + { + char a = default; + char b = default; + char c = default; + char d = default; + + ReadCharTupleItem(ref a, 0, prompt); + ReadCharTupleItem(ref b, 1, prompt); + ReadCharTupleItem(ref c, 2, prompt); + ReadCharTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple5(string prompt = EmptyStringHelper.Empty) + { + char a = default; + char b = default; + char c = default; + char d = default; + char e = default; + + ReadCharTupleItem(ref a, 0, prompt); + ReadCharTupleItem(ref b, 1, prompt); + ReadCharTupleItem(ref c, 2, prompt); + ReadCharTupleItem(ref d, 3, prompt); + ReadCharTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple6(string prompt = EmptyStringHelper.Empty) + { + char a = default; + char b = default; + char c = default; + char d = default; + char e = default; + char f = default; + + ReadCharTupleItem(ref a, 0, prompt); + ReadCharTupleItem(ref b, 1, prompt); + ReadCharTupleItem(ref c, 2, prompt); + ReadCharTupleItem(ref d, 3, prompt); + ReadCharTupleItem(ref e, 4, prompt); + ReadCharTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple7(string prompt = EmptyStringHelper.Empty) + { + char a = default; + char b = default; + char c = default; + char d = default; + char e = default; + char f = default; + char g = default; + + ReadCharTupleItem(ref a, 0, prompt); + ReadCharTupleItem(ref b, 1, prompt); + ReadCharTupleItem(ref c, 2, prompt); + ReadCharTupleItem(ref d, 3, prompt); + ReadCharTupleItem(ref e, 4, prompt); + ReadCharTupleItem(ref f, 5, prompt); + ReadCharTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadDecimal + + /// + /// Читает кортеж из двух значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple2(string prompt = EmptyStringHelper.Empty) + { + decimal a = default; + decimal b = default; + + ReadDecimalTupleItem(ref a, 0, prompt); + ReadDecimalTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple3(string prompt = EmptyStringHelper.Empty) + { + decimal a = default; + decimal b = default; + decimal c = default; + + ReadDecimalTupleItem(ref a, 0, prompt); + ReadDecimalTupleItem(ref b, 1, prompt); + ReadDecimalTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple4(string prompt = EmptyStringHelper.Empty) + { + decimal a = default; + decimal b = default; + decimal c = default; + decimal d = default; + + ReadDecimalTupleItem(ref a, 0, prompt); + ReadDecimalTupleItem(ref b, 1, prompt); + ReadDecimalTupleItem(ref c, 2, prompt); + ReadDecimalTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple5(string prompt = EmptyStringHelper.Empty) + { + decimal a = default; + decimal b = default; + decimal c = default; + decimal d = default; + decimal e = default; + + ReadDecimalTupleItem(ref a, 0, prompt); + ReadDecimalTupleItem(ref b, 1, prompt); + ReadDecimalTupleItem(ref c, 2, prompt); + ReadDecimalTupleItem(ref d, 3, prompt); + ReadDecimalTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple6(string prompt = EmptyStringHelper.Empty) + { + decimal a = default; + decimal b = default; + decimal c = default; + decimal d = default; + decimal e = default; + decimal f = default; + + ReadDecimalTupleItem(ref a, 0, prompt); + ReadDecimalTupleItem(ref b, 1, prompt); + ReadDecimalTupleItem(ref c, 2, prompt); + ReadDecimalTupleItem(ref d, 3, prompt); + ReadDecimalTupleItem(ref e, 4, prompt); + ReadDecimalTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple7(string prompt = EmptyStringHelper.Empty) + { + decimal a = default; + decimal b = default; + decimal c = default; + decimal d = default; + decimal e = default; + decimal f = default; + decimal g = default; + + ReadDecimalTupleItem(ref a, 0, prompt); + ReadDecimalTupleItem(ref b, 1, prompt); + ReadDecimalTupleItem(ref c, 2, prompt); + ReadDecimalTupleItem(ref d, 3, prompt); + ReadDecimalTupleItem(ref e, 4, prompt); + ReadDecimalTupleItem(ref f, 5, prompt); + ReadDecimalTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadDouble + + /// + /// Читает кортеж из двух значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple2(string prompt = EmptyStringHelper.Empty) + { + double a = default; + double b = default; + + ReadDoubleTupleItem(ref a, 0, prompt); + ReadDoubleTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple3(string prompt = EmptyStringHelper.Empty) + { + double a = default; + double b = default; + double c = default; + + ReadDoubleTupleItem(ref a, 0, prompt); + ReadDoubleTupleItem(ref b, 1, prompt); + ReadDoubleTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple4(string prompt = EmptyStringHelper.Empty) + { + double a = default; + double b = default; + double c = default; + double d = default; + + ReadDoubleTupleItem(ref a, 0, prompt); + ReadDoubleTupleItem(ref b, 1, prompt); + ReadDoubleTupleItem(ref c, 2, prompt); + ReadDoubleTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple5(string prompt = EmptyStringHelper.Empty) + { + double a = default; + double b = default; + double c = default; + double d = default; + double e = default; + + ReadDoubleTupleItem(ref a, 0, prompt); + ReadDoubleTupleItem(ref b, 1, prompt); + ReadDoubleTupleItem(ref c, 2, prompt); + ReadDoubleTupleItem(ref d, 3, prompt); + ReadDoubleTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple6(string prompt = EmptyStringHelper.Empty) + { + double a = default; + double b = default; + double c = default; + double d = default; + double e = default; + double f = default; + + ReadDoubleTupleItem(ref a, 0, prompt); + ReadDoubleTupleItem(ref b, 1, prompt); + ReadDoubleTupleItem(ref c, 2, prompt); + ReadDoubleTupleItem(ref d, 3, prompt); + ReadDoubleTupleItem(ref e, 4, prompt); + ReadDoubleTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple7(string prompt = EmptyStringHelper.Empty) + { + double a = default; + double b = default; + double c = default; + double d = default; + double e = default; + double f = default; + double g = default; + + ReadDoubleTupleItem(ref a, 0, prompt); + ReadDoubleTupleItem(ref b, 1, prompt); + ReadDoubleTupleItem(ref c, 2, prompt); + ReadDoubleTupleItem(ref d, 3, prompt); + ReadDoubleTupleItem(ref e, 4, prompt); + ReadDoubleTupleItem(ref f, 5, prompt); + ReadDoubleTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadFloat + + /// + /// Читает кортеж из двух значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSingleTuple2(string prompt = EmptyStringHelper.Empty) + { + float a = default; + float b = default; + + ReadSingleTupleItem(ref a, 0, prompt); + ReadSingleTupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSingleTuple3(string prompt = EmptyStringHelper.Empty) + { + float a = default; + float b = default; + float c = default; + + ReadSingleTupleItem(ref a, 0, prompt); + ReadSingleTupleItem(ref b, 1, prompt); + ReadSingleTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSingleTuple4(string prompt = EmptyStringHelper.Empty) + { + float a = default; + float b = default; + float c = default; + float d = default; + + ReadSingleTupleItem(ref a, 0, prompt); + ReadSingleTupleItem(ref b, 1, prompt); + ReadSingleTupleItem(ref c, 2, prompt); + ReadSingleTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSingleTuple5(string prompt = EmptyStringHelper.Empty) + { + float a = default; + float b = default; + float c = default; + float d = default; + float e = default; + + ReadSingleTupleItem(ref a, 0, prompt); + ReadSingleTupleItem(ref b, 1, prompt); + ReadSingleTupleItem(ref c, 2, prompt); + ReadSingleTupleItem(ref d, 3, prompt); + ReadSingleTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSingleTuple6(string prompt = EmptyStringHelper.Empty) + { + float a = default; + float b = default; + float c = default; + float d = default; + float e = default; + float f = default; + + ReadSingleTupleItem(ref b, 1, prompt); + ReadSingleTupleItem(ref c, 2, prompt); + ReadSingleTupleItem(ref d, 3, prompt); + ReadSingleTupleItem(ref e, 4, prompt); + ReadSingleTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSingleTuple7(string prompt = EmptyStringHelper.Empty) + { + float a = default; + float b = default; + float c = default; + float d = default; + float e = default; + float f = default; + float g = default; + + ReadSingleTupleItem(ref a, 0, prompt); + ReadSingleTupleItem(ref b, 1, prompt); + ReadSingleTupleItem(ref c, 2, prompt); + ReadSingleTupleItem(ref d, 3, prompt); + ReadSingleTupleItem(ref e, 4, prompt); + ReadSingleTupleItem(ref f, 5, prompt); + ReadSingleTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadInt + + /// + /// Читает кортеж из двух значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt32Tuple2(string prompt = EmptyStringHelper.Empty) + { + int a = default; + int b = default; + + ReadInt32TupleItem(ref a, 0, prompt); + ReadInt32TupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadIntTuple3(string prompt = EmptyStringHelper.Empty) + { + int a = default; + int b = default; + int c = default; + + ReadInt32TupleItem(ref a, 0, prompt); + ReadInt32TupleItem(ref b, 1, prompt); + ReadInt32TupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt32Tuple4(string prompt = EmptyStringHelper.Empty) + { + int a = default; + int b = default; + int c = default; + int d = default; + + ReadInt32TupleItem(ref a, 0, prompt); + ReadInt32TupleItem(ref b, 1, prompt); + ReadInt32TupleItem(ref c, 2, prompt); + ReadInt32TupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt32Tuple5(string prompt = EmptyStringHelper.Empty) + { + int a = default; + int b = default; + int c = default; + int d = default; + int e = default; + + ReadInt32TupleItem(ref a, 0, prompt); + ReadInt32TupleItem(ref b, 1, prompt); + ReadInt32TupleItem(ref c, 2, prompt); + ReadInt32TupleItem(ref d, 3, prompt); + ReadInt32TupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt32Tuple6(string prompt = EmptyStringHelper.Empty) + { + int a = default; + int b = default; + int c = default; + int d = default; + int e = default; + int f = default; + + ReadInt32TupleItem(ref a, 0, prompt); + ReadInt32TupleItem(ref b, 1, prompt); + ReadInt32TupleItem(ref c, 2, prompt); + ReadInt32TupleItem(ref d, 3, prompt); + ReadInt32TupleItem(ref e, 4, prompt); + ReadInt32TupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt32Tuple7(string prompt = EmptyStringHelper.Empty) + { + int a = default; + int b = default; + int c = default; + int d = default; + int e = default; + int f = default; + int g = default; + + ReadInt32TupleItem(ref a, 0, prompt); + ReadInt32TupleItem(ref b, 1, prompt); + ReadInt32TupleItem(ref c, 2, prompt); + ReadInt32TupleItem(ref d, 3, prompt); + ReadInt32TupleItem(ref e, 4, prompt); + ReadInt32TupleItem(ref f, 5, prompt); + ReadInt32TupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadUint + + /// + /// Читает кортеж из двух значений типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUint32Tuple2(string prompt = EmptyStringHelper.Empty) + { + uint a = default; + uint b = default; + + ReadUint32TupleItem(ref a, 0, prompt); + ReadUint32TupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUint32Tuple3(string prompt = EmptyStringHelper.Empty) + { + uint a = default; + uint b = default; + uint c = default; + + ReadUint32TupleItem(ref a, 0, prompt); + ReadUint32TupleItem(ref b, 1, prompt); + ReadUint32TupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUint32Tuple4(string prompt = EmptyStringHelper.Empty) + { + uint a = default; + uint b = default; + uint c = default; + uint d = default; + + ReadUint32TupleItem(ref a, 0, prompt); + ReadUint32TupleItem(ref b, 1, prompt); + ReadUint32TupleItem(ref c, 2, prompt); + ReadUint32TupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUint32Tuple5(string prompt = EmptyStringHelper.Empty) + { + uint a = default; + uint b = default; + uint c = default; + uint d = default; + uint e = default; + + ReadUint32TupleItem(ref a, 0, prompt); + ReadUint32TupleItem(ref b, 1, prompt); + ReadUint32TupleItem(ref c, 2, prompt); + ReadUint32TupleItem(ref d, 3, prompt); + ReadUint32TupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUint32Tuple6(string prompt = EmptyStringHelper.Empty) + { + uint a = default; + uint b = default; + uint c = default; + uint d = default; + uint e = default; + uint f = default; + + ReadUint32TupleItem(ref a, 0, prompt); + ReadUint32TupleItem(ref b, 1, prompt); + ReadUint32TupleItem(ref c, 2, prompt); + ReadUint32TupleItem(ref d, 3, prompt); + ReadUint32TupleItem(ref e, 4, prompt); + ReadUint32TupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUint32Tuple7(string prompt = EmptyStringHelper.Empty) + { + uint a = default; + uint b = default; + uint c = default; + uint d = default; + uint e = default; + uint f = default; + uint g = default; + + ReadUint32TupleItem(ref a, 0, prompt); + ReadUint32TupleItem(ref b, 1, prompt); + ReadUint32TupleItem(ref c, 2, prompt); + ReadUint32TupleItem(ref d, 3, prompt); + ReadUint32TupleItem(ref e, 4, prompt); + ReadUint32TupleItem(ref f, 5, prompt); + ReadUint32TupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadLong + + /// + /// Читает кортеж из двух значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt64Tuple2(string prompt = EmptyStringHelper.Empty) + { + long a = default; + long b = default; + + ReadInt64TupleItem(ref a, 0, prompt); + ReadInt64TupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt64Tuple3(string prompt = EmptyStringHelper.Empty) + { + long a = default; + long b = default; + long c = default; + + ReadInt64TupleItem(ref a, 0, prompt); + ReadInt64TupleItem(ref b, 1, prompt); + ReadInt64TupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt64Tuple4(string prompt = EmptyStringHelper.Empty) + { + long a = default; + long b = default; + long c = default; + long d = default; + + ReadInt64TupleItem(ref a, 0, prompt); + ReadInt64TupleItem(ref b, 1, prompt); + ReadInt64TupleItem(ref c, 2, prompt); + ReadInt64TupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt64Tuple5(string prompt = EmptyStringHelper.Empty) + { + long a = default; + long b = default; + long c = default; + long d = default; + long e = default; + + ReadInt64TupleItem(ref a, 0, prompt); + ReadInt64TupleItem(ref b, 1, prompt); + ReadInt64TupleItem(ref c, 2, prompt); + ReadInt64TupleItem(ref d, 3, prompt); + ReadInt64TupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt64Tuple6(string prompt = EmptyStringHelper.Empty) + { + long a = default; + long b = default; + long c = default; + long d = default; + long e = default; + long f = default; + + ReadInt64TupleItem(ref a, 0, prompt); + ReadInt64TupleItem(ref b, 1, prompt); + ReadInt64TupleItem(ref c, 2, prompt); + ReadInt64TupleItem(ref d, 3, prompt); + ReadInt64TupleItem(ref e, 4, prompt); + ReadInt64TupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt64Tuple7(string prompt = EmptyStringHelper.Empty) + { + long a = default; + long b = default; + long c = default; + long d = default; + long e = default; + long f = default; + long g = default; + + ReadInt64TupleItem(ref a, 0, prompt); + ReadInt64TupleItem(ref b, 1, prompt); + ReadInt64TupleItem(ref c, 2, prompt); + ReadInt64TupleItem(ref d, 3, prompt); + ReadInt64TupleItem(ref e, 4, prompt); + ReadInt64TupleItem(ref f, 5, prompt); + ReadInt64TupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadUlong + + /// + /// Читает кортеж из двух значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt64Tuple2(string prompt = EmptyStringHelper.Empty) + { + ulong a = default; + ulong b = default; + + ReadUInt64TupleItem(ref a, 0, prompt); + ReadUInt64TupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt64Tuple3(string prompt = EmptyStringHelper.Empty) + { + ulong a = default; + ulong b = default; + ulong c = default; + + ReadUInt64TupleItem(ref a, 0, prompt); + ReadUInt64TupleItem(ref b, 1, prompt); + ReadUInt64TupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt64Tuple4(string prompt = EmptyStringHelper.Empty) + { + ulong a = default; + ulong b = default; + ulong c = default; + ulong d = default; + + ReadUInt64TupleItem(ref a, 0, prompt); + ReadUInt64TupleItem(ref b, 1, prompt); + ReadUInt64TupleItem(ref c, 2, prompt); + ReadUInt64TupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt64Tuple5(string prompt = EmptyStringHelper.Empty) + { + ulong a = default; + ulong b = default; + ulong c = default; + ulong d = default; + ulong e = default; + + ReadUInt64TupleItem(ref a, 0, prompt); + ReadUInt64TupleItem(ref b, 1, prompt); + ReadUInt64TupleItem(ref c, 2, prompt); + ReadUInt64TupleItem(ref d, 3, prompt); + ReadUInt64TupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt64Tuple6(string prompt = EmptyStringHelper.Empty) + { + ulong a = default; + ulong b = default; + ulong c = default; + ulong d = default; + ulong e = default; + ulong f = default; + + ReadUInt64TupleItem(ref a, 0, prompt); + ReadUInt64TupleItem(ref b, 1, prompt); + ReadUInt64TupleItem(ref c, 2, prompt); + ReadUInt64TupleItem(ref d, 3, prompt); + ReadUInt64TupleItem(ref e, 4, prompt); + ReadUInt64TupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt64Tuple7(string prompt = EmptyStringHelper.Empty) + { + ulong a = default; + ulong b = default; + ulong c = default; + ulong d = default; + ulong e = default; + ulong f = default; + ulong g = default; + + ReadUInt64TupleItem(ref a, 0, prompt); + ReadUInt64TupleItem(ref b, 1, prompt); + ReadUInt64TupleItem(ref c, 2, prompt); + ReadUInt64TupleItem(ref d, 3, prompt); + ReadUInt64TupleItem(ref e, 4, prompt); + ReadUInt64TupleItem(ref f, 5, prompt); + ReadUInt64TupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadShort + + /// + /// Читает кортеж из двух значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt16Tuple2(string prompt = EmptyStringHelper.Empty) + { + short a = default; + short b = default; + + ReadInt16TupleItem(ref a, 0, prompt); + ReadInt16TupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt16Tuple3(string prompt = EmptyStringHelper.Empty) + { + short a = default; + short b = default; + short c = default; + + ReadInt16TupleItem(ref a, 0, prompt); + ReadInt16TupleItem(ref b, 1, prompt); + ReadInt16TupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt16Tuple4(string prompt = EmptyStringHelper.Empty) + { + short a = default; + short b = default; + short c = default; + short d = default; + + ReadInt16TupleItem(ref a, 0, prompt); + ReadInt16TupleItem(ref b, 1, prompt); + ReadInt16TupleItem(ref c, 2, prompt); + ReadInt16TupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt16Tuple5(string prompt = EmptyStringHelper.Empty) + { + short a = default; + short b = default; + short c = default; + short d = default; + short e = default; + + ReadInt16TupleItem(ref a, 0, prompt); + ReadInt16TupleItem(ref b, 1, prompt); + ReadInt16TupleItem(ref c, 2, prompt); + ReadInt16TupleItem(ref d, 3, prompt); + ReadInt16TupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt16Tuple6(string prompt = EmptyStringHelper.Empty) + { + short a = default; + short b = default; + short c = default; + short d = default; + short e = default; + short f = default; + + ReadInt16TupleItem(ref a, 0, prompt); + ReadInt16TupleItem(ref b, 1, prompt); + ReadInt16TupleItem(ref c, 2, prompt); + ReadInt16TupleItem(ref d, 3, prompt); + ReadInt16TupleItem(ref e, 4, prompt); + ReadInt16TupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt16Tuple7(string prompt = EmptyStringHelper.Empty) + { + short a = default; + short b = default; + short c = default; + short d = default; + short e = default; + short f = default; + short g = default; + + ReadInt16TupleItem(ref a, 0, prompt); + ReadInt16TupleItem(ref b, 1, prompt); + ReadInt16TupleItem(ref c, 2, prompt); + ReadInt16TupleItem(ref d, 3, prompt); + ReadInt16TupleItem(ref e, 4, prompt); + ReadInt16TupleItem(ref f, 5, prompt); + ReadInt16TupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); + } + + #endregion + + #region ReadUshort + + /// + /// Читает кортеж из двух значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt16Tuple2(string prompt = EmptyStringHelper.Empty) + { + ushort a = default; + ushort b = default; + + ReadUInt16TupleItem(ref a, 0, prompt); + ReadUInt16TupleItem(ref b, 1, prompt); + + return Of(a, b); + } + + /// + /// Читает кортеж из трёх значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt16Tuple3(string prompt = EmptyStringHelper.Empty) + { + ushort a = default; + ushort b = default; + ushort c = default; + + ReadUInt16TupleItem(ref a, 0, prompt); + ReadUInt16TupleItem(ref b, 1, prompt); + ReadUInt16TupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + /// - /// Читает кортеж из двух значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadBooleanTuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt16Tuple4(string prompt = EmptyStringHelper.Empty) { - bool a = default; - bool b = default; + ushort a = default; + ushort b = default; + ushort c = default; + ushort d = default; - ReadBooleanTupleItem(ref a, 0, prompt); - ReadBooleanTupleItem(ref b, 1, prompt); + ReadUInt16TupleItem(ref a, 0, prompt); + ReadUInt16TupleItem(ref b, 1, prompt); + ReadUInt16TupleItem(ref c, 2, prompt); + ReadUInt16TupleItem(ref d, 3, prompt); - return Of(a, b); + return Of(a, b, c, d); } /// - /// Читает кортеж из трёх значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadBooleanTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt16Tuple5(string prompt = EmptyStringHelper.Empty) { - bool a = default; - bool b = default; - bool c = default; + ushort a = default; + ushort b = default; + ushort c = default; + ushort d = default; + ushort e = default; - ReadBooleanTupleItem(ref a, 0, prompt); - ReadBooleanTupleItem(ref b, 1, prompt); - ReadBooleanTupleItem(ref c, 2, prompt); + ReadUInt16TupleItem(ref a, 0, prompt); + ReadUInt16TupleItem(ref b, 1, prompt); + ReadUInt16TupleItem(ref c, 2, prompt); + ReadUInt16TupleItem(ref d, 3, prompt); + ReadUInt16TupleItem(ref e, 4, prompt); - return Of(a, b, c); + return Of(a, b, c, d, e); } /// - /// Читает кортеж из двух значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadCharTuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt16Tuple6(string prompt = EmptyStringHelper.Empty) { - return Of(Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 0)), - Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 1))); + ushort a = default; + ushort b = default; + ushort c = default; + ushort d = default; + ushort e = default; + ushort f = default; + + ReadUInt16TupleItem(ref a, 0, prompt); + ReadUInt16TupleItem(ref b, 1, prompt); + ReadUInt16TupleItem(ref c, 2, prompt); + ReadUInt16TupleItem(ref d, 3, prompt); + ReadUInt16TupleItem(ref e, 4, prompt); + ReadUInt16TupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); } /// - /// Читает кортеж из трёх значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadCharTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt16Tuple7(string prompt = EmptyStringHelper.Empty) { - return Of(Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 0)), - Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 1)), - Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 2))); + ushort a = default; + ushort b = default; + ushort c = default; + ushort d = default; + ushort e = default; + ushort f = default; + ushort g = default; + + ReadUInt16TupleItem(ref a, 0, prompt); + ReadUInt16TupleItem(ref b, 1, prompt); + ReadUInt16TupleItem(ref c, 2, prompt); + ReadUInt16TupleItem(ref d, 3, prompt); + ReadUInt16TupleItem(ref e, 4, prompt); + ReadUInt16TupleItem(ref f, 5, prompt); + ReadUInt16TupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); } + #endregion + + #region ReadBiginteger + /// - /// Читает кортеж из двух значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadDoubleTuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple2(string prompt = EmptyStringHelper.Empty) { - double a = default; - double b = default; + BigInteger a = default; + BigInteger b = default; - ReadRealTupleItem(ref a, 0, prompt); - ReadRealTupleItem(ref b, 1, prompt); + ReadBigIntegerTupleItem(ref a, 0, prompt); + ReadBigIntegerTupleItem(ref b, 1, prompt); return Of(a, b); } /// - /// Читает кортеж из трёх значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadDoubleTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple3(string prompt = EmptyStringHelper.Empty) { - double a = default; - double b = default; - double c = default; + BigInteger a = default; + BigInteger b = default; + BigInteger c = default; - ReadRealTupleItem(ref a, 0, prompt); - ReadRealTupleItem(ref b, 1, prompt); - ReadRealTupleItem(ref c, 2, prompt); + ReadBigIntegerTupleItem(ref a, 0, prompt); + ReadBigIntegerTupleItem(ref b, 1, prompt); + ReadBigIntegerTupleItem(ref c, 2, prompt); return Of(a, b, c); } /// - /// Читает кортеж из двух значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadInt32Tuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple4(string prompt = EmptyStringHelper.Empty) { - int a = default; - int b = default; + BigInteger a = default; + BigInteger b = default; + BigInteger c = default; + BigInteger d = default; - ReadIntegerTupleItem(ref a, 0, prompt); - ReadIntegerTupleItem(ref b, 1, prompt); + ReadBigIntegerTupleItem(ref a, 0, prompt); + ReadBigIntegerTupleItem(ref b, 1, prompt); + ReadBigIntegerTupleItem(ref c, 2, prompt); + ReadBigIntegerTupleItem(ref d, 3, prompt); - return Of(a, b); + return Of(a, b, c, d); } /// - /// Читает кортеж из трёх значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadInt32Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple5(string prompt = EmptyStringHelper.Empty) { - int a = default; - int b = default; - int c = default; + BigInteger a = default; + BigInteger b = default; + BigInteger c = default; + BigInteger d = default; + BigInteger e = default; - ReadIntegerTupleItem(ref a, 0, prompt); - ReadIntegerTupleItem(ref b, 1, prompt); - ReadIntegerTupleItem(ref c, 2, prompt); + ReadBigIntegerTupleItem(ref a, 0, prompt); + ReadBigIntegerTupleItem(ref b, 1, prompt); + ReadBigIntegerTupleItem(ref c, 2, prompt); + ReadBigIntegerTupleItem(ref d, 3, prompt); + ReadBigIntegerTupleItem(ref e, 4, prompt); - return Of(a, b, c); + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple6(string prompt = EmptyStringHelper.Empty) + { + BigInteger a = default; + BigInteger b = default; + BigInteger c = default; + BigInteger d = default; + BigInteger e = default; + BigInteger f = default; + + ReadBigIntegerTupleItem(ref a, 0, prompt); + ReadBigIntegerTupleItem(ref b, 1, prompt); + ReadBigIntegerTupleItem(ref c, 2, prompt); + ReadBigIntegerTupleItem(ref d, 3, prompt); + ReadBigIntegerTupleItem(ref e, 4, prompt); + ReadBigIntegerTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple7(string prompt = EmptyStringHelper.Empty) + { + BigInteger a = default; + BigInteger b = default; + BigInteger c = default; + BigInteger d = default; + BigInteger e = default; + BigInteger f = default; + BigInteger g = default; + + ReadBigIntegerTupleItem(ref a, 0, prompt); + ReadBigIntegerTupleItem(ref b, 1, prompt); + ReadBigIntegerTupleItem(ref c, 2, prompt); + ReadBigIntegerTupleItem(ref d, 3, prompt); + ReadBigIntegerTupleItem(ref e, 4, prompt); + ReadBigIntegerTupleItem(ref f, 5, prompt); + ReadBigIntegerTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); } + #endregion + + #region ReadString + /// /// Читает кортеж из двух значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. public static Tuple ReadStringTuple2(string prompt = EmptyStringHelper.Empty) { - return Of(Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 0)), - Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 1))); + string a = default; + string b = default; + + ReadStringTupleItem(ref a, 0, prompt); + ReadStringTupleItem(ref b, 1, prompt); + + return Of(a, b); } /// @@ -142,13 +1769,111 @@ public static Tuple ReadStringTuple2(string prompt = EmptyString /// Кортеж. public static Tuple ReadStringTuple3(string prompt = EmptyStringHelper.Empty) { - return Of(Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 0)), - Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 1)), - Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, 2))); + string a = default; + string b = default; + string c = default; + + ReadStringTupleItem(ref a, 0, prompt); + ReadStringTupleItem(ref b, 1, prompt); + ReadStringTupleItem(ref c, 2, prompt); + + return Of(a, b, c); + } + + /// + /// Читает кортеж из четырёх значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadStringTuple4(string prompt = EmptyStringHelper.Empty) + { + string a = default; + string b = default; + string c = default; + string d = default; + + ReadStringTupleItem(ref a, 0, prompt); + ReadStringTupleItem(ref b, 1, prompt); + ReadStringTupleItem(ref c, 2, prompt); + ReadStringTupleItem(ref d, 3, prompt); + + return Of(a, b, c, d); + } + + /// + /// Читает кортеж из пяти значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadStringTuple5(string prompt = EmptyStringHelper.Empty) + { + string a = default; + string b = default; + string c = default; + string d = default; + string e = default; + + ReadStringTupleItem(ref a, 0, prompt); + ReadStringTupleItem(ref b, 1, prompt); + ReadStringTupleItem(ref c, 2, prompt); + ReadStringTupleItem(ref d, 3, prompt); + ReadStringTupleItem(ref e, 4, prompt); + + return Of(a, b, c, d, e); + } + + /// + /// Читает кортеж из шести значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadStringTuple6(string prompt = EmptyStringHelper.Empty) + { + string a = default; + string b = default; + string c = default; + string d = default; + string e = default; + string f = default; + + ReadStringTupleItem(ref a, 0, prompt); + ReadStringTupleItem(ref b, 1, prompt); + ReadStringTupleItem(ref c, 2, prompt); + ReadStringTupleItem(ref d, 3, prompt); + ReadStringTupleItem(ref e, 4, prompt); + ReadStringTupleItem(ref f, 5, prompt); + + return Of(a, b, c, d, e, f); + } + + /// + /// Читает кортеж из семи значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadStringTuple7(string prompt = EmptyStringHelper.Empty) + { + string a = default; + string b = default; + string c = default; + string d = default; + string e = default; + string f = default; + string g = default; + + ReadStringTupleItem(ref a, 0, prompt); + ReadStringTupleItem(ref b, 1, prompt); + ReadStringTupleItem(ref c, 2, prompt); + ReadStringTupleItem(ref d, 3, prompt); + ReadStringTupleItem(ref e, 4, prompt); + ReadStringTupleItem(ref f, 5, prompt); + ReadStringTupleItem(ref g, 6, prompt); + + return Of(a, b, c, d, e, f, g); } + + #endregion + #endregion public #region private + private static void ReadBooleanTupleItem(ref bool field, int index, string prompt) { while (true) @@ -163,12 +1888,54 @@ private static void ReadBooleanTupleItem(ref bool field, int index, string promp } } - private static void ReadIntegerTupleItem(ref int field, int index, string prompt) + private static void ReadByteTupleItem(ref byte field, int index, string prompt) { while (true) try { - field = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + field = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadSByteTupleItem(ref sbyte field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadSByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadCharTupleItem(ref char field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadDecimalTupleItem(ref decimal field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); return; } catch (Exception) @@ -177,7 +1944,7 @@ private static void ReadIntegerTupleItem(ref int field, int index, string prompt } } - private static void ReadRealTupleItem(ref double field, int index, string prompt) + private static void ReadDoubleTupleItem(ref double field, int index, string prompt) { while (true) try @@ -190,6 +1957,133 @@ private static void ReadRealTupleItem(ref double field, int index, string prompt InputErrorHelper.Message.PrintLine(); } } + + private static void ReadSingleTupleItem(ref float field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadSingle(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadInt32TupleItem(ref int field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadUint32TupleItem(ref uint field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadUint32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadInt64TupleItem(ref long field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadUInt64TupleItem(ref ulong field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadInt16TupleItem(ref short field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadUInt16TupleItem(ref ushort field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadBigIntegerTupleItem(ref BigInteger field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + + private static void ReadStringTupleItem(ref string field, int index, string prompt) + { + while (true) + try + { + field = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + return; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + } + #endregion private } } From 42c30b47db23746f4df79c0d1ab42751428bb1da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sat, 4 Apr 2020 13:29:41 +0700 Subject: [PATCH 013/102] Tiple.Generators regions adding --- .../Utils/Tuple.Generators.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/NETMouse - .NET release/Utils/Tuple.Generators.cs b/NETMouse - .NET release/Utils/Tuple.Generators.cs index aed1966..54f6e0a 100644 --- a/NETMouse - .NET release/Utils/Tuple.Generators.cs +++ b/NETMouse - .NET release/Utils/Tuple.Generators.cs @@ -8,6 +8,9 @@ namespace ABCNET.Utils public static partial class Tuple { #region public + + #region OfOverloads + /// /// 2 . /// @@ -84,6 +87,10 @@ public static Tuple Of(T i return new Tuple(item1, item2, item3, item4, item5, item6, item7); } + #endregion + + #region RandomInt + /// /// Int32. /// @@ -150,6 +157,10 @@ public static Tuple Random7(int low = Int32Bo return Of(Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), Base.Random(low, high)); } + #endregion + + #region RandomDouble + /// /// Double. /// @@ -216,6 +227,10 @@ public static Tuple Rand return Of(Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), Base.Random(low, high)); } + #endregion + + #region Fill + /// /// , . /// @@ -275,6 +290,9 @@ public static Tuple Fill7(T value) { return Of(value, value, value, value, value, value, value); } + + #endregion + #endregion public } } \ No newline at end of file From f81234e96c732941920376833f66fc81d1d29447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sun, 5 Apr 2020 18:11:47 +0700 Subject: [PATCH 014/102] closes #80 ArrayE --- NETMouse - .NET release/Extensions/ArrayE.Generators.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Extensions/ArrayE.Generators.cs b/NETMouse - .NET release/Extensions/ArrayE.Generators.cs index 3075f3e..73911aa 100644 --- a/NETMouse - .NET release/Extensions/ArrayE.Generators.cs +++ b/NETMouse - .NET release/Extensions/ArrayE.Generators.cs @@ -9,6 +9,7 @@ namespace ABCNET.Extensions public static partial class ArrayE { #region public + /// /// Заполняет массив на основе функции селектора. /// @@ -91,6 +92,7 @@ public static void Fill(this T[] array, T value) for (int i = 0; i < array.Length; i++) array[i] = value; } + #endregion public } } From 8104101a652fd19669f553934df554b58599ba53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sun, 5 Apr 2020 18:12:33 +0700 Subject: [PATCH 015/102] closes #80 BaseE --- NETMouse - .NET release/Extensions/BaseE.Generators.cs | 2 ++ NETMouse - .NET release/Extensions/BaseE.Other.cs | 2 ++ NETMouse - .NET release/Extensions/BaseE.Output.cs | 2 ++ 3 files changed, 6 insertions(+) diff --git a/NETMouse - .NET release/Extensions/BaseE.Generators.cs b/NETMouse - .NET release/Extensions/BaseE.Generators.cs index 3a1a85a..c207215 100644 --- a/NETMouse - .NET release/Extensions/BaseE.Generators.cs +++ b/NETMouse - .NET release/Extensions/BaseE.Generators.cs @@ -8,6 +8,7 @@ namespace ABCNET.Extensions public static partial class BaseE { #region public + /// /// Создаёт последовательность от начального числа до конечного. /// @@ -50,6 +51,7 @@ public static IEnumerable Step(this int from, int step) from += step; } while (true); } + #endregion public } } diff --git a/NETMouse - .NET release/Extensions/BaseE.Other.cs b/NETMouse - .NET release/Extensions/BaseE.Other.cs index f871dd0..fa95bbe 100644 --- a/NETMouse - .NET release/Extensions/BaseE.Other.cs +++ b/NETMouse - .NET release/Extensions/BaseE.Other.cs @@ -6,6 +6,7 @@ public static partial class BaseE { #region public + /// /// Проверяет лежит ли число между другими двумя. /// @@ -19,6 +20,7 @@ public static bool IsBetween(this int target, int firstBorder, int secondBorder) Utils.Base.Swap(ref firstBorder, ref secondBorder); return (target >= firstBorder) && (target <= secondBorder); } + #endregion public } } diff --git a/NETMouse - .NET release/Extensions/BaseE.Output.cs b/NETMouse - .NET release/Extensions/BaseE.Output.cs index 6936104..220354f 100644 --- a/NETMouse - .NET release/Extensions/BaseE.Output.cs +++ b/NETMouse - .NET release/Extensions/BaseE.Output.cs @@ -8,6 +8,7 @@ namespace ABCNET.Extensions public static partial class BaseE { #region public + /// /// Boolean. /// @@ -183,6 +184,7 @@ public static int PrintLine(this int item) Console.WriteLine(item.NilOrString()); return item; } + #endregion public } } \ No newline at end of file From 2e5201bfe281e2bb3e8e6b079f4f430e4f2bebc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sun, 5 Apr 2020 18:12:47 +0700 Subject: [PATCH 016/102] closes #80 MatrixE --- NETMouse - .NET release/Extensions/MatrixE.Generators.cs | 2 ++ NETMouse - .NET release/Extensions/MatrixE.Getters.cs | 3 +++ NETMouse - .NET release/Extensions/MatrixE.Output.cs | 3 +++ 3 files changed, 8 insertions(+) diff --git a/NETMouse - .NET release/Extensions/MatrixE.Generators.cs b/NETMouse - .NET release/Extensions/MatrixE.Generators.cs index 2193287..9fb3800 100644 --- a/NETMouse - .NET release/Extensions/MatrixE.Generators.cs +++ b/NETMouse - .NET release/Extensions/MatrixE.Generators.cs @@ -9,6 +9,7 @@ namespace ABCNET.Extensions public static partial class MatrixE { #region public + /// /// Заполняет матрицу на основе функции селектора. /// @@ -79,6 +80,7 @@ public static void Fill(this T[,] matrix, T value) for (int j = 0; j < matrix.GetLength(1); j++) matrix[i, j] = value; } + #endregion public } } diff --git a/NETMouse - .NET release/Extensions/MatrixE.Getters.cs b/NETMouse - .NET release/Extensions/MatrixE.Getters.cs index 0661864..b706bdf 100644 --- a/NETMouse - .NET release/Extensions/MatrixE.Getters.cs +++ b/NETMouse - .NET release/Extensions/MatrixE.Getters.cs @@ -10,6 +10,7 @@ namespace ABCNET.Extensions public static partial class MatrixE { #region public + /// /// Получает столбец матрицы. /// @@ -209,6 +210,7 @@ public static IEnumerable Rows(this T[,] matrix) yield return matrix.InternalGetRow(j); } } + #endregion public #region private @@ -343,6 +345,7 @@ private static TOutput[] InternalGetRow(this T[,] matrix, int index, return newMatrix; } + #endregion private } } diff --git a/NETMouse - .NET release/Extensions/MatrixE.Output.cs b/NETMouse - .NET release/Extensions/MatrixE.Output.cs index 06f1b38..d2225aa 100644 --- a/NETMouse - .NET release/Extensions/MatrixE.Output.cs +++ b/NETMouse - .NET release/Extensions/MatrixE.Output.cs @@ -8,6 +8,7 @@ namespace ABCNET.Extensions public static partial class MatrixE { #region public + /// /// Выводит матрицу. /// @@ -77,6 +78,7 @@ public static partial class MatrixE Console.WriteLine(); return matrix; } + #endregion public #region private @@ -137,6 +139,7 @@ public static partial class MatrixE return matrix; } + #endregion private } } From a6f313df15ab97f742cb2595182a31352f6cb172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sun, 5 Apr 2020 18:13:04 +0700 Subject: [PATCH 017/102] closes #80 SequenceE --- NETMouse - .NET release/Extensions/SequenceE.Getters.cs | 2 ++ NETMouse - .NET release/Extensions/SequenceE.Output.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/NETMouse - .NET release/Extensions/SequenceE.Getters.cs b/NETMouse - .NET release/Extensions/SequenceE.Getters.cs index 2f2a439..c7c81bd 100644 --- a/NETMouse - .NET release/Extensions/SequenceE.Getters.cs +++ b/NETMouse - .NET release/Extensions/SequenceE.Getters.cs @@ -10,6 +10,7 @@ namespace ABCNET.Extensions public static partial class SequenceE { #region public + /// /// Преобразует последовательность в кортеж. /// @@ -705,6 +706,7 @@ public static PartitionResult Partition(this IEnumerable collection, Pr return new PartitionResult(trueList, falseList); } + #endregion public } } diff --git a/NETMouse - .NET release/Extensions/SequenceE.Output.cs b/NETMouse - .NET release/Extensions/SequenceE.Output.cs index cffec6a..0dc70e8 100644 --- a/NETMouse - .NET release/Extensions/SequenceE.Output.cs +++ b/NETMouse - .NET release/Extensions/SequenceE.Output.cs @@ -9,6 +9,7 @@ namespace ABCNET.Extensions public static partial class SequenceE { #region public + /// /// Выводит последовательность. /// @@ -130,6 +131,7 @@ public static IEnumerable PrintLinesBy(this IEnumerable collec Console.WriteLine(selector(item).NilOrString()); return collection; } + #endregion public } } From e0e7267513b8180c4f700315d83ccbb2701ca727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sun, 5 Apr 2020 18:13:22 +0700 Subject: [PATCH 018/102] closes #80 StringE --- NETMouse - .NET release/Extensions/StringE.Output.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Extensions/StringE.Output.cs b/NETMouse - .NET release/Extensions/StringE.Output.cs index dd6f350..a76a8da 100644 --- a/NETMouse - .NET release/Extensions/StringE.Output.cs +++ b/NETMouse - .NET release/Extensions/StringE.Output.cs @@ -8,6 +8,7 @@ namespace ABCNET.Extensions public static partial class StringE { #region public + /// /// Выводит строку на экран. /// @@ -29,6 +30,7 @@ public static string PrintLine(this string input) Console.WriteLine(input.NilOrString()); return input; } + #endregion public } } From 9a568b6913fee6c75ce31b12be1d31506ab149ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sun, 5 Apr 2020 18:13:31 +0700 Subject: [PATCH 019/102] closes #80 TupleE --- NETMouse - .NET release/Extensions/TupleE.Getters.cs | 10 ++-------- NETMouse - .NET release/Extensions/TupleE.Output.cs | 2 ++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/NETMouse - .NET release/Extensions/TupleE.Getters.cs b/NETMouse - .NET release/Extensions/TupleE.Getters.cs index 59a19bc..912d389 100644 --- a/NETMouse - .NET release/Extensions/TupleE.Getters.cs +++ b/NETMouse - .NET release/Extensions/TupleE.Getters.cs @@ -9,6 +9,7 @@ namespace ABCNET.Extensions public static partial class TupleE { #region public + /// /// Преобразует кортеж в последовательность. /// @@ -42,8 +43,6 @@ public static Tuple Add(this Tuple tuple, T2 item) return new Tuple(tuple.Item1, tuple.Item2, item); } - - /// /// Преобразует кортеж в последовательность. /// @@ -78,8 +77,6 @@ public static Tuple Add(this Tuple tuple, T item) return new Tuple(tuple.Item1, tuple.Item2, tuple.Item3, item); } - - /// /// Преобразует кортеж в последовательность. /// @@ -115,8 +112,6 @@ public static Tuple Add(this Tuple tuple, T item) return new Tuple(tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4, item); } - - /// /// Преобразует кортеж в последовательность. /// @@ -153,8 +148,6 @@ public static Tuple Add(this Tuple tuple, T return new Tuple(tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4, tuple.Item5, item); } - - /// /// Преобразует кортеж в последовательность. /// @@ -207,6 +200,7 @@ public static IEnumerable ToSequence(this Tuple tuple yield return tuple.Item6; yield return tuple.Item7; } + #endregion public } } diff --git a/NETMouse - .NET release/Extensions/TupleE.Output.cs b/NETMouse - .NET release/Extensions/TupleE.Output.cs index a34bf08..a44b159 100644 --- a/NETMouse - .NET release/Extensions/TupleE.Output.cs +++ b/NETMouse - .NET release/Extensions/TupleE.Output.cs @@ -8,6 +8,7 @@ namespace ABCNET.Extensions public static partial class TupleE { #region public + /// /// Выводит кортеж. /// @@ -786,6 +787,7 @@ public static Tuple PrintLinesBy(this Tuple Date: Sun, 5 Apr 2020 18:13:41 +0700 Subject: [PATCH 020/102] closes #80 Array --- NETMouse - .NET release/Utils/Array.Generators.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Utils/Array.Generators.cs b/NETMouse - .NET release/Utils/Array.Generators.cs index 8a50d93..f749c8c 100644 --- a/NETMouse - .NET release/Utils/Array.Generators.cs +++ b/NETMouse - .NET release/Utils/Array.Generators.cs @@ -8,6 +8,7 @@ namespace ABCNET.Utils public static partial class Array { #region public + /// /// Создаёт массив из указанных значений. /// @@ -123,6 +124,7 @@ public static T[] Fill(int count, T value) return source; } + #endregion public } } From 59da918593e195a6609e3e579d9aaf9f8d42f6ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sun, 5 Apr 2020 18:13:50 +0700 Subject: [PATCH 021/102] closes #80 Base --- NETMouse - .NET release/Utils/Base.Input.cs | 39 ------------------- .../Utils/Base.Nullable.Input.cs | 3 ++ NETMouse - .NET release/Utils/Base.Other.cs | 2 + 3 files changed, 5 insertions(+), 39 deletions(-) diff --git a/NETMouse - .NET release/Utils/Base.Input.cs b/NETMouse - .NET release/Utils/Base.Input.cs index a22dd78..57112ab 100644 --- a/NETMouse - .NET release/Utils/Base.Input.cs +++ b/NETMouse - .NET release/Utils/Base.Input.cs @@ -171,16 +171,6 @@ public static double Random() return RandomHelper.Random.NextDouble(); } - /// - /// [0;1). - /// - /// . - [Obsolete(ObsoletePABCSystemStyleHelper.Message + "Base.Random.")] - public static double Rand() - { - return RandomHelper.Random.NextDouble(); - } - /// /// [low;high]. /// @@ -195,21 +185,6 @@ public static int Random(int low, int high) return RandomHelper.Random.Next(low, high + 1); } - /// - /// [low;high]. - /// - /// . - /// . - /// . - [Obsolete(ObsoletePABCSystemStyleHelper.Message + "Base.Random.")] - public static int Rand(int low, int high) - { - if (high < low) - Swap(ref low, ref high); - - return RandomHelper.Random.Next(low, high + 1); - } - /// /// [low;high]. /// @@ -224,20 +199,6 @@ public static double Random(double low, double high) return low + Random() * (high - low); } - /// - /// [low;high]. - /// - /// . - /// . - /// . - [Obsolete(ObsoletePABCSystemStyleHelper.Message + "Base.Random.")] - public static double Rand(double low, double high) - { - if (high < low) - Swap(ref low, ref high); - - return low + Rand() * (high - low); - } #endregion public } } \ No newline at end of file diff --git a/NETMouse - .NET release/Utils/Base.Nullable.Input.cs b/NETMouse - .NET release/Utils/Base.Nullable.Input.cs index 4b2eafe..8301adb 100644 --- a/NETMouse - .NET release/Utils/Base.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/Base.Nullable.Input.cs @@ -14,6 +14,7 @@ public static partial class Base public static partial class Nullable { #region public + /// /// Читает значение типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -167,6 +168,7 @@ public static partial class Nullable string result = InternalReadTrimmedString(prompt); return result == NilStringHelper.Nil ? null : new BigInteger?(BigInteger.Parse(result)); } + #endregion public #region private @@ -174,6 +176,7 @@ private static string InternalReadTrimmedString(string prompt) { return ReadString(prompt).Trim().ToLower(); } + #endregion private } } diff --git a/NETMouse - .NET release/Utils/Base.Other.cs b/NETMouse - .NET release/Utils/Base.Other.cs index bd3300d..0cf4987 100644 --- a/NETMouse - .NET release/Utils/Base.Other.cs +++ b/NETMouse - .NET release/Utils/Base.Other.cs @@ -6,6 +6,7 @@ public static partial class Base { #region public + /// /// Меняет местами значения двух переменных. /// @@ -17,6 +18,7 @@ public static void Swap(ref T x, ref T y) x = y; y = z; } + #endregion public } } From 93f73f2472f30c177af0c2dc03385eb0429fc419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sun, 5 Apr 2020 18:14:01 +0700 Subject: [PATCH 022/102] closes #80 Matrix --- NETMouse - .NET release/Utils/Matrix.Generators.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Utils/Matrix.Generators.cs b/NETMouse - .NET release/Utils/Matrix.Generators.cs index fb4678b..daf0f4f 100644 --- a/NETMouse - .NET release/Utils/Matrix.Generators.cs +++ b/NETMouse - .NET release/Utils/Matrix.Generators.cs @@ -8,6 +8,7 @@ namespace ABCNET.Utils public static partial class Matrix { #region public + /// /// . /// @@ -135,6 +136,7 @@ public static partial class Matrix return source; } + #endregion public } } \ No newline at end of file From 8ea8adf81b82074657a2d574363c33b2967e2ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sun, 5 Apr 2020 18:14:09 +0700 Subject: [PATCH 023/102] closes #80 Sequence --- NETMouse - .NET release/Utils/Sequence.Generators.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Utils/Sequence.Generators.cs b/NETMouse - .NET release/Utils/Sequence.Generators.cs index 0d0a25a..c982621 100644 --- a/NETMouse - .NET release/Utils/Sequence.Generators.cs +++ b/NETMouse - .NET release/Utils/Sequence.Generators.cs @@ -9,6 +9,7 @@ namespace ABCNET.Utils public static partial class Sequence { #region public + /// /// . /// @@ -77,6 +78,7 @@ public static IEnumerable Fill(int count, T value) for (int i = 0; i < count; i++) yield return value; } + #endregion public } } \ No newline at end of file From 17c8cb4d49f0bf84e0ab193041c11808d0cdd2a1 Mon Sep 17 00:00:00 2001 From: Alvin Seville Date: Sun, 5 Apr 2020 17:13:51 +0300 Subject: [PATCH 024/102] closes #112 - Base.Input.cs --- NETMouse - .NET release/Utils/Base.Input.cs | 96 ++++++++++++++++++--- 1 file changed, 84 insertions(+), 12 deletions(-) diff --git a/NETMouse - .NET release/Utils/Base.Input.cs b/NETMouse - .NET release/Utils/Base.Input.cs index a982973..c898512 100644 --- a/NETMouse - .NET release/Utils/Base.Input.cs +++ b/NETMouse - .NET release/Utils/Base.Input.cs @@ -18,7 +18,13 @@ public static partial class Base public static bool ReadBoolean(string prompt = EmptyStringHelper.Empty) { prompt.Print(); - return bool.Parse(Console.ReadLine()); + bool result; + while (bool.TryParse(Console.ReadLine(), out result)) + { + InputErrorHelper.Message.PrintLine(); + prompt.Print(); + } + return result; } /// @@ -29,7 +35,13 @@ public static bool ReadBoolean(string prompt = EmptyStringHelper.Empty) public static byte ReadByte(string prompt = EmptyStringHelper.Empty) { prompt.Print(); - return byte.Parse(Console.ReadLine()); + byte result; + while (byte.TryParse(Console.ReadLine(), out result)) + { + InputErrorHelper.Message.PrintLine(); + prompt.Print(); + } + return result; } /// @@ -40,7 +52,13 @@ public static byte ReadByte(string prompt = EmptyStringHelper.Empty) public static sbyte ReadSByte(string prompt = EmptyStringHelper.Empty) { prompt.Print(); - return sbyte.Parse(Console.ReadLine()); + sbyte result; + while (sbyte.TryParse(Console.ReadLine(), out result)) + { + InputErrorHelper.Message.PrintLine(); + prompt.Print(); + } + return result; } /// @@ -62,7 +80,13 @@ public static char ReadChar(string prompt = EmptyStringHelper.Empty) public static decimal ReadDecimal(string prompt = EmptyStringHelper.Empty) { prompt.Print(); - return decimal.Parse(Console.ReadLine()); + decimal result; + while (decimal.TryParse(Console.ReadLine(), out result)) + { + InputErrorHelper.Message.PrintLine(); + prompt.Print(); + } + return result; } /// @@ -73,7 +97,13 @@ public static decimal ReadDecimal(string prompt = EmptyStringHelper.Empty) public static double ReadDouble(string prompt = EmptyStringHelper.Empty) { prompt.Print(); - return double.Parse(Console.ReadLine()); + double result; + while (double.TryParse(Console.ReadLine(), out result)) + { + InputErrorHelper.Message.PrintLine(); + prompt.Print(); + } + return result; } /// @@ -84,7 +114,13 @@ public static double ReadDouble(string prompt = EmptyStringHelper.Empty) public static float ReadSingle(string prompt = EmptyStringHelper.Empty) { prompt.Print(); - return float.Parse(Console.ReadLine()); + float result; + while (float.TryParse(Console.ReadLine(), out result)) + { + InputErrorHelper.Message.PrintLine(); + prompt.Print(); + } + return result; } /// @@ -95,7 +131,13 @@ public static float ReadSingle(string prompt = EmptyStringHelper.Empty) public static int ReadInt32(string prompt = EmptyStringHelper.Empty) { prompt.Print(); - return int.Parse(Console.ReadLine()); + int result; + while (int.TryParse(Console.ReadLine(), out result)) + { + InputErrorHelper.Message.PrintLine(); + prompt.Print(); + } + return result; } /// @@ -106,7 +148,13 @@ public static int ReadInt32(string prompt = EmptyStringHelper.Empty) public static uint ReadUInt32(string prompt = EmptyStringHelper.Empty) { prompt.Print(); - return uint.Parse(Console.ReadLine()); + uint result; + while (uint.TryParse(Console.ReadLine(), out result)) + { + InputErrorHelper.Message.PrintLine(); + prompt.Print(); + } + return result; } /// @@ -117,7 +165,13 @@ public static uint ReadUInt32(string prompt = EmptyStringHelper.Empty) public static long ReadInt64(string prompt = EmptyStringHelper.Empty) { prompt.Print(); - return long.Parse(Console.ReadLine()); + long result; + while (long.TryParse(Console.ReadLine(), out result)) + { + InputErrorHelper.Message.PrintLine(); + prompt.Print(); + } + return result; } /// @@ -128,7 +182,13 @@ public static long ReadInt64(string prompt = EmptyStringHelper.Empty) public static ulong ReadUInt64(string prompt = EmptyStringHelper.Empty) { prompt.Print(); - return ulong.Parse(Console.ReadLine()); + ulong result; + while (ulong.TryParse(Console.ReadLine(), out result)) + { + InputErrorHelper.Message.PrintLine(); + prompt.Print(); + } + return result; } /// @@ -139,7 +199,13 @@ public static ulong ReadUInt64(string prompt = EmptyStringHelper.Empty) public static short ReadInt16(string prompt = EmptyStringHelper.Empty) { prompt.Print(); - return short.Parse(Console.ReadLine()); + short result; + while (short.TryParse(Console.ReadLine(), out result)) + { + InputErrorHelper.Message.PrintLine(); + prompt.Print(); + } + return result; } /// @@ -150,7 +216,13 @@ public static short ReadInt16(string prompt = EmptyStringHelper.Empty) public static ushort ReadUInt16(string prompt = EmptyStringHelper.Empty) { prompt.Print(); - return ushort.Parse(Console.ReadLine()); + ushort result; + while (ushort.TryParse(Console.ReadLine(), out result)) + { + InputErrorHelper.Message.PrintLine(); + prompt.Print(); + } + return result; } /// From 39036c3705137f3c5b825a8f5151628a4ead3443 Mon Sep 17 00:00:00 2001 From: Alvin Seville Date: Sun, 5 Apr 2020 17:14:59 +0300 Subject: [PATCH 025/102] [internal] formatting in Base.Input.cs --- NETMouse - .NET release/Utils/Base.Input.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Utils/Base.Input.cs b/NETMouse - .NET release/Utils/Base.Input.cs index c898512..4845804 100644 --- a/NETMouse - .NET release/Utils/Base.Input.cs +++ b/NETMouse - .NET release/Utils/Base.Input.cs @@ -10,6 +10,7 @@ namespace ABCNET.Utils public static partial class Base { #region public + /// /// Boolean. [ IDE PascalABC.NET.] /// @@ -323,6 +324,7 @@ public static double Rand(double low, double high) return low + Rand() * (high - low); } + #endregion public } } \ No newline at end of file From ebe5fb2f11dd5649ec5fe62aa6d578442323b74d Mon Sep 17 00:00:00 2001 From: Alvin Seville Date: Sun, 5 Apr 2020 17:25:27 +0300 Subject: [PATCH 026/102] [internal] formatting in Base.Nullable.Input.cs --- NETMouse - .NET release/Utils/Base.Nullable.Input.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NETMouse - .NET release/Utils/Base.Nullable.Input.cs b/NETMouse - .NET release/Utils/Base.Nullable.Input.cs index 4b2eafe..6729068 100644 --- a/NETMouse - .NET release/Utils/Base.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/Base.Nullable.Input.cs @@ -14,6 +14,7 @@ public static partial class Base public static partial class Nullable { #region public + /// /// Читает значение типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -167,13 +168,16 @@ public static partial class Nullable string result = InternalReadTrimmedString(prompt); return result == NilStringHelper.Nil ? null : new BigInteger?(BigInteger.Parse(result)); } + #endregion public #region private + private static string InternalReadTrimmedString(string prompt) { return ReadString(prompt).Trim().ToLower(); } + #endregion private } } From 676231582679569d47614fa4679c169e86c44bd9 Mon Sep 17 00:00:00 2001 From: Alvin Seville Date: Sun, 5 Apr 2020 17:39:10 +0300 Subject: [PATCH 027/102] closes #112 - fixes in Base.Input.cs --- NETMouse - .NET release/Utils/Base.Input.cs | 32 ++++++++++++--------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/NETMouse - .NET release/Utils/Base.Input.cs b/NETMouse - .NET release/Utils/Base.Input.cs index 4845804..e0797cc 100644 --- a/NETMouse - .NET release/Utils/Base.Input.cs +++ b/NETMouse - .NET release/Utils/Base.Input.cs @@ -20,7 +20,7 @@ public static bool ReadBoolean(string prompt = EmptyStringHelper.Empty) { prompt.Print(); bool result; - while (bool.TryParse(Console.ReadLine(), out result)) + while (!bool.TryParse(Console.ReadLine(), out result)) { InputErrorHelper.Message.PrintLine(); prompt.Print(); @@ -37,7 +37,7 @@ public static byte ReadByte(string prompt = EmptyStringHelper.Empty) { prompt.Print(); byte result; - while (byte.TryParse(Console.ReadLine(), out result)) + while (!byte.TryParse(Console.ReadLine(), out result)) { InputErrorHelper.Message.PrintLine(); prompt.Print(); @@ -54,7 +54,7 @@ public static sbyte ReadSByte(string prompt = EmptyStringHelper.Empty) { prompt.Print(); sbyte result; - while (sbyte.TryParse(Console.ReadLine(), out result)) + while (!sbyte.TryParse(Console.ReadLine(), out result)) { InputErrorHelper.Message.PrintLine(); prompt.Print(); @@ -82,7 +82,7 @@ public static decimal ReadDecimal(string prompt = EmptyStringHelper.Empty) { prompt.Print(); decimal result; - while (decimal.TryParse(Console.ReadLine(), out result)) + while (!decimal.TryParse(Console.ReadLine(), out result)) { InputErrorHelper.Message.PrintLine(); prompt.Print(); @@ -99,7 +99,7 @@ public static double ReadDouble(string prompt = EmptyStringHelper.Empty) { prompt.Print(); double result; - while (double.TryParse(Console.ReadLine(), out result)) + while (!double.TryParse(Console.ReadLine(), out result)) { InputErrorHelper.Message.PrintLine(); prompt.Print(); @@ -116,7 +116,7 @@ public static float ReadSingle(string prompt = EmptyStringHelper.Empty) { prompt.Print(); float result; - while (float.TryParse(Console.ReadLine(), out result)) + while (!float.TryParse(Console.ReadLine(), out result)) { InputErrorHelper.Message.PrintLine(); prompt.Print(); @@ -133,7 +133,7 @@ public static int ReadInt32(string prompt = EmptyStringHelper.Empty) { prompt.Print(); int result; - while (int.TryParse(Console.ReadLine(), out result)) + while (!int.TryParse(Console.ReadLine(), out result)) { InputErrorHelper.Message.PrintLine(); prompt.Print(); @@ -150,7 +150,7 @@ public static uint ReadUInt32(string prompt = EmptyStringHelper.Empty) { prompt.Print(); uint result; - while (uint.TryParse(Console.ReadLine(), out result)) + while (!uint.TryParse(Console.ReadLine(), out result)) { InputErrorHelper.Message.PrintLine(); prompt.Print(); @@ -167,7 +167,7 @@ public static long ReadInt64(string prompt = EmptyStringHelper.Empty) { prompt.Print(); long result; - while (long.TryParse(Console.ReadLine(), out result)) + while (!long.TryParse(Console.ReadLine(), out result)) { InputErrorHelper.Message.PrintLine(); prompt.Print(); @@ -184,7 +184,7 @@ public static ulong ReadUInt64(string prompt = EmptyStringHelper.Empty) { prompt.Print(); ulong result; - while (ulong.TryParse(Console.ReadLine(), out result)) + while (!ulong.TryParse(Console.ReadLine(), out result)) { InputErrorHelper.Message.PrintLine(); prompt.Print(); @@ -201,7 +201,7 @@ public static short ReadInt16(string prompt = EmptyStringHelper.Empty) { prompt.Print(); short result; - while (short.TryParse(Console.ReadLine(), out result)) + while (!short.TryParse(Console.ReadLine(), out result)) { InputErrorHelper.Message.PrintLine(); prompt.Print(); @@ -218,7 +218,7 @@ public static ushort ReadUInt16(string prompt = EmptyStringHelper.Empty) { prompt.Print(); ushort result; - while (ushort.TryParse(Console.ReadLine(), out result)) + while (!ushort.TryParse(Console.ReadLine(), out result)) { InputErrorHelper.Message.PrintLine(); prompt.Print(); @@ -245,7 +245,13 @@ public static string ReadString(string prompt = EmptyStringHelper.Empty) public static BigInteger ReadBigInteger(string prompt = EmptyStringHelper.Empty) { prompt.Print(); - return BigInteger.Parse(Console.ReadLine()); + BigInteger result; + while (!BigInteger.TryParse(Console.ReadLine(), out result)) + { + InputErrorHelper.Message.PrintLine(); + prompt.Print(); + } + return result; } /// From 62175e836b4f6d182e8f0f75926e95e140fa80a7 Mon Sep 17 00:00:00 2001 From: Alvin Seville Date: Sun, 5 Apr 2020 17:48:14 +0300 Subject: [PATCH 028/102] closes #112 - Base.Nullable.Input.cs with usings clean-up --- .../Utils/Base.Nullable.Input.cs | 157 +++++++++++++++--- 1 file changed, 131 insertions(+), 26 deletions(-) diff --git a/NETMouse - .NET release/Utils/Base.Nullable.Input.cs b/NETMouse - .NET release/Utils/Base.Nullable.Input.cs index 6729068..e0801db 100644 --- a/NETMouse - .NET release/Utils/Base.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/Base.Nullable.Input.cs @@ -1,5 +1,6 @@ using System.Numerics; using System; +using ABCNET.Extensions; namespace ABCNET.Utils { @@ -22,8 +23,16 @@ public static partial class Nullable /// Значение. public static bool? ReadBoolean(string prompt = EmptyStringHelper.Empty) { - string result = InternalReadTrimmedString(prompt); - return result == NilStringHelper.Nil ? null : new bool?(bool.Parse(result)); + string resultString = InternalReadTrimmedString(prompt); + + bool result = default; + while ((resultString != NilStringHelper.Nil) && !bool.TryParse(resultString, out result)) + { + InputErrorHelper.Message.PrintLine(); + resultString = InternalReadTrimmedString(prompt); + } + + return resultString == NilStringHelper.Nil ? null : new bool?(result); } /// @@ -33,8 +42,16 @@ public static partial class Nullable /// Значение. public static byte? ReadByte(string prompt = EmptyStringHelper.Empty) { - string result = InternalReadTrimmedString(prompt); - return result == NilStringHelper.Nil ? null : new byte?(byte.Parse(result)); + string resultString = InternalReadTrimmedString(prompt); + + byte result = default; + while ((resultString != NilStringHelper.Nil) && !byte.TryParse(resultString, out result)) + { + InputErrorHelper.Message.PrintLine(); + resultString = InternalReadTrimmedString(prompt); + } + + return resultString == NilStringHelper.Nil ? null : new byte?(result); } /// @@ -44,8 +61,16 @@ public static partial class Nullable /// Значение. public static sbyte? ReadSByte(string prompt = EmptyStringHelper.Empty) { - string result = InternalReadTrimmedString(prompt); - return result == NilStringHelper.Nil ? null : new sbyte?(sbyte.Parse(result)); + string resultString = InternalReadTrimmedString(prompt); + + sbyte result = default; + while ((resultString != NilStringHelper.Nil) && !sbyte.TryParse(resultString, out result)) + { + InputErrorHelper.Message.PrintLine(); + resultString = InternalReadTrimmedString(prompt); + } + + return resultString == NilStringHelper.Nil ? null : new sbyte?(result); } /// @@ -66,8 +91,16 @@ public static partial class Nullable /// Значение. public static decimal? ReadDecimal(string prompt = EmptyStringHelper.Empty) { - string result = InternalReadTrimmedString(prompt); - return result == NilStringHelper.Nil ? null : new decimal?(decimal.Parse(result)); + string resultString = InternalReadTrimmedString(prompt); + + decimal result = default; + while ((resultString != NilStringHelper.Nil) && !decimal.TryParse(resultString, out result)) + { + InputErrorHelper.Message.PrintLine(); + resultString = InternalReadTrimmedString(prompt); + } + + return resultString == NilStringHelper.Nil ? null : new decimal?(result); } /// @@ -77,8 +110,16 @@ public static partial class Nullable /// Значение. public static double? ReadDouble(string prompt = EmptyStringHelper.Empty) { - string result = InternalReadTrimmedString(prompt); - return result == NilStringHelper.Nil ? null : new double?(double.Parse(result)); + string resultString = InternalReadTrimmedString(prompt); + + double result = default; + while ((resultString != NilStringHelper.Nil) && !double.TryParse(resultString, out result)) + { + InputErrorHelper.Message.PrintLine(); + resultString = InternalReadTrimmedString(prompt); + } + + return resultString == NilStringHelper.Nil ? null : new double?(result); } /// @@ -88,8 +129,16 @@ public static partial class Nullable /// Значение. public static float? ReadSingle(string prompt = EmptyStringHelper.Empty) { - string result = InternalReadTrimmedString(prompt); - return result == NilStringHelper.Nil ? null : new float?(float.Parse(result)); + string resultString = InternalReadTrimmedString(prompt); + + float result = default; + while ((resultString != NilStringHelper.Nil) && !float.TryParse(resultString, out result)) + { + InputErrorHelper.Message.PrintLine(); + resultString = InternalReadTrimmedString(prompt); + } + + return resultString == NilStringHelper.Nil ? null : new float?(result); } /// @@ -99,8 +148,16 @@ public static partial class Nullable /// Значение. public static int? ReadInt32(string prompt = EmptyStringHelper.Empty) { - string result = InternalReadTrimmedString(prompt); - return result == NilStringHelper.Nil ? null : new int?(int.Parse(result)); + string resultString = InternalReadTrimmedString(prompt); + + int result = default; + while ((resultString != NilStringHelper.Nil) && !int.TryParse(resultString, out result)) + { + InputErrorHelper.Message.PrintLine(); + resultString = InternalReadTrimmedString(prompt); + } + + return resultString == NilStringHelper.Nil ? null : new int?(result); } /// @@ -110,8 +167,16 @@ public static partial class Nullable /// Значение. public static uint? ReadUInt32(string prompt = EmptyStringHelper.Empty) { - string result = InternalReadTrimmedString(prompt); - return result == NilStringHelper.Nil ? null : new uint?(uint.Parse(result)); + string resultString = InternalReadTrimmedString(prompt); + + uint result = default; + while ((resultString != NilStringHelper.Nil) && !uint.TryParse(resultString, out result)) + { + InputErrorHelper.Message.PrintLine(); + resultString = InternalReadTrimmedString(prompt); + } + + return resultString == NilStringHelper.Nil ? null : new uint?(result); } /// @@ -121,8 +186,16 @@ public static partial class Nullable /// Значение. public static long? ReadInt64(string prompt = EmptyStringHelper.Empty) { - string result = InternalReadTrimmedString(prompt); - return result == NilStringHelper.Nil ? null : new long?(long.Parse(result)); + string resultString = InternalReadTrimmedString(prompt); + + long result = default; + while ((resultString != NilStringHelper.Nil) && !long.TryParse(resultString, out result)) + { + InputErrorHelper.Message.PrintLine(); + resultString = InternalReadTrimmedString(prompt); + } + + return resultString == NilStringHelper.Nil ? null : new long?(result); } /// @@ -132,8 +205,16 @@ public static partial class Nullable /// Значение. public static ulong? ReadUInt64(string prompt = EmptyStringHelper.Empty) { - string result = InternalReadTrimmedString(prompt); - return result == NilStringHelper.Nil ? null : new ulong?(ulong.Parse(result)); + string resultString = InternalReadTrimmedString(prompt); + + ulong result = default; + while ((resultString != NilStringHelper.Nil) && !ulong.TryParse(resultString, out result)) + { + InputErrorHelper.Message.PrintLine(); + resultString = InternalReadTrimmedString(prompt); + } + + return resultString == NilStringHelper.Nil ? null : new ulong?(result); } /// @@ -143,8 +224,16 @@ public static partial class Nullable /// Значение. public static short? ReadInt16(string prompt = EmptyStringHelper.Empty) { - string result = InternalReadTrimmedString(prompt); - return result == NilStringHelper.Nil ? null : new short?(short.Parse(result)); + string resultString = InternalReadTrimmedString(prompt); + + short result = default; + while ((resultString != NilStringHelper.Nil) && !short.TryParse(resultString, out result)) + { + InputErrorHelper.Message.PrintLine(); + resultString = InternalReadTrimmedString(prompt); + } + + return resultString == NilStringHelper.Nil ? null : new short?(result); } /// @@ -154,8 +243,16 @@ public static partial class Nullable /// Значение. public static ushort? ReadUInt16(string prompt = EmptyStringHelper.Empty) { - string result = InternalReadTrimmedString(prompt); - return result == NilStringHelper.Nil ? null : new ushort?(ushort.Parse(result)); + string resultString = InternalReadTrimmedString(prompt); + + ushort result = default; + while ((resultString != NilStringHelper.Nil) && !ushort.TryParse(resultString, out result)) + { + InputErrorHelper.Message.PrintLine(); + resultString = InternalReadTrimmedString(prompt); + } + + return resultString == NilStringHelper.Nil ? null : new ushort?(result); } /// @@ -165,8 +262,16 @@ public static partial class Nullable /// Значение. public static BigInteger? ReadBigInteger(string prompt = EmptyStringHelper.Empty) { - string result = InternalReadTrimmedString(prompt); - return result == NilStringHelper.Nil ? null : new BigInteger?(BigInteger.Parse(result)); + string resultString = InternalReadTrimmedString(prompt); + + BigInteger result = default; + while ((resultString != NilStringHelper.Nil) && !BigInteger.TryParse(resultString, out result)) + { + InputErrorHelper.Message.PrintLine(); + resultString = InternalReadTrimmedString(prompt); + } + + return resultString == NilStringHelper.Nil ? null : new BigInteger?(result); } #endregion public From 38780d0b61ca062bf5acb136749cc58ad44d05a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Mon, 6 Apr 2020 19:24:58 +0700 Subject: [PATCH 029/102] closes #27 Utils --- NETMouse - .NET release/Utils/Array.Input.cs | 97 +++++++++++--------- 1 file changed, 56 insertions(+), 41 deletions(-) diff --git a/NETMouse - .NET release/Utils/Array.Input.cs b/NETMouse - .NET release/Utils/Array.Input.cs index 4d89ca3..f32e29e 100644 --- a/NETMouse - .NET release/Utils/Array.Input.cs +++ b/NETMouse - .NET release/Utils/Array.Input.cs @@ -68,12 +68,12 @@ public static byte[] ReadByte(int count, string prompt = EmptyStringHelper.Empty } /// - /// Читает массив значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. /// Массив. - public static sbyte[] ReadSbyte(int count, string prompt = EmptyStringHelper.Empty) + public static sbyte[] ReadSByte(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); @@ -83,7 +83,7 @@ public static sbyte[] ReadSbyte(int count, string prompt = EmptyStringHelper.Emp while (i < count) try { - array[i] = Base.ReadSbyte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadSByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); i++; } catch (Exception) @@ -176,12 +176,12 @@ public static double[] ReadDouble(int count, string prompt = EmptyStringHelper.E } /// - /// Читает массив значений типа Float. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. /// Массив. - public static float[] ReadFloat(int count, string prompt = EmptyStringHelper.Empty) + public static float[] ReadSingle(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); @@ -191,7 +191,7 @@ public static float[] ReadFloat(int count, string prompt = EmptyStringHelper.Emp while (i < count) try { - array[i] = Base.ReadFloat(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadSingle(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); i++; } catch (Exception) @@ -203,12 +203,12 @@ public static float[] ReadFloat(int count, string prompt = EmptyStringHelper.Emp } /// - /// Читает массив значений типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. /// Массив. - public static int[] ReadInt(int count, string prompt = EmptyStringHelper.Empty) + public static int[] ReadInt32(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); @@ -218,7 +218,7 @@ public static int[] ReadInt(int count, string prompt = EmptyStringHelper.Empty) while (i < count) try { - array[i] = Base.ReadInt(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); i++; } catch (Exception) @@ -230,12 +230,12 @@ public static int[] ReadInt(int count, string prompt = EmptyStringHelper.Empty) } /// - /// Читает массив значений типа Uint. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. /// Массив. - public static uint[] ReadUint(int count, string prompt = EmptyStringHelper.Empty) + public static uint[] ReadUint32(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); @@ -245,7 +245,7 @@ public static uint[] ReadUint(int count, string prompt = EmptyStringHelper.Empty while (i < count) try { - array[i] = Base.ReadUint(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadUint32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); i++; } catch (Exception) @@ -257,12 +257,12 @@ public static uint[] ReadUint(int count, string prompt = EmptyStringHelper.Empty } /// - /// Читает массив значений типа Long. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. /// Массив. - public static long[] ReadLong(int count, string prompt = EmptyStringHelper.Empty) + public static long[] ReadInt64(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); @@ -272,7 +272,7 @@ public static long[] ReadLong(int count, string prompt = EmptyStringHelper.Empty while (i < count) try { - array[i] = Base.ReadLong(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); i++; } catch (Exception) @@ -284,12 +284,12 @@ public static long[] ReadLong(int count, string prompt = EmptyStringHelper.Empty } /// - /// Читает массив значений типа Ulong. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. /// Массив. - public static ulong[] ReadUlong(int count, string prompt = EmptyStringHelper.Empty) + public static ulong[] ReadUInt64(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); @@ -299,7 +299,7 @@ public static ulong[] ReadUlong(int count, string prompt = EmptyStringHelper.Emp while (i < count) try { - array[i] = Base.ReadUlong(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); i++; } catch (Exception) @@ -311,12 +311,12 @@ public static ulong[] ReadUlong(int count, string prompt = EmptyStringHelper.Emp } /// - /// Читает массив значений типа Short. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. /// Массив. - public static short[] ReadShort(int count, string prompt = EmptyStringHelper.Empty) + public static short[] ReadInt16(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); @@ -326,7 +326,7 @@ public static short[] ReadShort(int count, string prompt = EmptyStringHelper.Emp while (i < count) try { - array[i] = Base.ReadShort(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); i++; } catch (Exception) @@ -338,12 +338,12 @@ public static short[] ReadShort(int count, string prompt = EmptyStringHelper.Emp } /// - /// Читает массив значений типа Ushort. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. /// Массив. - public static ushort[] ReadUshort(int count, string prompt = EmptyStringHelper.Empty) + public static ushort[] ReadUInt16(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); @@ -353,7 +353,7 @@ public static ushort[] ReadUshort(int count, string prompt = EmptyStringHelper.E while (i < count) try { - array[i] = Base.ReadUshort(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); i++; } catch (Exception) @@ -391,7 +391,6 @@ public static BigInteger[] ReadBigInteger(int count, string prompt = EmptyString return array; } - /// /// Читает массив значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -404,8 +403,18 @@ public static string[] ReadString(int count, string prompt = EmptyStringHelper.E throw new ArgumentOutOfRangeException(nameof(count)); string[] array = new string[count]; - for (int i = 0; i < count; i++) - array[i] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + int i = 0; + while (i < count) + try + { + array[i] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + catch (Exception) + { + InputErrorHelper.Message.PrintLine(); + } + return array; } @@ -1120,7 +1129,7 @@ public static Tuple /// Кортеж. public static Tuple ReadBooleanTuple7(int count) { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), Readbool(count), ReadBoolean(count)); + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } /// /// Заполняет 7 массивов значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1129,8 +1138,14 @@ public static Tuple Read /// Кортеж. public static Tuple ReadByteTuple7(int count) { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), Readbyte(count), ReadByte(count)); + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); } + + private static byte[] Readbyte(int count) + { + throw new NotImplementedException(); + } + /// /// Заполняет 7 массивов значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -1138,7 +1153,7 @@ public static Tuple Read /// Кортеж. public static Tuple ReadSByteTuple7(int count) { - return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), Readsbyte(count), ReadSByte(count)); + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); } /// /// Заполняет 7 массивов значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1147,7 +1162,7 @@ public static TupleКортеж. public static Tuple ReadCharTuple7(int count) { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), Readchar(count), ReadChar(count)); + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); } /// /// Заполняет 7 массивов значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1156,7 +1171,7 @@ public static Tuple Read /// Кортеж. public static Tuple ReadDecimalTuple7(int count) { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), Readdecimal(count), ReadDecimal(count)); + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); } /// /// Заполняет 7 массивов значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1165,7 +1180,7 @@ public static TupleКортеж. public static Tuple ReadDoubleTuple7(int count) { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), Readdouble(count), ReadDouble(count)); + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); } /// /// Заполняет 7 массивов значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1174,7 +1189,7 @@ public static TupleКортеж. public static Tuple ReadSingleTuple7(int count) { - return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), Readfloat(count), ReadSingle(count)); + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); } /// /// Заполняет 7 массивов значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1183,7 +1198,7 @@ public static TupleКортеж. public static Tuple ReadInt32Tuple7(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), Readint(count), ReadInt32(count)); + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); } /// /// Заполняет 7 массивов значениями типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1192,7 +1207,7 @@ public static Tuple ReadInt32Tu /// Кортеж. public static Tuple ReadUint32Tuple7(int count) { - return Tuple.Of(ReadUint32(count), ReadUint32(count), ReadUint32(count), ReadUint32(count), ReadUint32(count), Readuint(count), ReadUint32(count)); + return Tuple.Of(ReadUint32(count), ReadUint32(count), ReadUint32(count), ReadUint32(count), ReadUint32(count), ReadUint32(count), ReadUint32(count)); } /// /// Заполняет 7 массивов значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1201,7 +1216,7 @@ public static Tuple Read /// Кортеж. public static Tuple ReadInt64Tuple7(int count) { - return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), Readlong(count), ReadInt64(count)); + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); } /// /// Заполняет 7 массивов значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1210,7 +1225,7 @@ public static Tuple Read /// Кортеж. public static Tuple ReadUInt64Tuple7(int count) { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), Readulong(count), ReadUInt64(count)); + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); } /// /// Заполняет 7 массивов значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1219,7 +1234,7 @@ public static TupleКортеж. public static Tuple ReadInt16Tuple7(int count) { - return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), Readshort(count), ReadInt16(count)); + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); } /// /// Заполняет 7 массивов значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1228,7 +1243,7 @@ public static TupleКортеж. public static Tuple ReadUInt16Tuple7(int count) { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), Readushort(count), ReadUInt16(count)); + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); } /// /// Заполняет 7 массивов значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1246,7 +1261,7 @@ public static TupleКортеж. public static Tuple ReadStringTuple7(int count) { - return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), Readstring(count), ReadString(count)); + return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); } #endregion From dde6a891e9231c29426bfcd2847df03b48f32e47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Mon, 6 Apr 2020 19:26:05 +0700 Subject: [PATCH 030/102] =?UTF-8?q?=D0=A0=D0=B0=D0=B7=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D0=BE?= =?UTF-8?q?=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NETMouse - .NET release/Utils/Base.Input.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/NETMouse - .NET release/Utils/Base.Input.cs b/NETMouse - .NET release/Utils/Base.Input.cs index 57112ab..ecf9691 100644 --- a/NETMouse - .NET release/Utils/Base.Input.cs +++ b/NETMouse - .NET release/Utils/Base.Input.cs @@ -21,6 +21,7 @@ public static bool ReadBoolean(string prompt = EmptyStringHelper.Empty) prompt.Print(); return bool.Parse(Console.ReadLine()); } + /// /// Byte. [ IDE PascalABC.NET.] /// @@ -31,6 +32,7 @@ public static byte ReadByte(string prompt = EmptyStringHelper.Empty) prompt.Print(); return byte.Parse(Console.ReadLine()); } + /// /// SByte. [ IDE PascalABC.NET.] /// @@ -41,6 +43,7 @@ public static sbyte ReadSByte(string prompt = EmptyStringHelper.Empty) prompt.Print(); return sbyte.Parse(Console.ReadLine()); } + /// /// Char. [ IDE PascalABC.NET.] /// @@ -51,6 +54,7 @@ public static char ReadChar(string prompt = EmptyStringHelper.Empty) prompt.Print(); return char.Parse(Console.ReadLine()); } + /// /// Decimal. [ IDE PascalABC.NET.] /// @@ -61,6 +65,7 @@ public static decimal ReadDecimal(string prompt = EmptyStringHelper.Empty) prompt.Print(); return decimal.Parse(Console.ReadLine()); } + /// /// Double. [ IDE PascalABC.NET.] /// @@ -71,6 +76,7 @@ public static double ReadDouble(string prompt = EmptyStringHelper.Empty) prompt.Print(); return double.Parse(Console.ReadLine()); } + /// /// Single. [ IDE PascalABC.NET.] /// @@ -81,6 +87,7 @@ public static float ReadSingle(string prompt = EmptyStringHelper.Empty) prompt.Print(); return float.Parse(Console.ReadLine()); } + /// /// Int32. [ IDE PascalABC.NET.] /// @@ -91,6 +98,7 @@ public static int ReadInt32(string prompt = EmptyStringHelper.Empty) prompt.Print(); return int.Parse(Console.ReadLine()); } + /// /// Uint32. [ IDE PascalABC.NET.] /// @@ -101,6 +109,7 @@ public static uint ReadUint32(string prompt = EmptyStringHelper.Empty) prompt.Print(); return uint.Parse(Console.ReadLine()); } + /// /// Int64. [ IDE PascalABC.NET.] /// @@ -111,6 +120,7 @@ public static long ReadInt64(string prompt = EmptyStringHelper.Empty) prompt.Print(); return long.Parse(Console.ReadLine()); } + /// /// UInt64. [ IDE PascalABC.NET.] /// @@ -121,6 +131,7 @@ public static ulong ReadUInt64(string prompt = EmptyStringHelper.Empty) prompt.Print(); return ulong.Parse(Console.ReadLine()); } + /// /// Int16. [ IDE PascalABC.NET.] /// @@ -131,6 +142,7 @@ public static short ReadInt16(string prompt = EmptyStringHelper.Empty) prompt.Print(); return short.Parse(Console.ReadLine()); } + /// /// UInt16. [ IDE PascalABC.NET.] /// @@ -141,6 +153,7 @@ public static ushort ReadUInt16(string prompt = EmptyStringHelper.Empty) prompt.Print(); return ushort.Parse(Console.ReadLine()); } + /// /// BigInteger. [ IDE PascalABC.NET.] /// @@ -151,6 +164,7 @@ public static BigInteger ReadBigInteger(string prompt = EmptyStringHelper.Empty) prompt.Print(); return BigInteger.Parse(Console.ReadLine()); } + /// /// String. [ IDE PascalABC.NET.] /// From 70687d3143d83b889eb39283de2aa046f4f168ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Mon, 6 Apr 2020 19:38:36 +0700 Subject: [PATCH 031/102] closes #30 --- NETMouse - .NET release/Utils/Tuple.Input.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/NETMouse - .NET release/Utils/Tuple.Input.cs b/NETMouse - .NET release/Utils/Tuple.Input.cs index 81e42a3..6735ff4 100644 --- a/NETMouse - .NET release/Utils/Tuple.Input.cs +++ b/NETMouse - .NET release/Utils/Tuple.Input.cs @@ -878,7 +878,7 @@ public static Tuple ReadSingleT #endregion - #region ReadInt + #region ReadInt32 /// /// Читает кортеж из двух значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1002,7 +1002,7 @@ public static Tuple ReadInt32Tuple7(string pr #endregion - #region ReadUint + #region ReadUint32 /// /// Читает кортеж из двух значений типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1126,7 +1126,7 @@ public static Tuple ReadUint32Tuple7(s #endregion - #region ReadLong + #region ReadInt64 /// /// Читает кортеж из двух значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1250,7 +1250,7 @@ public static Tuple ReadInt64Tuple7(st #endregion - #region ReadUlong + #region ReadUInt64 /// /// Читает кортеж из двух значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1374,7 +1374,7 @@ public static Tuple ReadUInt64T #endregion - #region ReadShort + #region ReadInt16 /// /// Читает кортеж из двух значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -1498,7 +1498,7 @@ public static Tuple ReadInt16Tu #endregion - #region ReadUshort + #region ReadUInt16 /// /// Читает кортеж из двух значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] From e9f8577a5e40b69f11d06d4aa8443403630c66bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Mon, 6 Apr 2020 20:27:43 +0700 Subject: [PATCH 032/102] Uint32 => UInt32 again --- .../Extensions/ArrayE.Input.cs | 4 +- .../Extensions/MatrixE.Input.cs | 4 +- NETMouse - .NET release/Utils/Array.Input.cs | 4 +- NETMouse - .NET release/Utils/Matrix.Input.cs | 2 +- NETMouse - .NET release/Utils/Tuple.Input.cs | 84 +++++++++---------- 5 files changed, 49 insertions(+), 49 deletions(-) diff --git a/NETMouse - .NET release/Extensions/ArrayE.Input.cs b/NETMouse - .NET release/Extensions/ArrayE.Input.cs index 67b68dd..4d8d0b9 100644 --- a/NETMouse - .NET release/Extensions/ArrayE.Input.cs +++ b/NETMouse - .NET release/Extensions/ArrayE.Input.cs @@ -196,7 +196,7 @@ public static void Read(this int[] array, string prompt = EmptyStringHelper.Empt } /// - /// Заполняет массив значениями типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет массив значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Массив. /// Приглашение к вводу. @@ -209,7 +209,7 @@ public static void Read(this uint[] array, string prompt = EmptyStringHelper.Emp while (i < array.Length) try { - array[i] = Base.ReadUint32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadUInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); i++; } catch (Exception) diff --git a/NETMouse - .NET release/Extensions/MatrixE.Input.cs b/NETMouse - .NET release/Extensions/MatrixE.Input.cs index 521cd67..354814f 100644 --- a/NETMouse - .NET release/Extensions/MatrixE.Input.cs +++ b/NETMouse - .NET release/Extensions/MatrixE.Input.cs @@ -260,7 +260,7 @@ public static void Read(this int[,] matrix, string prompt = EmptyStringHelper.Em } /// - /// Заполняет матрицу значениями типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет матрицу значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Матрица. /// Приглашение к вводу. @@ -277,7 +277,7 @@ public static void Read(this uint[,] matrix, string prompt = EmptyStringHelper.E while (j < matrix.GetLength(1)) try { - matrix[i, j] = Base.ReadUint32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + matrix[i, j] = Base.ReadUInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); j++; } catch (Exception) diff --git a/NETMouse - .NET release/Utils/Array.Input.cs b/NETMouse - .NET release/Utils/Array.Input.cs index f32e29e..d146607 100644 --- a/NETMouse - .NET release/Utils/Array.Input.cs +++ b/NETMouse - .NET release/Utils/Array.Input.cs @@ -235,7 +235,7 @@ public static int[] ReadInt32(int count, string prompt = EmptyStringHelper.Empty /// Количество элементов. /// Приглашение к вводу. /// Массив. - public static uint[] ReadUint32(int count, string prompt = EmptyStringHelper.Empty) + public static uint[] ReadUInt32(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); @@ -245,7 +245,7 @@ public static uint[] ReadUint32(int count, string prompt = EmptyStringHelper.Emp while (i < count) try { - array[i] = Base.ReadUint32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadUInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); i++; } catch (Exception) diff --git a/NETMouse - .NET release/Utils/Matrix.Input.cs b/NETMouse - .NET release/Utils/Matrix.Input.cs index 93bbf20..08c9754 100644 --- a/NETMouse - .NET release/Utils/Matrix.Input.cs +++ b/NETMouse - .NET release/Utils/Matrix.Input.cs @@ -338,7 +338,7 @@ public static partial class Matrix while (j < colsCount) try { - source[i, j] = Base.ReadUint32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + source[i, j] = Base.ReadUInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); j++; } catch (Exception) diff --git a/NETMouse - .NET release/Utils/Tuple.Input.cs b/NETMouse - .NET release/Utils/Tuple.Input.cs index 6735ff4..6a24859 100644 --- a/NETMouse - .NET release/Utils/Tuple.Input.cs +++ b/NETMouse - .NET release/Utils/Tuple.Input.cs @@ -1002,64 +1002,64 @@ public static Tuple ReadInt32Tuple7(string pr #endregion - #region ReadUint32 + #region ReadUInt32 /// - /// Читает кортеж из двух значений типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadUint32Tuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple2(string prompt = EmptyStringHelper.Empty) { uint a = default; uint b = default; - ReadUint32TupleItem(ref a, 0, prompt); - ReadUint32TupleItem(ref b, 1, prompt); + ReadUInt32TupleItem(ref a, 0, prompt); + ReadUInt32TupleItem(ref b, 1, prompt); return Of(a, b); } /// - /// Читает кортеж из трёх значений типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadUint32Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple3(string prompt = EmptyStringHelper.Empty) { uint a = default; uint b = default; uint c = default; - ReadUint32TupleItem(ref a, 0, prompt); - ReadUint32TupleItem(ref b, 1, prompt); - ReadUint32TupleItem(ref c, 2, prompt); + ReadUInt32TupleItem(ref a, 0, prompt); + ReadUInt32TupleItem(ref b, 1, prompt); + ReadUInt32TupleItem(ref c, 2, prompt); return Of(a, b, c); } /// - /// Читает кортеж из четырёх значений типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadUint32Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple4(string prompt = EmptyStringHelper.Empty) { uint a = default; uint b = default; uint c = default; uint d = default; - ReadUint32TupleItem(ref a, 0, prompt); - ReadUint32TupleItem(ref b, 1, prompt); - ReadUint32TupleItem(ref c, 2, prompt); - ReadUint32TupleItem(ref d, 3, prompt); + ReadUInt32TupleItem(ref a, 0, prompt); + ReadUInt32TupleItem(ref b, 1, prompt); + ReadUInt32TupleItem(ref c, 2, prompt); + ReadUInt32TupleItem(ref d, 3, prompt); return Of(a, b, c, d); } /// - /// Читает кортеж из пяти значений типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadUint32Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple5(string prompt = EmptyStringHelper.Empty) { uint a = default; uint b = default; @@ -1067,20 +1067,20 @@ public static Tuple ReadUint32Tuple5(string prompt uint d = default; uint e = default; - ReadUint32TupleItem(ref a, 0, prompt); - ReadUint32TupleItem(ref b, 1, prompt); - ReadUint32TupleItem(ref c, 2, prompt); - ReadUint32TupleItem(ref d, 3, prompt); - ReadUint32TupleItem(ref e, 4, prompt); + ReadUInt32TupleItem(ref a, 0, prompt); + ReadUInt32TupleItem(ref b, 1, prompt); + ReadUInt32TupleItem(ref c, 2, prompt); + ReadUInt32TupleItem(ref d, 3, prompt); + ReadUInt32TupleItem(ref e, 4, prompt); return Of(a, b, c, d, e); } /// - /// Читает кортеж из шести значений типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadUint32Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple6(string prompt = EmptyStringHelper.Empty) { uint a = default; uint b = default; @@ -1089,21 +1089,21 @@ public static Tuple ReadUint32Tuple6(string uint e = default; uint f = default; - ReadUint32TupleItem(ref a, 0, prompt); - ReadUint32TupleItem(ref b, 1, prompt); - ReadUint32TupleItem(ref c, 2, prompt); - ReadUint32TupleItem(ref d, 3, prompt); - ReadUint32TupleItem(ref e, 4, prompt); - ReadUint32TupleItem(ref f, 5, prompt); + ReadUInt32TupleItem(ref a, 0, prompt); + ReadUInt32TupleItem(ref b, 1, prompt); + ReadUInt32TupleItem(ref c, 2, prompt); + ReadUInt32TupleItem(ref d, 3, prompt); + ReadUInt32TupleItem(ref e, 4, prompt); + ReadUInt32TupleItem(ref f, 5, prompt); return Of(a, b, c, d, e, f); } /// - /// Читает кортеж из семи значений типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadUint32Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple7(string prompt = EmptyStringHelper.Empty) { uint a = default; uint b = default; @@ -1113,13 +1113,13 @@ public static Tuple ReadUint32Tuple7(s uint f = default; uint g = default; - ReadUint32TupleItem(ref a, 0, prompt); - ReadUint32TupleItem(ref b, 1, prompt); - ReadUint32TupleItem(ref c, 2, prompt); - ReadUint32TupleItem(ref d, 3, prompt); - ReadUint32TupleItem(ref e, 4, prompt); - ReadUint32TupleItem(ref f, 5, prompt); - ReadUint32TupleItem(ref g, 6, prompt); + ReadUInt32TupleItem(ref a, 0, prompt); + ReadUInt32TupleItem(ref b, 1, prompt); + ReadUInt32TupleItem(ref c, 2, prompt); + ReadUInt32TupleItem(ref d, 3, prompt); + ReadUInt32TupleItem(ref e, 4, prompt); + ReadUInt32TupleItem(ref f, 5, prompt); + ReadUInt32TupleItem(ref g, 6, prompt); return Of(a, b, c, d, e, f, g); } @@ -1986,12 +1986,12 @@ private static void ReadInt32TupleItem(ref int field, int index, string prompt) } } - private static void ReadUint32TupleItem(ref uint field, int index, string prompt) + private static void ReadUInt32TupleItem(ref uint field, int index, string prompt) { while (true) try { - field = Base.ReadUint32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); + field = Base.ReadUInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); return; } catch (Exception) From 98f3acf77f4f4a4500fdce3f196fec7775222b03 Mon Sep 17 00:00:00 2001 From: Alvin Seville Date: Sat, 11 Apr 2020 16:51:44 +0300 Subject: [PATCH 033/102] closes #27 - methods for reading arrays of all base types in Array.Input.cs --- NETMouse - .NET release/Utils/Array.Input.cs | 250 ++++++++++++++++--- 1 file changed, 221 insertions(+), 29 deletions(-) diff --git a/NETMouse - .NET release/Utils/Array.Input.cs b/NETMouse - .NET release/Utils/Array.Input.cs index 76e196c..3be9b81 100644 --- a/NETMouse - .NET release/Utils/Array.Input.cs +++ b/NETMouse - .NET release/Utils/Array.Input.cs @@ -23,15 +23,54 @@ public static bool[] ReadBoolean(int count, string prompt = EmptyStringHelper.Em bool[] array = new bool[count]; int i = 0; while (i < count) - try - { - array[i] = Base.ReadBoolean(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadBoolean(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + + return array; + } + + /// + /// Читает массив значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static byte[] ReadByte(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + byte[] array = new byte[count]; + int i = 0; + while (i < count) + { + array[i] = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + + return array; + } + + /// + /// Читает массив значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static sbyte[] ReadSByte(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + sbyte[] array = new sbyte[count]; + int i = 0; + while (i < count) + { + array[i] = Base.ReadSByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } return array; } @@ -48,8 +87,34 @@ public static char[] ReadChar(int count, string prompt = EmptyStringHelper.Empty throw new ArgumentOutOfRangeException(nameof(count)); char[] array = new char[count]; - for (int i = 0; i < count; i++) + int i = 0; + while (i < count) + { array[i] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + + return array; + } + + /// + /// Читает массив значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static decimal[] ReadDecimal(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + decimal[] array = new decimal[count]; + int i = 0; + while (i < count) + { + array[i] = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } return array; } @@ -68,15 +133,32 @@ public static double[] ReadDouble(int count, string prompt = EmptyStringHelper.E double[] array = new double[count]; int i = 0; while (i < count) - try - { - array[i] = Base.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + + return array; + } + + /// + /// Читает массив значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static float[] ReadSingle(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + float[] array = new float[count]; + int i = 0; + while (i < count) + { + array[i] = Base.ReadSingle(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } return array; } @@ -95,15 +177,120 @@ public static int[] ReadInt32(int count, string prompt = EmptyStringHelper.Empty int[] array = new int[count]; int i = 0; while (i < count) - try - { - array[i] = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + + return array; + } + + /// + /// Читает массив значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static uint[] ReadUInt32(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + uint[] array = new uint[count]; + int i = 0; + while (i < count) + { + array[i] = Base.ReadUInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + + return array; + } + + /// + /// Читает массив значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static long[] ReadInt64(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + long[] array = new long[count]; + int i = 0; + while (i < count) + { + array[i] = Base.ReadInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + + return array; + } + + /// + /// Читает массив значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static ulong[] ReadUInt64(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + ulong[] array = new ulong[count]; + int i = 0; + while (i < count) + { + array[i] = Base.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + + return array; + } + + /// + /// Читает массив значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static short[] ReadInt16(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + short[] array = new short[count]; + int i = 0; + while (i < count) + { + array[i] = Base.ReadInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + + return array; + } + + /// + /// Читает массив значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static ushort[] ReadUInt16(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + ushort[] array = new ushort[count]; + int i = 0; + while (i < count) + { + array[i] = Base.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } return array; } @@ -120,8 +307,13 @@ public static string[] ReadString(int count, string prompt = EmptyStringHelper.E throw new ArgumentOutOfRangeException(nameof(count)); string[] array = new string[count]; - for (int i = 0; i < count; i++) + int i = 0; + while (i < count) + { array[i] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + i++; + } + return array; } From 642dea5ee681cdc6c79c599e91452a1fc22c5549 Mon Sep 17 00:00:00 2001 From: Alvin Seville Date: Sat, 11 Apr 2020 17:03:22 +0300 Subject: [PATCH 034/102] closes #27 - clean-up in Array.Input.cs --- NETMouse - .NET release/Utils/Array.Input.cs | 86 ++++---------------- 1 file changed, 15 insertions(+), 71 deletions(-) diff --git a/NETMouse - .NET release/Utils/Array.Input.cs b/NETMouse - .NET release/Utils/Array.Input.cs index 3be9b81..87985f9 100644 --- a/NETMouse - .NET release/Utils/Array.Input.cs +++ b/NETMouse - .NET release/Utils/Array.Input.cs @@ -21,12 +21,8 @@ public static bool[] ReadBoolean(int count, string prompt = EmptyStringHelper.Em throw new ArgumentOutOfRangeException(nameof(count)); bool[] array = new bool[count]; - int i = 0; - while (i < count) - { + for (int i = 0; i < count; i++) array[i] = Base.ReadBoolean(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } return array; } @@ -43,12 +39,8 @@ public static byte[] ReadByte(int count, string prompt = EmptyStringHelper.Empty throw new ArgumentOutOfRangeException(nameof(count)); byte[] array = new byte[count]; - int i = 0; - while (i < count) - { + for (int i = 0; i < count; i++) array[i] = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } return array; } @@ -65,12 +57,8 @@ public static sbyte[] ReadSByte(int count, string prompt = EmptyStringHelper.Emp throw new ArgumentOutOfRangeException(nameof(count)); sbyte[] array = new sbyte[count]; - int i = 0; - while (i < count) - { + for (int i = 0; i < count; i++) array[i] = Base.ReadSByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } return array; } @@ -87,12 +75,8 @@ public static char[] ReadChar(int count, string prompt = EmptyStringHelper.Empty throw new ArgumentOutOfRangeException(nameof(count)); char[] array = new char[count]; - int i = 0; - while (i < count) - { + for (int i = 0; i < count; i++) array[i] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } return array; } @@ -109,12 +93,8 @@ public static decimal[] ReadDecimal(int count, string prompt = EmptyStringHelper throw new ArgumentOutOfRangeException(nameof(count)); decimal[] array = new decimal[count]; - int i = 0; - while (i < count) - { + for (int i = 0; i < count; i++) array[i] = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } return array; } @@ -131,12 +111,8 @@ public static double[] ReadDouble(int count, string prompt = EmptyStringHelper.E throw new ArgumentOutOfRangeException(nameof(count)); double[] array = new double[count]; - int i = 0; - while (i < count) - { + for (int i = 0; i < count; i++) array[i] = Base.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } return array; } @@ -153,12 +129,8 @@ public static float[] ReadSingle(int count, string prompt = EmptyStringHelper.Em throw new ArgumentOutOfRangeException(nameof(count)); float[] array = new float[count]; - int i = 0; - while (i < count) - { + for (int i = 0; i < count; i++) array[i] = Base.ReadSingle(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } return array; } @@ -175,12 +147,8 @@ public static int[] ReadInt32(int count, string prompt = EmptyStringHelper.Empty throw new ArgumentOutOfRangeException(nameof(count)); int[] array = new int[count]; - int i = 0; - while (i < count) - { + for (int i = 0; i < count; i++) array[i] = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } return array; } @@ -197,12 +165,8 @@ public static uint[] ReadUInt32(int count, string prompt = EmptyStringHelper.Emp throw new ArgumentOutOfRangeException(nameof(count)); uint[] array = new uint[count]; - int i = 0; - while (i < count) - { + for (int i = 0; i < count; i++) array[i] = Base.ReadUInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } return array; } @@ -219,12 +183,8 @@ public static long[] ReadInt64(int count, string prompt = EmptyStringHelper.Empt throw new ArgumentOutOfRangeException(nameof(count)); long[] array = new long[count]; - int i = 0; - while (i < count) - { + for (int i = 0; i < count; i++) array[i] = Base.ReadInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } return array; } @@ -241,12 +201,8 @@ public static ulong[] ReadUInt64(int count, string prompt = EmptyStringHelper.Em throw new ArgumentOutOfRangeException(nameof(count)); ulong[] array = new ulong[count]; - int i = 0; - while (i < count) - { + for (int i = 0; i < count; i++) array[i] = Base.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } return array; } @@ -263,12 +219,8 @@ public static short[] ReadInt16(int count, string prompt = EmptyStringHelper.Emp throw new ArgumentOutOfRangeException(nameof(count)); short[] array = new short[count]; - int i = 0; - while (i < count) - { + for (int i = 0; i < count; i++) array[i] = Base.ReadInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } return array; } @@ -285,12 +237,8 @@ public static ushort[] ReadUInt16(int count, string prompt = EmptyStringHelper.E throw new ArgumentOutOfRangeException(nameof(count)); ushort[] array = new ushort[count]; - int i = 0; - while (i < count) - { - array[i] = Base.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } + for (int i = 0; i < count; i++) + array[i] = Base.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); return array; } @@ -307,12 +255,8 @@ public static string[] ReadString(int count, string prompt = EmptyStringHelper.E throw new ArgumentOutOfRangeException(nameof(count)); string[] array = new string[count]; - int i = 0; - while (i < count) - { + for (int i = 0; i < count; i++) array[i] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } return array; } From f9afceaa1d1769b959876c63c3eb2254e80d59d3 Mon Sep 17 00:00:00 2001 From: Alvin Seville Date: Sat, 11 Apr 2020 17:04:41 +0300 Subject: [PATCH 035/102] closes #27 - ReadBigInteger in Array.Input.cs --- NETMouse - .NET release/Utils/Array.Input.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/NETMouse - .NET release/Utils/Array.Input.cs b/NETMouse - .NET release/Utils/Array.Input.cs index 87985f9..0be4379 100644 --- a/NETMouse - .NET release/Utils/Array.Input.cs +++ b/NETMouse - .NET release/Utils/Array.Input.cs @@ -1,5 +1,6 @@ using ABCNET.Extensions; using System; +using System.Numerics; namespace ABCNET.Utils { @@ -261,6 +262,24 @@ public static string[] ReadString(int count, string prompt = EmptyStringHelper.E return array; } + /// + /// Читает массив значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static BigInteger[] ReadBigInteger(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + BigInteger[] array = new BigInteger[count]; + for (int i = 0; i < count; i++) + array[i] = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + + return array; + } + /// /// Заполняет 2 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// From 9b9cb3f3fc372b4a994214ea9b83071df7bfc5dc Mon Sep 17 00:00:00 2001 From: Alvin Seville Date: Sat, 11 Apr 2020 17:33:52 +0300 Subject: [PATCH 036/102] closes #27 - tuple reading methods in Array.Input.cs --- NETMouse - .NET release/Utils/Array.Input.cs | 236 ++++--------------- 1 file changed, 44 insertions(+), 192 deletions(-) diff --git a/NETMouse - .NET release/Utils/Array.Input.cs b/NETMouse - .NET release/Utils/Array.Input.cs index 0be4379..25e46fc 100644 --- a/NETMouse - .NET release/Utils/Array.Input.cs +++ b/NETMouse - .NET release/Utils/Array.Input.cs @@ -239,7 +239,7 @@ public static ushort[] ReadUInt16(int count, string prompt = EmptyStringHelper.E ushort[] array = new ushort[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); return array; } @@ -291,294 +291,146 @@ public static Tuple ReadBooleanTuple2(int count) } /// - /// Заполняет 2 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadCharTuple2(int count) + public static Tuple ReadByteTuple2(int count) { - return Tuple.Of(ReadChar(count), ReadChar(count)); + return Tuple.Of(ReadByte(count), ReadByte(count)); } /// - /// Заполняет 2 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadInt32Tuple2(int count) + public static Tuple ReadSByteTuple2(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count)); - } - - /// - /// Заполняет 2 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDoubleTuple2(int count) - { - return Tuple.Of(ReadDouble(count), ReadDouble(count)); + return Tuple.Of(ReadSByte(count), ReadSByte(count)); } /// - /// Заполняет 2 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadStringTuple2(int count) - { - return Tuple.Of(ReadString(count), ReadString(count)); - } - - /// - /// Заполняет 3 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBooleanTuple3(int count) - { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); - } - - /// - /// Заполняет 3 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadCharTuple3(int count) - { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count)); - } - - /// - /// Заполняет 3 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt32Tuple3(int count) - { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count)); - } - - /// - /// Заполняет 3 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDoubleTuple3(int count) - { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count)); - } - - /// - /// Заполняет 3 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadStringTuple3(int count) - { - return Tuple.Of(ReadString(count), ReadString(count), ReadString(count)); - } - - /// - /// Заполняет 4 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBooleanTuple4(int count) - { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); - } - - /// - /// Заполняет 4 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadCharTuple4(int count) - { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); - } - - /// - /// Заполняет 4 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt32Tuple4(int count) - { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); - } - - /// - /// Заполняет 4 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDoubleTuple4(int count) - { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); - } - - /// - /// Заполняет 4 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadStringTuple4(int count) - { - return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count)); - } - - /// - /// Заполняет 5 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBooleanTuple5(int count) - { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); - } - - /// - /// Заполняет 5 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadCharTuple5(int count) - { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); - } - - /// - /// Заполняет 5 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadInt32Tuple5(int count) + public static Tuple ReadCharTuple2(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + return Tuple.Of(ReadChar(count), ReadChar(count)); } /// - /// Заполняет 5 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadDoubleTuple5(int count) + public static Tuple ReadDecimalTuple2(int count) { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + return Tuple.Of(ReadDecimal(count), ReadDecimal(count)); } /// - /// Заполняет 5 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadStringTuple5(int count) + public static Tuple ReadDoubleTuple2(int count) { - return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); + return Tuple.Of(ReadDouble(count), ReadDouble(count)); } /// - /// Заполняет 6 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadBooleanTuple6(int count) + public static Tuple ReadSingleTuple2(int count) { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + return Tuple.Of(ReadSingle(count), ReadSingle(count)); } /// - /// Заполняет 6 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadCharTuple6(int count) + public static Tuple ReadInt32Tuple2(int count) { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + return Tuple.Of(ReadInt32(count), ReadInt32(count)); } /// - /// Заполняет 6 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadInt32Tuple6(int count) + public static Tuple ReadUInt32Tuple2(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + return Tuple.Of(ReadUInt32(count), ReadUInt32(count)); } /// - /// Заполняет 6 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadDoubleTuple6(int count) + public static Tuple ReadInt64Tuple2(int count) { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + return Tuple.Of(ReadInt64(count), ReadInt64(count)); } /// - /// Заполняет 6 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadStringTuple6(int count) + public static Tuple ReadUInt64Tuple2(int count) { - return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); + return Tuple.Of(ReadUInt64(count), ReadUInt64(count)); } /// - /// Заполняет 7 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadBooleanTuple7(int count) + public static Tuple ReadInt16Tuple2(int count) { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + return Tuple.Of(ReadInt16(count), ReadInt16(count)); } /// - /// Заполняет 7 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadCharTuple7(int count) + public static Tuple ReadUInt16Tuple2(int count) { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + return Tuple.Of(ReadUInt16(count), ReadUInt16(count)); } /// - /// Заполняет 7 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadInt32Tuple7(int count) + public static Tuple ReadStringTuple2(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + return Tuple.Of(ReadString(count), ReadString(count)); } /// - /// Заполняет 7 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Заполняет 2 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadDoubleTuple7(int count) + public static Tuple ReadBigIntegerTuple2(int count) { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count)); } - /// - /// Заполняет 7 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadStringTuple7(int count) - { - return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); - } + // ToDo: Доделать для кортежей длины ддо 7-ми элементов и Nullable. #endregion public } } From a2697208982321641024fbee5eb4ee5083cfb31b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sun, 12 Apr 2020 00:50:57 +0700 Subject: [PATCH 037/102] closes #27 - new Array.Nullable class --- .../Utils/Array.Nullable.Input.cs | 276 ++++++++++++++++++ 1 file changed, 276 insertions(+) create mode 100644 NETMouse - .NET release/Utils/Array.Nullable.Input.cs diff --git a/NETMouse - .NET release/Utils/Array.Nullable.Input.cs b/NETMouse - .NET release/Utils/Array.Nullable.Input.cs new file mode 100644 index 0000000..86706c5 --- /dev/null +++ b/NETMouse - .NET release/Utils/Array.Nullable.Input.cs @@ -0,0 +1,276 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Numerics; +using System.Text; + +namespace ABCNET.Utils +{ + /// + /// Предоставляет функционал для работы с массивами. + /// + public static partial class Array + { + /// + /// Предоставляет функционал для работы с Nullable типами. + /// + public static partial class Nullable + { + #region public + + /// + /// Читает массив значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static bool?[] ReadBoolean(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + bool?[] array = new bool?[count]; + for (int i = 0; i < count; i++) + array[i] = Base.Nullable.ReadBoolean(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + + return array; + } + + /// + /// Читает массив значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static byte?[] ReadByte(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + byte?[] array = new byte?[count]; + for (int i = 0; i < count; i++) + array[i] = Base.Nullable.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + + return array; + } + + /// + /// Читает массив значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static sbyte?[] ReadSByte(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + sbyte?[] array = new sbyte?[count]; + for (int i = 0; i < count; i++) + array[i] = Base.Nullable.ReadSByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + + return array; + } + + /// + /// Читает массив значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static char?[] ReadChar(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + char?[] array = new char?[count]; + for (int i = 0; i < count; i++) + array[i] = Base.Nullable.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + + return array; + } + + /// + /// Читает массив значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static decimal?[] ReadDecimal(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + decimal?[] array = new decimal?[count]; + for (int i = 0; i < count; i++) + array[i] = Base.Nullable.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + + return array; + } + + /// + /// Читает массив значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static double?[] ReadDouble(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + double?[] array = new double?[count]; + for (int i = 0; i < count; i++) + array[i] = Base.Nullable.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + + return array; + } + + /// + /// Читает массив значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static float?[] ReadSingle(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + float?[] array = new float?[count]; + for (int i = 0; i < count; i++) + array[i] = Base.Nullable.ReadSingle(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + + return array; + } + + /// + /// Читает массив значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static int?[] ReadInt32(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + int?[] array = new int?[count]; + for (int i = 0; i < count; i++) + array[i] = Base.Nullable.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + + return array; + } + + /// + /// Читает массив значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static uint?[] ReadUInt32(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + uint?[] array = new uint?[count]; + for (int i = 0; i < count; i++) + array[i] = Base.Nullable.ReadUInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + + return array; + } + + /// + /// Читает массив значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static long?[] ReadInt64(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + long?[] array = new long?[count]; + for (int i = 0; i < count; i++) + array[i] = Base.Nullable.ReadInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + + return array; + } + + /// + /// Читает массив значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static ulong?[] ReadUInt64(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + ulong?[] array = new ulong?[count]; + for (int i = 0; i < count; i++) + array[i] = Base.Nullable.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + + return array; + } + + /// + /// Читает массив значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static short?[] ReadInt16(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + short?[] array = new short?[count]; + for (int i = 0; i < count; i++) + array[i] = Base.Nullable.ReadInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + + return array; + } + + /// + /// Читает массив значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static ushort?[] ReadUInt16(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + ushort?[] array = new ushort?[count]; + for (int i = 0; i < count; i++) + array[i] = Base.Nullable.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + + return array; + } + + /// + /// Читает массив значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Массив. + public static BigInteger?[] ReadBigInteger(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + BigInteger?[] array = new BigInteger?[count]; + for (int i = 0; i < count; i++) + array[i] = Base.Nullable.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + + return array; + } + + #endregion + } + } +} From 073cf1737f15aade1368395a33b4fceb7e2b3c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sun, 12 Apr 2020 19:24:18 +0700 Subject: [PATCH 038/102] closes #28 - code clean-up - try Array.Input --- NETMouse - .NET release/Utils/Array.Input.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NETMouse - .NET release/Utils/Array.Input.cs b/NETMouse - .NET release/Utils/Array.Input.cs index 25e46fc..51de659 100644 --- a/NETMouse - .NET release/Utils/Array.Input.cs +++ b/NETMouse - .NET release/Utils/Array.Input.cs @@ -10,6 +10,7 @@ namespace ABCNET.Utils public static partial class Array { #region public + /// /// Читает массив значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// From b123e8b3dc31a986a1d29ac9f99fa63bf61129fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sun, 12 Apr 2020 19:26:15 +0700 Subject: [PATCH 039/102] closes #28 - code clean-up try Matrix.Input --- NETMouse - .NET release/Utils/Matrix.Input.cs | 214 +++++------------- 1 file changed, 62 insertions(+), 152 deletions(-) diff --git a/NETMouse - .NET release/Utils/Matrix.Input.cs b/NETMouse - .NET release/Utils/Matrix.Input.cs index 08c9754..46dee59 100644 --- a/NETMouse - .NET release/Utils/Matrix.Input.cs +++ b/NETMouse - .NET release/Utils/Matrix.Input.cs @@ -32,16 +32,10 @@ public static partial class Matrix while (i < rowsCount) { while (j < colsCount) - try - { - source[i, j] = Base.ReadBoolean(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - + { + source[i, j] = Base.ReadBoolean(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } i++; j = 0; } @@ -70,16 +64,10 @@ public static partial class Matrix while (i < rowsCount) { while (j < colsCount) - try - { - source[i, j] = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - + { + source[i, j] = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } i++; j = 0; } @@ -108,16 +96,10 @@ public static partial class Matrix while (i < rowsCount) { while (j < colsCount) - try - { - source[i, j] = Base.ReadSByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - + { + source[i, j] = Base.ReadSByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } i++; j = 0; } @@ -146,16 +128,10 @@ public static partial class Matrix while (i < rowsCount) { while (j < colsCount) - try - { - source[i, j] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - + { + source[i, j] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } i++; j = 0; } @@ -184,16 +160,10 @@ public static partial class Matrix while (i < rowsCount) { while (j < colsCount) - try - { - source[i, j] = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - + { + source[i, j] = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } i++; j = 0; } @@ -222,16 +192,10 @@ public static partial class Matrix while (i < rowsCount) { while (j < colsCount) - try - { - source[i, j] = Base.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - + { + source[i, j] = Base.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } i++; j = 0; } @@ -260,16 +224,10 @@ public static partial class Matrix while (i < rowsCount) { while (j < colsCount) - try - { - source[i, j] = Base.ReadSingle(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - + { + source[i, j] = Base.ReadSingle(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } i++; j = 0; } @@ -298,16 +256,10 @@ public static partial class Matrix while (i < rowsCount) { while (j < colsCount) - try - { - source[i, j] = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - + { + source[i, j] = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } i++; j = 0; } @@ -316,13 +268,13 @@ public static partial class Matrix } /// - /// Читает матрицу значений типа Uint32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает матрицу значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество строк. /// Количество столбцов. /// Приглашение к вводу. /// Матрица. - public static uint[,] ReadUint32(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + public static uint[,] ReadUInt32(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) { if (rowsCount < 0) throw new ArgumentOutOfRangeException(nameof(rowsCount)); @@ -336,16 +288,10 @@ public static partial class Matrix while (i < rowsCount) { while (j < colsCount) - try - { - source[i, j] = Base.ReadUInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - + { + source[i, j] = Base.ReadUInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } i++; j = 0; } @@ -374,16 +320,10 @@ public static partial class Matrix while (i < rowsCount) { while (j < colsCount) - try - { - source[i, j] = Base.ReadInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - + { + source[i, j] = Base.ReadInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } i++; j = 0; } @@ -412,16 +352,10 @@ public static partial class Matrix while (i < rowsCount) { while (j < colsCount) - try - { - source[i, j] = Base.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - + { + source[i, j] = Base.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } i++; j = 0; } @@ -450,16 +384,10 @@ public static partial class Matrix while (i < rowsCount) { while (j < colsCount) - try - { - source[i, j] = Base.ReadInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - + { + source[i, j] = Base.ReadInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } i++; j = 0; } @@ -488,16 +416,10 @@ public static partial class Matrix while (i < rowsCount) { while (j < colsCount) - try - { - source[i, j] = Base.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - + { + source[i, j] = Base.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } i++; j = 0; } @@ -526,16 +448,10 @@ public static partial class Matrix while (i < rowsCount) { while (j < colsCount) - try - { - source[i, j] = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - + { + source[i, j] = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } i++; j = 0; } @@ -564,16 +480,10 @@ public static partial class Matrix while (i < rowsCount) { while (j < colsCount) - try - { - source[i, j] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - + { + source[i, j] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); + j++; + } i++; j = 0; } From 92e996e285fd78e2428065a530fe18a5ddd6dfb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sun, 12 Apr 2020 19:26:35 +0700 Subject: [PATCH 040/102] closes #28 - code clean-up try Tuple.Input --- NETMouse - .NET release/Utils/Tuple.Input.cs | 1759 ++++++------------ 1 file changed, 526 insertions(+), 1233 deletions(-) diff --git a/NETMouse - .NET release/Utils/Tuple.Input.cs b/NETMouse - .NET release/Utils/Tuple.Input.cs index 6a24859..45f5334 100644 --- a/NETMouse - .NET release/Utils/Tuple.Input.cs +++ b/NETMouse - .NET release/Utils/Tuple.Input.cs @@ -17,15 +17,12 @@ public static partial class Tuple /// Читает кортеж из двух значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadBooleanTuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBooleanTuple2(string prompt = null) { - bool a = default; - bool b = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadBooleanTupleItem(ref a, 0, prompt); - ReadBooleanTupleItem(ref b, 1, prompt); - - return Of(a, b); + return Of(Base.ReadBoolean(string.Format(prompt, 0)), + Base.ReadBoolean(string.Format(prompt, 1))); } /// @@ -34,15 +31,11 @@ public static Tuple ReadBooleanTuple2(string prompt = EmptyStringHel /// Кортеж. public static Tuple ReadBooleanTuple3(string prompt = EmptyStringHelper.Empty) { - bool a = default; - bool b = default; - bool c = default; - - ReadBooleanTupleItem(ref a, 0, prompt); - ReadBooleanTupleItem(ref b, 1, prompt); - ReadBooleanTupleItem(ref c, 2, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c); + return Of(Base.ReadBoolean(string.Format(prompt, 0)), + Base.ReadBoolean(string.Format(prompt, 1)), + Base.ReadBoolean(string.Format(prompt, 2))); } /// @@ -51,17 +44,12 @@ public static Tuple ReadBooleanTuple3(string prompt = EmptyStr /// Кортеж. public static Tuple ReadBooleanTuple4(string prompt = EmptyStringHelper.Empty) { - bool a = default; - bool b = default; - bool c = default; - bool d = default; - - ReadBooleanTupleItem(ref a, 0, prompt); - ReadBooleanTupleItem(ref b, 1, prompt); - ReadBooleanTupleItem(ref c, 2, prompt); - ReadBooleanTupleItem(ref d, 3, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d); + return Of(Base.ReadBoolean(string.Format(prompt, 0)), + Base.ReadBoolean(string.Format(prompt, 1)), + Base.ReadBoolean(string.Format(prompt, 2)), + Base.ReadBoolean(string.Format(prompt, 3))); } /// @@ -70,19 +58,13 @@ public static Tuple ReadBooleanTuple4(string prompt = Em /// Кортеж. public static Tuple ReadBooleanTuple5(string prompt = EmptyStringHelper.Empty) { - bool a = default; - bool b = default; - bool c = default; - bool d = default; - bool e = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadBooleanTupleItem(ref a, 0, prompt); - ReadBooleanTupleItem(ref b, 1, prompt); - ReadBooleanTupleItem(ref c, 2, prompt); - ReadBooleanTupleItem(ref d, 3, prompt); - ReadBooleanTupleItem(ref e, 4, prompt); - - return Of(a, b, c, d, e); + return Of(Base.ReadBoolean(string.Format(prompt, 0)), + Base.ReadBoolean(string.Format(prompt, 1)), + Base.ReadBoolean(string.Format(prompt, 2)), + Base.ReadBoolean(string.Format(prompt, 3)), + Base.ReadBoolean(string.Format(prompt, 4))); } /// @@ -91,21 +73,14 @@ public static Tuple ReadBooleanTuple5(string promp /// Кортеж. public static Tuple ReadBooleanTuple6(string prompt = EmptyStringHelper.Empty) { - bool a = default; - bool b = default; - bool c = default; - bool d = default; - bool e = default; - bool f = default; - - ReadBooleanTupleItem(ref a, 0, prompt); - ReadBooleanTupleItem(ref b, 1, prompt); - ReadBooleanTupleItem(ref c, 2, prompt); - ReadBooleanTupleItem(ref d, 3, prompt); - ReadBooleanTupleItem(ref e, 4, prompt); - ReadBooleanTupleItem(ref f, 5, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f); + return Of(Base.ReadBoolean(string.Format(prompt, 0)), + Base.ReadBoolean(string.Format(prompt, 1)), + Base.ReadBoolean(string.Format(prompt, 2)), + Base.ReadBoolean(string.Format(prompt, 3)), + Base.ReadBoolean(string.Format(prompt, 4)), + Base.ReadBoolean(string.Format(prompt, 5))); } /// @@ -114,23 +89,15 @@ public static Tuple ReadBooleanTuple6(string /// Кортеж. public static Tuple ReadBooleanTuple7(string prompt = EmptyStringHelper.Empty) { - bool a = default; - bool b = default; - bool c = default; - bool d = default; - bool e = default; - bool f = default; - bool g = default; - - ReadBooleanTupleItem(ref a, 0, prompt); - ReadBooleanTupleItem(ref b, 1, prompt); - ReadBooleanTupleItem(ref c, 2, prompt); - ReadBooleanTupleItem(ref d, 3, prompt); - ReadBooleanTupleItem(ref e, 4, prompt); - ReadBooleanTupleItem(ref f, 5, prompt); - ReadBooleanTupleItem(ref g, 6, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f, g); + return Of(Base.ReadBoolean(string.Format(prompt, 0)), + Base.ReadBoolean(string.Format(prompt, 1)), + Base.ReadBoolean(string.Format(prompt, 2)), + Base.ReadBoolean(string.Format(prompt, 3)), + Base.ReadBoolean(string.Format(prompt, 4)), + Base.ReadBoolean(string.Format(prompt, 5)), + Base.ReadBoolean(string.Format(prompt, 6))); } #endregion @@ -141,15 +108,12 @@ public static Tuple ReadBooleanTuple7( /// Читает кортеж из двух значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadByteTuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadByteTuple2(string prompt = null) { - byte a = default; - byte b = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadByteTupleItem(ref a, 0, prompt); - ReadByteTupleItem(ref b, 1, prompt); - - return Of(a, b); + return Of(Base.ReadByte(string.Format(prompt, 0)), + Base.ReadByte(string.Format(prompt, 1))); } /// @@ -158,15 +122,11 @@ public static Tuple ReadByteTuple2(string prompt = EmptyStringHelper /// Кортеж. public static Tuple ReadByteTuple3(string prompt = EmptyStringHelper.Empty) { - byte a = default; - byte b = default; - byte c = default; - - ReadByteTupleItem(ref a, 0, prompt); - ReadByteTupleItem(ref b, 1, prompt); - ReadByteTupleItem(ref c, 2, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c); + return Of(Base.ReadByte(string.Format(prompt, 0)), + Base.ReadByte(string.Format(prompt, 1)), + Base.ReadByte(string.Format(prompt, 2))); } /// @@ -175,17 +135,12 @@ public static Tuple ReadByteTuple3(string prompt = EmptyString /// Кортеж. public static Tuple ReadByteTuple4(string prompt = EmptyStringHelper.Empty) { - byte a = default; - byte b = default; - byte c = default; - byte d = default; - - ReadByteTupleItem(ref a, 0, prompt); - ReadByteTupleItem(ref b, 1, prompt); - ReadByteTupleItem(ref c, 2, prompt); - ReadByteTupleItem(ref d, 3, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d); + return Of(Base.ReadByte(string.Format(prompt, 0)), + Base.ReadByte(string.Format(prompt, 1)), + Base.ReadByte(string.Format(prompt, 2)), + Base.ReadByte(string.Format(prompt, 3))); } /// @@ -194,19 +149,13 @@ public static Tuple ReadByteTuple4(string prompt = Empty /// Кортеж. public static Tuple ReadByteTuple5(string prompt = EmptyStringHelper.Empty) { - byte a = default; - byte b = default; - byte c = default; - byte d = default; - byte e = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadByteTupleItem(ref a, 0, prompt); - ReadByteTupleItem(ref b, 1, prompt); - ReadByteTupleItem(ref c, 2, prompt); - ReadByteTupleItem(ref d, 3, prompt); - ReadByteTupleItem(ref e, 4, prompt); - - return Of(a, b, c, d, e); + return Of(Base.ReadByte(string.Format(prompt, 0)), + Base.ReadByte(string.Format(prompt, 1)), + Base.ReadByte(string.Format(prompt, 2)), + Base.ReadByte(string.Format(prompt, 3)), + Base.ReadByte(string.Format(prompt, 4))); } /// @@ -215,21 +164,14 @@ public static Tuple ReadByteTuple5(string prompt = /// Кортеж. public static Tuple ReadByteTuple6(string prompt = EmptyStringHelper.Empty) { - byte a = default; - byte b = default; - byte c = default; - byte d = default; - byte e = default; - byte f = default; - - ReadByteTupleItem(ref a, 0, prompt); - ReadByteTupleItem(ref b, 1, prompt); - ReadByteTupleItem(ref c, 2, prompt); - ReadByteTupleItem(ref d, 3, prompt); - ReadByteTupleItem(ref e, 4, prompt); - ReadByteTupleItem(ref f, 5, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f); + return Of(Base.ReadByte(string.Format(prompt, 0)), + Base.ReadByte(string.Format(prompt, 1)), + Base.ReadByte(string.Format(prompt, 2)), + Base.ReadByte(string.Format(prompt, 3)), + Base.ReadByte(string.Format(prompt, 4)), + Base.ReadByte(string.Format(prompt, 5))); } /// @@ -238,147 +180,106 @@ public static Tuple ReadByteTuple6(string pr /// Кортеж. public static Tuple ReadByteTuple7(string prompt = EmptyStringHelper.Empty) { - byte a = default; - byte b = default; - byte c = default; - byte d = default; - byte e = default; - byte f = default; - byte g = default; - - ReadByteTupleItem(ref a, 0, prompt); - ReadByteTupleItem(ref b, 1, prompt); - ReadByteTupleItem(ref c, 2, prompt); - ReadByteTupleItem(ref d, 3, prompt); - ReadByteTupleItem(ref e, 4, prompt); - ReadByteTupleItem(ref f, 5, prompt); - ReadByteTupleItem(ref g, 6, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f, g); + return Of(Base.ReadByte(string.Format(prompt, 0)), + Base.ReadByte(string.Format(prompt, 1)), + Base.ReadByte(string.Format(prompt, 2)), + Base.ReadByte(string.Format(prompt, 3)), + Base.ReadByte(string.Format(prompt, 4)), + Base.ReadByte(string.Format(prompt, 5)), + Base.ReadByte(string.Format(prompt, 6))); } #endregion - #region ReadSbyte + #region ReadSByte /// - /// Читает кортеж из двух значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadSbyteTuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple2(string prompt = null) { - sbyte a = default; - sbyte b = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadSByteTupleItem(ref a, 0, prompt); - ReadSByteTupleItem(ref b, 1, prompt); - - return Of(a, b); + return Of(Base.ReadSByte(string.Format(prompt, 0)), + Base.ReadSByte(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadSbyteTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple3(string prompt = EmptyStringHelper.Empty) { - sbyte a = default; - sbyte b = default; - sbyte c = default; - - ReadSByteTupleItem(ref a, 0, prompt); - ReadSByteTupleItem(ref b, 1, prompt); - ReadSByteTupleItem(ref c, 2, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c); + return Of(Base.ReadSByte(string.Format(prompt, 0)), + Base.ReadSByte(string.Format(prompt, 1)), + Base.ReadSByte(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadSbyteTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple4(string prompt = EmptyStringHelper.Empty) { - sbyte a = default; - sbyte b = default; - sbyte c = default; - sbyte d = default; - - ReadSByteTupleItem(ref a, 0, prompt); - ReadSByteTupleItem(ref b, 1, prompt); - ReadSByteTupleItem(ref c, 2, prompt); - ReadSByteTupleItem(ref d, 3, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d); + return Of(Base.ReadSByte(string.Format(prompt, 0)), + Base.ReadSByte(string.Format(prompt, 1)), + Base.ReadSByte(string.Format(prompt, 2)), + Base.ReadSByte(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadSbyteTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple5(string prompt = EmptyStringHelper.Empty) { - sbyte a = default; - sbyte b = default; - sbyte c = default; - sbyte d = default; - sbyte e = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadSByteTupleItem(ref a, 0, prompt); - ReadSByteTupleItem(ref b, 1, prompt); - ReadSByteTupleItem(ref c, 2, prompt); - ReadSByteTupleItem(ref d, 3, prompt); - ReadSByteTupleItem(ref e, 4, prompt); - - return Of(a, b, c, d, e); + return Of(Base.ReadSByte(string.Format(prompt, 0)), + Base.ReadSByte(string.Format(prompt, 1)), + Base.ReadSByte(string.Format(prompt, 2)), + Base.ReadSByte(string.Format(prompt, 3)), + Base.ReadSByte(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadSbyteTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple6(string prompt = EmptyStringHelper.Empty) { - sbyte a = default; - sbyte b = default; - sbyte c = default; - sbyte d = default; - sbyte e = default; - sbyte f = default; - - ReadSByteTupleItem(ref a, 0, prompt); - ReadSByteTupleItem(ref b, 1, prompt); - ReadSByteTupleItem(ref c, 2, prompt); - ReadSByteTupleItem(ref d, 3, prompt); - ReadSByteTupleItem(ref e, 4, prompt); - ReadSByteTupleItem(ref f, 5, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f); + return Of(Base.ReadSByte(string.Format(prompt, 0)), + Base.ReadSByte(string.Format(prompt, 1)), + Base.ReadSByte(string.Format(prompt, 2)), + Base.ReadSByte(string.Format(prompt, 3)), + Base.ReadSByte(string.Format(prompt, 4)), + Base.ReadSByte(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Sbyte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadSbyteTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple7(string prompt = EmptyStringHelper.Empty) { - sbyte a = default; - sbyte b = default; - sbyte c = default; - sbyte d = default; - sbyte e = default; - sbyte f = default; - sbyte g = default; - - ReadSByteTupleItem(ref a, 0, prompt); - ReadSByteTupleItem(ref b, 1, prompt); - ReadSByteTupleItem(ref c, 2, prompt); - ReadSByteTupleItem(ref d, 3, prompt); - ReadSByteTupleItem(ref e, 4, prompt); - ReadSByteTupleItem(ref f, 5, prompt); - ReadSByteTupleItem(ref g, 6, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f, g); + return Of(Base.ReadSByte(string.Format(prompt, 0)), + Base.ReadSByte(string.Format(prompt, 1)), + Base.ReadSByte(string.Format(prompt, 2)), + Base.ReadSByte(string.Format(prompt, 3)), + Base.ReadSByte(string.Format(prompt, 4)), + Base.ReadSByte(string.Format(prompt, 5)), + Base.ReadSByte(string.Format(prompt, 6))); } #endregion @@ -389,15 +290,12 @@ public static Tuple ReadSbyteTu /// Читает кортеж из двух значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadCharTuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadCharTuple2(string prompt = null) { - char a = default; - char b = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadCharTupleItem(ref a, 0, prompt); - ReadCharTupleItem(ref b, 1, prompt); - - return Of(a, b); + return Of(Base.ReadChar(string.Format(prompt, 0)), + Base.ReadChar(string.Format(prompt, 1))); } /// @@ -406,15 +304,11 @@ public static Tuple ReadCharTuple2(string prompt = EmptyStringHelper /// Кортеж. public static Tuple ReadCharTuple3(string prompt = EmptyStringHelper.Empty) { - char a = default; - char b = default; - char c = default; - - ReadCharTupleItem(ref a, 0, prompt); - ReadCharTupleItem(ref b, 1, prompt); - ReadCharTupleItem(ref c, 2, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c); + return Of(Base.ReadChar(string.Format(prompt, 0)), + Base.ReadChar(string.Format(prompt, 1)), + Base.ReadChar(string.Format(prompt, 2))); } /// @@ -423,17 +317,12 @@ public static Tuple ReadCharTuple3(string prompt = EmptyString /// Кортеж. public static Tuple ReadCharTuple4(string prompt = EmptyStringHelper.Empty) { - char a = default; - char b = default; - char c = default; - char d = default; - - ReadCharTupleItem(ref a, 0, prompt); - ReadCharTupleItem(ref b, 1, prompt); - ReadCharTupleItem(ref c, 2, prompt); - ReadCharTupleItem(ref d, 3, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d); + return Of(Base.ReadChar(string.Format(prompt, 0)), + Base.ReadChar(string.Format(prompt, 1)), + Base.ReadChar(string.Format(prompt, 2)), + Base.ReadChar(string.Format(prompt, 3))); } /// @@ -442,19 +331,13 @@ public static Tuple ReadCharTuple4(string prompt = Empty /// Кортеж. public static Tuple ReadCharTuple5(string prompt = EmptyStringHelper.Empty) { - char a = default; - char b = default; - char c = default; - char d = default; - char e = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadCharTupleItem(ref a, 0, prompt); - ReadCharTupleItem(ref b, 1, prompt); - ReadCharTupleItem(ref c, 2, prompt); - ReadCharTupleItem(ref d, 3, prompt); - ReadCharTupleItem(ref e, 4, prompt); - - return Of(a, b, c, d, e); + return Of(Base.ReadChar(string.Format(prompt, 0)), + Base.ReadChar(string.Format(prompt, 1)), + Base.ReadChar(string.Format(prompt, 2)), + Base.ReadChar(string.Format(prompt, 3)), + Base.ReadChar(string.Format(prompt, 4))); } /// @@ -463,21 +346,14 @@ public static Tuple ReadCharTuple5(string prompt = /// Кортеж. public static Tuple ReadCharTuple6(string prompt = EmptyStringHelper.Empty) { - char a = default; - char b = default; - char c = default; - char d = default; - char e = default; - char f = default; - - ReadCharTupleItem(ref a, 0, prompt); - ReadCharTupleItem(ref b, 1, prompt); - ReadCharTupleItem(ref c, 2, prompt); - ReadCharTupleItem(ref d, 3, prompt); - ReadCharTupleItem(ref e, 4, prompt); - ReadCharTupleItem(ref f, 5, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f); + return Of(Base.ReadChar(string.Format(prompt, 0)), + Base.ReadChar(string.Format(prompt, 1)), + Base.ReadChar(string.Format(prompt, 2)), + Base.ReadChar(string.Format(prompt, 3)), + Base.ReadChar(string.Format(prompt, 4)), + Base.ReadChar(string.Format(prompt, 5))); } /// @@ -486,23 +362,15 @@ public static Tuple ReadCharTuple6(string pr /// Кортеж. public static Tuple ReadCharTuple7(string prompt = EmptyStringHelper.Empty) { - char a = default; - char b = default; - char c = default; - char d = default; - char e = default; - char f = default; - char g = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadCharTupleItem(ref a, 0, prompt); - ReadCharTupleItem(ref b, 1, prompt); - ReadCharTupleItem(ref c, 2, prompt); - ReadCharTupleItem(ref d, 3, prompt); - ReadCharTupleItem(ref e, 4, prompt); - ReadCharTupleItem(ref f, 5, prompt); - ReadCharTupleItem(ref g, 6, prompt); - - return Of(a, b, c, d, e, f, g); + return Of(Base.ReadChar(string.Format(prompt, 0)), + Base.ReadChar(string.Format(prompt, 1)), + Base.ReadChar(string.Format(prompt, 2)), + Base.ReadChar(string.Format(prompt, 3)), + Base.ReadChar(string.Format(prompt, 4)), + Base.ReadChar(string.Format(prompt, 5)), + Base.ReadChar(string.Format(prompt, 6))); } #endregion @@ -513,15 +381,12 @@ public static Tuple ReadCharTuple7(str /// Читает кортеж из двух значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadDecimalTuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadDecimalTuple2(string prompt = null) { - decimal a = default; - decimal b = default; - - ReadDecimalTupleItem(ref a, 0, prompt); - ReadDecimalTupleItem(ref b, 1, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b); + return Of(Base.ReadDecimal(string.Format(prompt, 0)), + Base.ReadDecimal(string.Format(prompt, 1))); } /// @@ -530,15 +395,11 @@ public static Tuple ReadDecimalTuple2(string prompt = EmptyStr /// Кортеж. public static Tuple ReadDecimalTuple3(string prompt = EmptyStringHelper.Empty) { - decimal a = default; - decimal b = default; - decimal c = default; - - ReadDecimalTupleItem(ref a, 0, prompt); - ReadDecimalTupleItem(ref b, 1, prompt); - ReadDecimalTupleItem(ref c, 2, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c); + return Of(Base.ReadDecimal(string.Format(prompt, 0)), + Base.ReadDecimal(string.Format(prompt, 1)), + Base.ReadDecimal(string.Format(prompt, 2))); } /// @@ -547,17 +408,12 @@ public static Tuple ReadDecimalTuple3(string prompt = /// Кортеж. public static Tuple ReadDecimalTuple4(string prompt = EmptyStringHelper.Empty) { - decimal a = default; - decimal b = default; - decimal c = default; - decimal d = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadDecimalTupleItem(ref a, 0, prompt); - ReadDecimalTupleItem(ref b, 1, prompt); - ReadDecimalTupleItem(ref c, 2, prompt); - ReadDecimalTupleItem(ref d, 3, prompt); - - return Of(a, b, c, d); + return Of(Base.ReadDecimal(string.Format(prompt, 0)), + Base.ReadDecimal(string.Format(prompt, 1)), + Base.ReadDecimal(string.Format(prompt, 2)), + Base.ReadDecimal(string.Format(prompt, 3))); } /// @@ -566,19 +422,13 @@ public static Tuple ReadDecimalTuple4(string /// Кортеж. public static Tuple ReadDecimalTuple5(string prompt = EmptyStringHelper.Empty) { - decimal a = default; - decimal b = default; - decimal c = default; - decimal d = default; - decimal e = default; - - ReadDecimalTupleItem(ref a, 0, prompt); - ReadDecimalTupleItem(ref b, 1, prompt); - ReadDecimalTupleItem(ref c, 2, prompt); - ReadDecimalTupleItem(ref d, 3, prompt); - ReadDecimalTupleItem(ref e, 4, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e); + return Of(Base.ReadDecimal(string.Format(prompt, 0)), + Base.ReadDecimal(string.Format(prompt, 1)), + Base.ReadDecimal(string.Format(prompt, 2)), + Base.ReadDecimal(string.Format(prompt, 3)), + Base.ReadDecimal(string.Format(prompt, 4))); } /// @@ -587,21 +437,14 @@ public static Tuple ReadDecimalTupl /// Кортеж. public static Tuple ReadDecimalTuple6(string prompt = EmptyStringHelper.Empty) { - decimal a = default; - decimal b = default; - decimal c = default; - decimal d = default; - decimal e = default; - decimal f = default; - - ReadDecimalTupleItem(ref a, 0, prompt); - ReadDecimalTupleItem(ref b, 1, prompt); - ReadDecimalTupleItem(ref c, 2, prompt); - ReadDecimalTupleItem(ref d, 3, prompt); - ReadDecimalTupleItem(ref e, 4, prompt); - ReadDecimalTupleItem(ref f, 5, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f); + return Of(Base.ReadDecimal(string.Format(prompt, 0)), + Base.ReadDecimal(string.Format(prompt, 1)), + Base.ReadDecimal(string.Format(prompt, 2)), + Base.ReadDecimal(string.Format(prompt, 3)), + Base.ReadDecimal(string.Format(prompt, 4)), + Base.ReadDecimal(string.Format(prompt, 5))); } /// @@ -610,23 +453,15 @@ public static Tuple ReadDe /// Кортеж. public static Tuple ReadDecimalTuple7(string prompt = EmptyStringHelper.Empty) { - decimal a = default; - decimal b = default; - decimal c = default; - decimal d = default; - decimal e = default; - decimal f = default; - decimal g = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadDecimalTupleItem(ref a, 0, prompt); - ReadDecimalTupleItem(ref b, 1, prompt); - ReadDecimalTupleItem(ref c, 2, prompt); - ReadDecimalTupleItem(ref d, 3, prompt); - ReadDecimalTupleItem(ref e, 4, prompt); - ReadDecimalTupleItem(ref f, 5, prompt); - ReadDecimalTupleItem(ref g, 6, prompt); - - return Of(a, b, c, d, e, f, g); + return Of(Base.ReadDecimal(string.Format(prompt, 0)), + Base.ReadDecimal(string.Format(prompt, 1)), + Base.ReadDecimal(string.Format(prompt, 2)), + Base.ReadDecimal(string.Format(prompt, 3)), + Base.ReadDecimal(string.Format(prompt, 4)), + Base.ReadDecimal(string.Format(prompt, 5)), + Base.ReadDecimal(string.Format(prompt, 6))); } #endregion @@ -637,15 +472,12 @@ public static Tuple /// Кортеж. - public static Tuple ReadDoubleTuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadDoubleTuple2(string prompt = null) { - double a = default; - double b = default; - - ReadDoubleTupleItem(ref a, 0, prompt); - ReadDoubleTupleItem(ref b, 1, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b); + return Of(Base.ReadDouble(string.Format(prompt, 0)), + Base.ReadDouble(string.Format(prompt, 1))); } /// @@ -654,15 +486,11 @@ public static Tuple ReadDoubleTuple2(string prompt = EmptyString /// Кортеж. public static Tuple ReadDoubleTuple3(string prompt = EmptyStringHelper.Empty) { - double a = default; - double b = default; - double c = default; - - ReadDoubleTupleItem(ref a, 0, prompt); - ReadDoubleTupleItem(ref b, 1, prompt); - ReadDoubleTupleItem(ref c, 2, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c); + return Of(Base.ReadDouble(string.Format(prompt, 0)), + Base.ReadDouble(string.Format(prompt, 1)), + Base.ReadDouble(string.Format(prompt, 2))); } /// @@ -671,17 +499,12 @@ public static Tuple ReadDoubleTuple3(string prompt = Emp /// Кортеж. public static Tuple ReadDoubleTuple4(string prompt = EmptyStringHelper.Empty) { - double a = default; - double b = default; - double c = default; - double d = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadDoubleTupleItem(ref a, 0, prompt); - ReadDoubleTupleItem(ref b, 1, prompt); - ReadDoubleTupleItem(ref c, 2, prompt); - ReadDoubleTupleItem(ref d, 3, prompt); - - return Of(a, b, c, d); + return Of(Base.ReadDouble(string.Format(prompt, 0)), + Base.ReadDouble(string.Format(prompt, 1)), + Base.ReadDouble(string.Format(prompt, 2)), + Base.ReadDouble(string.Format(prompt, 3))); } /// @@ -690,19 +513,13 @@ public static Tuple ReadDoubleTuple4(string prom /// Кортеж. public static Tuple ReadDoubleTuple5(string prompt = EmptyStringHelper.Empty) { - double a = default; - double b = default; - double c = default; - double d = default; - double e = default; - - ReadDoubleTupleItem(ref a, 0, prompt); - ReadDoubleTupleItem(ref b, 1, prompt); - ReadDoubleTupleItem(ref c, 2, prompt); - ReadDoubleTupleItem(ref d, 3, prompt); - ReadDoubleTupleItem(ref e, 4, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e); + return Of(Base.ReadDouble(string.Format(prompt, 0)), + Base.ReadDouble(string.Format(prompt, 1)), + Base.ReadDouble(string.Format(prompt, 2)), + Base.ReadDouble(string.Format(prompt, 3)), + Base.ReadDouble(string.Format(prompt, 4))); } /// @@ -711,21 +528,14 @@ public static Tuple ReadDoubleTuple5(str /// Кортеж. public static Tuple ReadDoubleTuple6(string prompt = EmptyStringHelper.Empty) { - double a = default; - double b = default; - double c = default; - double d = default; - double e = default; - double f = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadDoubleTupleItem(ref a, 0, prompt); - ReadDoubleTupleItem(ref b, 1, prompt); - ReadDoubleTupleItem(ref c, 2, prompt); - ReadDoubleTupleItem(ref d, 3, prompt); - ReadDoubleTupleItem(ref e, 4, prompt); - ReadDoubleTupleItem(ref f, 5, prompt); - - return Of(a, b, c, d, e, f); + return Of(Base.ReadDouble(string.Format(prompt, 0)), + Base.ReadDouble(string.Format(prompt, 1)), + Base.ReadDouble(string.Format(prompt, 2)), + Base.ReadDouble(string.Format(prompt, 3)), + Base.ReadDouble(string.Format(prompt, 4)), + Base.ReadDouble(string.Format(prompt, 5))); } /// @@ -734,42 +544,31 @@ public static Tuple ReadDoubleTu /// Кортеж. public static Tuple ReadDoubleTuple7(string prompt = EmptyStringHelper.Empty) { - double a = default; - double b = default; - double c = default; - double d = default; - double e = default; - double f = default; - double g = default; - - ReadDoubleTupleItem(ref a, 0, prompt); - ReadDoubleTupleItem(ref b, 1, prompt); - ReadDoubleTupleItem(ref c, 2, prompt); - ReadDoubleTupleItem(ref d, 3, prompt); - ReadDoubleTupleItem(ref e, 4, prompt); - ReadDoubleTupleItem(ref f, 5, prompt); - ReadDoubleTupleItem(ref g, 6, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f, g); + return Of(Base.ReadDouble(string.Format(prompt, 0)), + Base.ReadDouble(string.Format(prompt, 1)), + Base.ReadDouble(string.Format(prompt, 2)), + Base.ReadDouble(string.Format(prompt, 3)), + Base.ReadDouble(string.Format(prompt, 4)), + Base.ReadDouble(string.Format(prompt, 5)), + Base.ReadDouble(string.Format(prompt, 6))); } #endregion - #region ReadFloat + #region ReadSingle /// /// Читает кортеж из двух значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadSingleTuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple2(string prompt = null) { - float a = default; - float b = default; - - ReadSingleTupleItem(ref a, 0, prompt); - ReadSingleTupleItem(ref b, 1, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b); + return Of(Base.ReadSingle(string.Format(prompt, 0)), + Base.ReadSingle(string.Format(prompt, 1))); } /// @@ -778,15 +577,11 @@ public static Tuple ReadSingleTuple2(string prompt = EmptyStringHe /// Кортеж. public static Tuple ReadSingleTuple3(string prompt = EmptyStringHelper.Empty) { - float a = default; - float b = default; - float c = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadSingleTupleItem(ref a, 0, prompt); - ReadSingleTupleItem(ref b, 1, prompt); - ReadSingleTupleItem(ref c, 2, prompt); - - return Of(a, b, c); + return Of(Base.ReadSingle(string.Format(prompt, 0)), + Base.ReadSingle(string.Format(prompt, 1)), + Base.ReadSingle(string.Format(prompt, 2))); } /// @@ -795,17 +590,12 @@ public static Tuple ReadSingleTuple3(string prompt = EmptyS /// Кортеж. public static Tuple ReadSingleTuple4(string prompt = EmptyStringHelper.Empty) { - float a = default; - float b = default; - float c = default; - float d = default; - - ReadSingleTupleItem(ref a, 0, prompt); - ReadSingleTupleItem(ref b, 1, prompt); - ReadSingleTupleItem(ref c, 2, prompt); - ReadSingleTupleItem(ref d, 3, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d); + return Of(Base.ReadSingle(string.Format(prompt, 0)), + Base.ReadSingle(string.Format(prompt, 1)), + Base.ReadSingle(string.Format(prompt, 2)), + Base.ReadSingle(string.Format(prompt, 3))); } /// @@ -814,19 +604,13 @@ public static Tuple ReadSingleTuple4(string prompt = /// Кортеж. public static Tuple ReadSingleTuple5(string prompt = EmptyStringHelper.Empty) { - float a = default; - float b = default; - float c = default; - float d = default; - float e = default; - - ReadSingleTupleItem(ref a, 0, prompt); - ReadSingleTupleItem(ref b, 1, prompt); - ReadSingleTupleItem(ref c, 2, prompt); - ReadSingleTupleItem(ref d, 3, prompt); - ReadSingleTupleItem(ref e, 4, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e); + return Of(Base.ReadSingle(string.Format(prompt, 0)), + Base.ReadSingle(string.Format(prompt, 1)), + Base.ReadSingle(string.Format(prompt, 2)), + Base.ReadSingle(string.Format(prompt, 3)), + Base.ReadSingle(string.Format(prompt, 4))); } /// @@ -835,20 +619,14 @@ public static Tuple ReadSingleTuple5(string p /// Кортеж. public static Tuple ReadSingleTuple6(string prompt = EmptyStringHelper.Empty) { - float a = default; - float b = default; - float c = default; - float d = default; - float e = default; - float f = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadSingleTupleItem(ref b, 1, prompt); - ReadSingleTupleItem(ref c, 2, prompt); - ReadSingleTupleItem(ref d, 3, prompt); - ReadSingleTupleItem(ref e, 4, prompt); - ReadSingleTupleItem(ref f, 5, prompt); - - return Of(a, b, c, d, e, f); + return Of(Base.ReadSingle(string.Format(prompt, 0)), + Base.ReadSingle(string.Format(prompt, 1)), + Base.ReadSingle(string.Format(prompt, 2)), + Base.ReadSingle(string.Format(prompt, 3)), + Base.ReadSingle(string.Format(prompt, 4)), + Base.ReadSingle(string.Format(prompt, 5))); } /// @@ -857,23 +635,15 @@ public static Tuple ReadSingleTuple6(s /// Кортеж. public static Tuple ReadSingleTuple7(string prompt = EmptyStringHelper.Empty) { - float a = default; - float b = default; - float c = default; - float d = default; - float e = default; - float f = default; - float g = default; - - ReadSingleTupleItem(ref a, 0, prompt); - ReadSingleTupleItem(ref b, 1, prompt); - ReadSingleTupleItem(ref c, 2, prompt); - ReadSingleTupleItem(ref d, 3, prompt); - ReadSingleTupleItem(ref e, 4, prompt); - ReadSingleTupleItem(ref f, 5, prompt); - ReadSingleTupleItem(ref g, 6, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f, g); + return Of(Base.ReadSingle(string.Format(prompt, 0)), + Base.ReadSingle(string.Format(prompt, 1)), + Base.ReadSingle(string.Format(prompt, 2)), + Base.ReadSingle(string.Format(prompt, 3)), + Base.ReadSingle(string.Format(prompt, 4)), + Base.ReadSingle(string.Format(prompt, 5)), + Base.ReadSingle(string.Format(prompt, 6))); } #endregion @@ -884,32 +654,25 @@ public static Tuple ReadSingleT /// Читает кортеж из двух значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadInt32Tuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt32Tuple2(string prompt = null) { - int a = default; - int b = default; - - ReadInt32TupleItem(ref a, 0, prompt); - ReadInt32TupleItem(ref b, 1, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b); + return Of(Base.ReadInt32(string.Format(prompt, 0)), + Base.ReadInt32(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Int. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadIntTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt32Tuple3(string prompt = EmptyStringHelper.Empty) { - int a = default; - int b = default; - int c = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadInt32TupleItem(ref a, 0, prompt); - ReadInt32TupleItem(ref b, 1, prompt); - ReadInt32TupleItem(ref c, 2, prompt); - - return Of(a, b, c); + return Of(Base.ReadInt32(string.Format(prompt, 0)), + Base.ReadInt32(string.Format(prompt, 1)), + Base.ReadInt32(string.Format(prompt, 2))); } /// @@ -918,17 +681,12 @@ public static Tuple ReadIntTuple3(string prompt = EmptyStringHelp /// Кортеж. public static Tuple ReadInt32Tuple4(string prompt = EmptyStringHelper.Empty) { - int a = default; - int b = default; - int c = default; - int d = default; - - ReadInt32TupleItem(ref a, 0, prompt); - ReadInt32TupleItem(ref b, 1, prompt); - ReadInt32TupleItem(ref c, 2, prompt); - ReadInt32TupleItem(ref d, 3, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d); + return Of(Base.ReadInt32(string.Format(prompt, 0)), + Base.ReadInt32(string.Format(prompt, 1)), + Base.ReadInt32(string.Format(prompt, 2)), + Base.ReadInt32(string.Format(prompt, 3))); } /// @@ -937,19 +695,13 @@ public static Tuple ReadInt32Tuple4(string prompt = EmptyStr /// Кортеж. public static Tuple ReadInt32Tuple5(string prompt = EmptyStringHelper.Empty) { - int a = default; - int b = default; - int c = default; - int d = default; - int e = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadInt32TupleItem(ref a, 0, prompt); - ReadInt32TupleItem(ref b, 1, prompt); - ReadInt32TupleItem(ref c, 2, prompt); - ReadInt32TupleItem(ref d, 3, prompt); - ReadInt32TupleItem(ref e, 4, prompt); - - return Of(a, b, c, d, e); + return Of(Base.ReadInt32(string.Format(prompt, 0)), + Base.ReadInt32(string.Format(prompt, 1)), + Base.ReadInt32(string.Format(prompt, 2)), + Base.ReadInt32(string.Format(prompt, 3)), + Base.ReadInt32(string.Format(prompt, 4))); } /// @@ -958,21 +710,14 @@ public static Tuple ReadInt32Tuple5(string prompt = Emp /// Кортеж. public static Tuple ReadInt32Tuple6(string prompt = EmptyStringHelper.Empty) { - int a = default; - int b = default; - int c = default; - int d = default; - int e = default; - int f = default; - - ReadInt32TupleItem(ref a, 0, prompt); - ReadInt32TupleItem(ref b, 1, prompt); - ReadInt32TupleItem(ref c, 2, prompt); - ReadInt32TupleItem(ref d, 3, prompt); - ReadInt32TupleItem(ref e, 4, prompt); - ReadInt32TupleItem(ref f, 5, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f); + return Of(Base.ReadInt32(string.Format(prompt, 0)), + Base.ReadInt32(string.Format(prompt, 1)), + Base.ReadInt32(string.Format(prompt, 2)), + Base.ReadInt32(string.Format(prompt, 3)), + Base.ReadInt32(string.Format(prompt, 4)), + Base.ReadInt32(string.Format(prompt, 5))); } /// @@ -981,23 +726,15 @@ public static Tuple ReadInt32Tuple6(string prompt /// Кортеж. public static Tuple ReadInt32Tuple7(string prompt = EmptyStringHelper.Empty) { - int a = default; - int b = default; - int c = default; - int d = default; - int e = default; - int f = default; - int g = default; - - ReadInt32TupleItem(ref a, 0, prompt); - ReadInt32TupleItem(ref b, 1, prompt); - ReadInt32TupleItem(ref c, 2, prompt); - ReadInt32TupleItem(ref d, 3, prompt); - ReadInt32TupleItem(ref e, 4, prompt); - ReadInt32TupleItem(ref f, 5, prompt); - ReadInt32TupleItem(ref g, 6, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f, g); + return Of(Base.ReadInt32(string.Format(prompt, 0)), + Base.ReadInt32(string.Format(prompt, 1)), + Base.ReadInt32(string.Format(prompt, 2)), + Base.ReadInt32(string.Format(prompt, 3)), + Base.ReadInt32(string.Format(prompt, 4)), + Base.ReadInt32(string.Format(prompt, 5)), + Base.ReadInt32(string.Format(prompt, 6))); } #endregion @@ -1008,15 +745,12 @@ public static Tuple ReadInt32Tuple7(string pr /// Читает кортеж из двух значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadUInt32Tuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple2(string prompt = null) { - uint a = default; - uint b = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadUInt32TupleItem(ref a, 0, prompt); - ReadUInt32TupleItem(ref b, 1, prompt); - - return Of(a, b); + return Of(Base.ReadUInt32(string.Format(prompt, 0)), + Base.ReadUInt32(string.Format(prompt, 1))); } /// @@ -1025,15 +759,11 @@ public static Tuple ReadUInt32Tuple2(string prompt = EmptyStringHelp /// Кортеж. public static Tuple ReadUInt32Tuple3(string prompt = EmptyStringHelper.Empty) { - uint a = default; - uint b = default; - uint c = default; - - ReadUInt32TupleItem(ref a, 0, prompt); - ReadUInt32TupleItem(ref b, 1, prompt); - ReadUInt32TupleItem(ref c, 2, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c); + return Of(Base.ReadUInt32(string.Format(prompt, 0)), + Base.ReadUInt32(string.Format(prompt, 1)), + Base.ReadUInt32(string.Format(prompt, 2))); } /// @@ -1042,17 +772,12 @@ public static Tuple ReadUInt32Tuple3(string prompt = EmptyStri /// Кортеж. public static Tuple ReadUInt32Tuple4(string prompt = EmptyStringHelper.Empty) { - uint a = default; - uint b = default; - uint c = default; - uint d = default; - - ReadUInt32TupleItem(ref a, 0, prompt); - ReadUInt32TupleItem(ref b, 1, prompt); - ReadUInt32TupleItem(ref c, 2, prompt); - ReadUInt32TupleItem(ref d, 3, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d); + return Of(Base.ReadUInt32(string.Format(prompt, 0)), + Base.ReadUInt32(string.Format(prompt, 1)), + Base.ReadUInt32(string.Format(prompt, 2)), + Base.ReadUInt32(string.Format(prompt, 3))); } /// @@ -1061,19 +786,13 @@ public static Tuple ReadUInt32Tuple4(string prompt = Emp /// Кортеж. public static Tuple ReadUInt32Tuple5(string prompt = EmptyStringHelper.Empty) { - uint a = default; - uint b = default; - uint c = default; - uint d = default; - uint e = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadUInt32TupleItem(ref a, 0, prompt); - ReadUInt32TupleItem(ref b, 1, prompt); - ReadUInt32TupleItem(ref c, 2, prompt); - ReadUInt32TupleItem(ref d, 3, prompt); - ReadUInt32TupleItem(ref e, 4, prompt); - - return Of(a, b, c, d, e); + return Of(Base.ReadUInt32(string.Format(prompt, 0)), + Base.ReadUInt32(string.Format(prompt, 1)), + Base.ReadUInt32(string.Format(prompt, 2)), + Base.ReadUInt32(string.Format(prompt, 3)), + Base.ReadUInt32(string.Format(prompt, 4))); } /// @@ -1082,21 +801,14 @@ public static Tuple ReadUInt32Tuple5(string prompt /// Кортеж. public static Tuple ReadUInt32Tuple6(string prompt = EmptyStringHelper.Empty) { - uint a = default; - uint b = default; - uint c = default; - uint d = default; - uint e = default; - uint f = default; - - ReadUInt32TupleItem(ref a, 0, prompt); - ReadUInt32TupleItem(ref b, 1, prompt); - ReadUInt32TupleItem(ref c, 2, prompt); - ReadUInt32TupleItem(ref d, 3, prompt); - ReadUInt32TupleItem(ref e, 4, prompt); - ReadUInt32TupleItem(ref f, 5, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f); + return Of(Base.ReadUInt32(string.Format(prompt, 0)), + Base.ReadUInt32(string.Format(prompt, 1)), + Base.ReadUInt32(string.Format(prompt, 2)), + Base.ReadUInt32(string.Format(prompt, 3)), + Base.ReadUInt32(string.Format(prompt, 4)), + Base.ReadUInt32(string.Format(prompt, 5))); } /// @@ -1105,23 +817,15 @@ public static Tuple ReadUInt32Tuple6(string /// Кортеж. public static Tuple ReadUInt32Tuple7(string prompt = EmptyStringHelper.Empty) { - uint a = default; - uint b = default; - uint c = default; - uint d = default; - uint e = default; - uint f = default; - uint g = default; - - ReadUInt32TupleItem(ref a, 0, prompt); - ReadUInt32TupleItem(ref b, 1, prompt); - ReadUInt32TupleItem(ref c, 2, prompt); - ReadUInt32TupleItem(ref d, 3, prompt); - ReadUInt32TupleItem(ref e, 4, prompt); - ReadUInt32TupleItem(ref f, 5, prompt); - ReadUInt32TupleItem(ref g, 6, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f, g); + return Of(Base.ReadUInt32(string.Format(prompt, 0)), + Base.ReadUInt32(string.Format(prompt, 1)), + Base.ReadUInt32(string.Format(prompt, 2)), + Base.ReadUInt32(string.Format(prompt, 3)), + Base.ReadUInt32(string.Format(prompt, 4)), + Base.ReadUInt32(string.Format(prompt, 5)), + Base.ReadUInt32(string.Format(prompt, 6))); } #endregion @@ -1132,15 +836,12 @@ public static Tuple ReadUInt32Tuple7(s /// Читает кортеж из двух значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadInt64Tuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple2(string prompt = null) { - long a = default; - long b = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadInt64TupleItem(ref a, 0, prompt); - ReadInt64TupleItem(ref b, 1, prompt); - - return Of(a, b); + return Of(Base.ReadInt64(string.Format(prompt, 0)), + Base.ReadInt64(string.Format(prompt, 1))); } /// @@ -1149,15 +850,11 @@ public static Tuple ReadInt64Tuple2(string prompt = EmptyStringHelpe /// Кортеж. public static Tuple ReadInt64Tuple3(string prompt = EmptyStringHelper.Empty) { - long a = default; - long b = default; - long c = default; - - ReadInt64TupleItem(ref a, 0, prompt); - ReadInt64TupleItem(ref b, 1, prompt); - ReadInt64TupleItem(ref c, 2, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c); + return Of(Base.ReadInt64(string.Format(prompt, 0)), + Base.ReadInt64(string.Format(prompt, 1)), + Base.ReadInt64(string.Format(prompt, 2))); } /// @@ -1166,17 +863,12 @@ public static Tuple ReadInt64Tuple3(string prompt = EmptyStrin /// Кортеж. public static Tuple ReadInt64Tuple4(string prompt = EmptyStringHelper.Empty) { - long a = default; - long b = default; - long c = default; - long d = default; - - ReadInt64TupleItem(ref a, 0, prompt); - ReadInt64TupleItem(ref b, 1, prompt); - ReadInt64TupleItem(ref c, 2, prompt); - ReadInt64TupleItem(ref d, 3, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d); + return Of(Base.ReadInt64(string.Format(prompt, 0)), + Base.ReadInt64(string.Format(prompt, 1)), + Base.ReadInt64(string.Format(prompt, 2)), + Base.ReadInt64(string.Format(prompt, 3))); } /// @@ -1185,19 +877,13 @@ public static Tuple ReadInt64Tuple4(string prompt = Empt /// Кортеж. public static Tuple ReadInt64Tuple5(string prompt = EmptyStringHelper.Empty) { - long a = default; - long b = default; - long c = default; - long d = default; - long e = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadInt64TupleItem(ref a, 0, prompt); - ReadInt64TupleItem(ref b, 1, prompt); - ReadInt64TupleItem(ref c, 2, prompt); - ReadInt64TupleItem(ref d, 3, prompt); - ReadInt64TupleItem(ref e, 4, prompt); - - return Of(a, b, c, d, e); + return Of(Base.ReadInt64(string.Format(prompt, 0)), + Base.ReadInt64(string.Format(prompt, 1)), + Base.ReadInt64(string.Format(prompt, 2)), + Base.ReadInt64(string.Format(prompt, 3)), + Base.ReadInt64(string.Format(prompt, 4))); } /// @@ -1206,21 +892,14 @@ public static Tuple ReadInt64Tuple5(string prompt /// Кортеж. public static Tuple ReadInt64Tuple6(string prompt = EmptyStringHelper.Empty) { - long a = default; - long b = default; - long c = default; - long d = default; - long e = default; - long f = default; - - ReadInt64TupleItem(ref a, 0, prompt); - ReadInt64TupleItem(ref b, 1, prompt); - ReadInt64TupleItem(ref c, 2, prompt); - ReadInt64TupleItem(ref d, 3, prompt); - ReadInt64TupleItem(ref e, 4, prompt); - ReadInt64TupleItem(ref f, 5, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f); + return Of(Base.ReadInt64(string.Format(prompt, 0)), + Base.ReadInt64(string.Format(prompt, 1)), + Base.ReadInt64(string.Format(prompt, 2)), + Base.ReadInt64(string.Format(prompt, 3)), + Base.ReadInt64(string.Format(prompt, 4)), + Base.ReadInt64(string.Format(prompt, 5))); } /// @@ -1229,23 +908,15 @@ public static Tuple ReadInt64Tuple6(string p /// Кортеж. public static Tuple ReadInt64Tuple7(string prompt = EmptyStringHelper.Empty) { - long a = default; - long b = default; - long c = default; - long d = default; - long e = default; - long f = default; - long g = default; - - ReadInt64TupleItem(ref a, 0, prompt); - ReadInt64TupleItem(ref b, 1, prompt); - ReadInt64TupleItem(ref c, 2, prompt); - ReadInt64TupleItem(ref d, 3, prompt); - ReadInt64TupleItem(ref e, 4, prompt); - ReadInt64TupleItem(ref f, 5, prompt); - ReadInt64TupleItem(ref g, 6, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f, g); + return Of(Base.ReadInt64(string.Format(prompt, 0)), + Base.ReadInt64(string.Format(prompt, 1)), + Base.ReadInt64(string.Format(prompt, 2)), + Base.ReadInt64(string.Format(prompt, 3)), + Base.ReadInt64(string.Format(prompt, 4)), + Base.ReadInt64(string.Format(prompt, 5)), + Base.ReadInt64(string.Format(prompt, 6))); } #endregion @@ -1256,15 +927,12 @@ public static Tuple ReadInt64Tuple7(st /// Читает кортеж из двух значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadUInt64Tuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple2(string prompt = null) { - ulong a = default; - ulong b = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadUInt64TupleItem(ref a, 0, prompt); - ReadUInt64TupleItem(ref b, 1, prompt); - - return Of(a, b); + return Of(Base.ReadUInt64(string.Format(prompt, 0)), + Base.ReadUInt64(string.Format(prompt, 1))); } /// @@ -1273,15 +941,11 @@ public static Tuple ReadUInt64Tuple2(string prompt = EmptyStringHe /// Кортеж. public static Tuple ReadUInt64Tuple3(string prompt = EmptyStringHelper.Empty) { - ulong a = default; - ulong b = default; - ulong c = default; - - ReadUInt64TupleItem(ref a, 0, prompt); - ReadUInt64TupleItem(ref b, 1, prompt); - ReadUInt64TupleItem(ref c, 2, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c); + return Of(Base.ReadUInt64(string.Format(prompt, 0)), + Base.ReadUInt64(string.Format(prompt, 1)), + Base.ReadUInt64(string.Format(prompt, 2))); } /// @@ -1290,17 +954,12 @@ public static Tuple ReadUInt64Tuple3(string prompt = EmptyS /// Кортеж. public static Tuple ReadUInt64Tuple4(string prompt = EmptyStringHelper.Empty) { - ulong a = default; - ulong b = default; - ulong c = default; - ulong d = default; - - ReadUInt64TupleItem(ref a, 0, prompt); - ReadUInt64TupleItem(ref b, 1, prompt); - ReadUInt64TupleItem(ref c, 2, prompt); - ReadUInt64TupleItem(ref d, 3, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d); + return Of(Base.ReadUInt64(string.Format(prompt, 0)), + Base.ReadUInt64(string.Format(prompt, 1)), + Base.ReadUInt64(string.Format(prompt, 2)), + Base.ReadUInt64(string.Format(prompt, 3))); } /// @@ -1309,19 +968,13 @@ public static Tuple ReadUInt64Tuple4(string prompt = /// Кортеж. public static Tuple ReadUInt64Tuple5(string prompt = EmptyStringHelper.Empty) { - ulong a = default; - ulong b = default; - ulong c = default; - ulong d = default; - ulong e = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadUInt64TupleItem(ref a, 0, prompt); - ReadUInt64TupleItem(ref b, 1, prompt); - ReadUInt64TupleItem(ref c, 2, prompt); - ReadUInt64TupleItem(ref d, 3, prompt); - ReadUInt64TupleItem(ref e, 4, prompt); - - return Of(a, b, c, d, e); + return Of(Base.ReadUInt64(string.Format(prompt, 0)), + Base.ReadUInt64(string.Format(prompt, 1)), + Base.ReadUInt64(string.Format(prompt, 2)), + Base.ReadUInt64(string.Format(prompt, 3)), + Base.ReadUInt64(string.Format(prompt, 4))); } /// @@ -1330,21 +983,14 @@ public static Tuple ReadUInt64Tuple5(string p /// Кортеж. public static Tuple ReadUInt64Tuple6(string prompt = EmptyStringHelper.Empty) { - ulong a = default; - ulong b = default; - ulong c = default; - ulong d = default; - ulong e = default; - ulong f = default; - - ReadUInt64TupleItem(ref a, 0, prompt); - ReadUInt64TupleItem(ref b, 1, prompt); - ReadUInt64TupleItem(ref c, 2, prompt); - ReadUInt64TupleItem(ref d, 3, prompt); - ReadUInt64TupleItem(ref e, 4, prompt); - ReadUInt64TupleItem(ref f, 5, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f); + return Of(Base.ReadUInt64(string.Format(prompt, 0)), + Base.ReadUInt64(string.Format(prompt, 1)), + Base.ReadUInt64(string.Format(prompt, 2)), + Base.ReadUInt64(string.Format(prompt, 3)), + Base.ReadUInt64(string.Format(prompt, 4)), + Base.ReadUInt64(string.Format(prompt, 5))); } /// @@ -1353,23 +999,15 @@ public static Tuple ReadUInt64Tuple6(s /// Кортеж. public static Tuple ReadUInt64Tuple7(string prompt = EmptyStringHelper.Empty) { - ulong a = default; - ulong b = default; - ulong c = default; - ulong d = default; - ulong e = default; - ulong f = default; - ulong g = default; - - ReadUInt64TupleItem(ref a, 0, prompt); - ReadUInt64TupleItem(ref b, 1, prompt); - ReadUInt64TupleItem(ref c, 2, prompt); - ReadUInt64TupleItem(ref d, 3, prompt); - ReadUInt64TupleItem(ref e, 4, prompt); - ReadUInt64TupleItem(ref f, 5, prompt); - ReadUInt64TupleItem(ref g, 6, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f, g); + return Of(Base.ReadUInt64(string.Format(prompt, 0)), + Base.ReadUInt64(string.Format(prompt, 1)), + Base.ReadUInt64(string.Format(prompt, 2)), + Base.ReadUInt64(string.Format(prompt, 3)), + Base.ReadUInt64(string.Format(prompt, 4)), + Base.ReadUInt64(string.Format(prompt, 5)), + Base.ReadUInt64(string.Format(prompt, 6))); } #endregion @@ -1380,15 +1018,12 @@ public static Tuple ReadUInt64T /// Читает кортеж из двух значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadInt16Tuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple2(string prompt = null) { - short a = default; - short b = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadInt16TupleItem(ref a, 0, prompt); - ReadInt16TupleItem(ref b, 1, prompt); - - return Of(a, b); + return Of(Base.ReadInt16(string.Format(prompt, 0)), + Base.ReadInt16(string.Format(prompt, 1))); } /// @@ -1397,15 +1032,11 @@ public static Tuple ReadInt16Tuple2(string prompt = EmptyStringHel /// Кортеж. public static Tuple ReadInt16Tuple3(string prompt = EmptyStringHelper.Empty) { - short a = default; - short b = default; - short c = default; - - ReadInt16TupleItem(ref a, 0, prompt); - ReadInt16TupleItem(ref b, 1, prompt); - ReadInt16TupleItem(ref c, 2, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c); + return Of(Base.ReadInt16(string.Format(prompt, 0)), + Base.ReadInt16(string.Format(prompt, 1)), + Base.ReadInt16(string.Format(prompt, 2))); } /// @@ -1414,17 +1045,12 @@ public static Tuple ReadInt16Tuple3(string prompt = EmptySt /// Кортеж. public static Tuple ReadInt16Tuple4(string prompt = EmptyStringHelper.Empty) { - short a = default; - short b = default; - short c = default; - short d = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadInt16TupleItem(ref a, 0, prompt); - ReadInt16TupleItem(ref b, 1, prompt); - ReadInt16TupleItem(ref c, 2, prompt); - ReadInt16TupleItem(ref d, 3, prompt); - - return Of(a, b, c, d); + return Of(Base.ReadInt16(string.Format(prompt, 0)), + Base.ReadInt16(string.Format(prompt, 1)), + Base.ReadInt16(string.Format(prompt, 2)), + Base.ReadInt16(string.Format(prompt, 3))); } /// @@ -1433,19 +1059,13 @@ public static Tuple ReadInt16Tuple4(string prompt = /// Кортеж. public static Tuple ReadInt16Tuple5(string prompt = EmptyStringHelper.Empty) { - short a = default; - short b = default; - short c = default; - short d = default; - short e = default; - - ReadInt16TupleItem(ref a, 0, prompt); - ReadInt16TupleItem(ref b, 1, prompt); - ReadInt16TupleItem(ref c, 2, prompt); - ReadInt16TupleItem(ref d, 3, prompt); - ReadInt16TupleItem(ref e, 4, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e); + return Of(Base.ReadInt16(string.Format(prompt, 0)), + Base.ReadInt16(string.Format(prompt, 1)), + Base.ReadInt16(string.Format(prompt, 2)), + Base.ReadInt16(string.Format(prompt, 3)), + Base.ReadInt16(string.Format(prompt, 4))); } /// @@ -1454,21 +1074,14 @@ public static Tuple ReadInt16Tuple5(string pr /// Кортеж. public static Tuple ReadInt16Tuple6(string prompt = EmptyStringHelper.Empty) { - short a = default; - short b = default; - short c = default; - short d = default; - short e = default; - short f = default; - - ReadInt16TupleItem(ref a, 0, prompt); - ReadInt16TupleItem(ref b, 1, prompt); - ReadInt16TupleItem(ref c, 2, prompt); - ReadInt16TupleItem(ref d, 3, prompt); - ReadInt16TupleItem(ref e, 4, prompt); - ReadInt16TupleItem(ref f, 5, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f); + return Of(Base.ReadInt16(string.Format(prompt, 0)), + Base.ReadInt16(string.Format(prompt, 1)), + Base.ReadInt16(string.Format(prompt, 2)), + Base.ReadInt16(string.Format(prompt, 3)), + Base.ReadInt16(string.Format(prompt, 4)), + Base.ReadInt16(string.Format(prompt, 5))); } /// @@ -1477,23 +1090,15 @@ public static Tuple ReadInt16Tuple6(st /// Кортеж. public static Tuple ReadInt16Tuple7(string prompt = EmptyStringHelper.Empty) { - short a = default; - short b = default; - short c = default; - short d = default; - short e = default; - short f = default; - short g = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadInt16TupleItem(ref a, 0, prompt); - ReadInt16TupleItem(ref b, 1, prompt); - ReadInt16TupleItem(ref c, 2, prompt); - ReadInt16TupleItem(ref d, 3, prompt); - ReadInt16TupleItem(ref e, 4, prompt); - ReadInt16TupleItem(ref f, 5, prompt); - ReadInt16TupleItem(ref g, 6, prompt); - - return Of(a, b, c, d, e, f, g); + return Of(Base.ReadInt16(string.Format(prompt, 0)), + Base.ReadInt16(string.Format(prompt, 1)), + Base.ReadInt16(string.Format(prompt, 2)), + Base.ReadInt16(string.Format(prompt, 3)), + Base.ReadInt16(string.Format(prompt, 4)), + Base.ReadInt16(string.Format(prompt, 5)), + Base.ReadInt16(string.Format(prompt, 6))); } #endregion @@ -1504,15 +1109,12 @@ public static Tuple ReadInt16Tu /// Читает кортеж из двух значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadUInt16Tuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt16Tuple2(string prompt = null) { - ushort a = default; - ushort b = default; - - ReadUInt16TupleItem(ref a, 0, prompt); - ReadUInt16TupleItem(ref b, 1, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b); + return Of(Base.ReadUInt16(string.Format(prompt, 0)), + Base.ReadUInt16(string.Format(prompt, 1))); } /// @@ -1521,15 +1123,11 @@ public static Tuple ReadUInt16Tuple2(string prompt = EmptyString /// Кортеж. public static Tuple ReadUInt16Tuple3(string prompt = EmptyStringHelper.Empty) { - ushort a = default; - ushort b = default; - ushort c = default; - - ReadUInt16TupleItem(ref a, 0, prompt); - ReadUInt16TupleItem(ref b, 1, prompt); - ReadUInt16TupleItem(ref c, 2, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c); + return Of(Base.ReadUInt16(string.Format(prompt, 0)), + Base.ReadUInt16(string.Format(prompt, 1)), + Base.ReadUInt16(string.Format(prompt, 2))); } /// @@ -1538,17 +1136,12 @@ public static Tuple ReadUInt16Tuple3(string prompt = Emp /// Кортеж. public static Tuple ReadUInt16Tuple4(string prompt = EmptyStringHelper.Empty) { - ushort a = default; - ushort b = default; - ushort c = default; - ushort d = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadUInt16TupleItem(ref a, 0, prompt); - ReadUInt16TupleItem(ref b, 1, prompt); - ReadUInt16TupleItem(ref c, 2, prompt); - ReadUInt16TupleItem(ref d, 3, prompt); - - return Of(a, b, c, d); + return Of(Base.ReadUInt16(string.Format(prompt, 0)), + Base.ReadUInt16(string.Format(prompt, 1)), + Base.ReadUInt16(string.Format(prompt, 2)), + Base.ReadUInt16(string.Format(prompt, 3))); } /// @@ -1557,19 +1150,13 @@ public static Tuple ReadUInt16Tuple4(string prom /// Кортеж. public static Tuple ReadUInt16Tuple5(string prompt = EmptyStringHelper.Empty) { - ushort a = default; - ushort b = default; - ushort c = default; - ushort d = default; - ushort e = default; - - ReadUInt16TupleItem(ref a, 0, prompt); - ReadUInt16TupleItem(ref b, 1, prompt); - ReadUInt16TupleItem(ref c, 2, prompt); - ReadUInt16TupleItem(ref d, 3, prompt); - ReadUInt16TupleItem(ref e, 4, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e); + return Of(Base.ReadUInt16(string.Format(prompt, 0)), + Base.ReadUInt16(string.Format(prompt, 1)), + Base.ReadUInt16(string.Format(prompt, 2)), + Base.ReadUInt16(string.Format(prompt, 3)), + Base.ReadUInt16(string.Format(prompt, 4))); } /// @@ -1578,21 +1165,14 @@ public static Tuple ReadUInt16Tuple5(str /// Кортеж. public static Tuple ReadUInt16Tuple6(string prompt = EmptyStringHelper.Empty) { - ushort a = default; - ushort b = default; - ushort c = default; - ushort d = default; - ushort e = default; - ushort f = default; - - ReadUInt16TupleItem(ref a, 0, prompt); - ReadUInt16TupleItem(ref b, 1, prompt); - ReadUInt16TupleItem(ref c, 2, prompt); - ReadUInt16TupleItem(ref d, 3, prompt); - ReadUInt16TupleItem(ref e, 4, prompt); - ReadUInt16TupleItem(ref f, 5, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f); + return Of(Base.ReadUInt16(string.Format(prompt, 0)), + Base.ReadUInt16(string.Format(prompt, 1)), + Base.ReadUInt16(string.Format(prompt, 2)), + Base.ReadUInt16(string.Format(prompt, 3)), + Base.ReadUInt16(string.Format(prompt, 4)), + Base.ReadUInt16(string.Format(prompt, 5))); } /// @@ -1601,42 +1181,31 @@ public static Tuple ReadUInt16Tu /// Кортеж. public static Tuple ReadUInt16Tuple7(string prompt = EmptyStringHelper.Empty) { - ushort a = default; - ushort b = default; - ushort c = default; - ushort d = default; - ushort e = default; - ushort f = default; - ushort g = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadUInt16TupleItem(ref a, 0, prompt); - ReadUInt16TupleItem(ref b, 1, prompt); - ReadUInt16TupleItem(ref c, 2, prompt); - ReadUInt16TupleItem(ref d, 3, prompt); - ReadUInt16TupleItem(ref e, 4, prompt); - ReadUInt16TupleItem(ref f, 5, prompt); - ReadUInt16TupleItem(ref g, 6, prompt); - - return Of(a, b, c, d, e, f, g); + return Of(Base.ReadUInt16(string.Format(prompt, 0)), + Base.ReadUInt16(string.Format(prompt, 1)), + Base.ReadUInt16(string.Format(prompt, 2)), + Base.ReadUInt16(string.Format(prompt, 3)), + Base.ReadUInt16(string.Format(prompt, 4)), + Base.ReadUInt16(string.Format(prompt, 5)), + Base.ReadUInt16(string.Format(prompt, 6))); } #endregion - #region ReadBiginteger + #region ReadBigInteger /// /// Читает кортеж из двух значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Кортеж. - public static Tuple ReadBigIntegerTuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple2(string prompt = null) { - BigInteger a = default; - BigInteger b = default; - - ReadBigIntegerTupleItem(ref a, 0, prompt); - ReadBigIntegerTupleItem(ref b, 1, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b); + return Of(Base.ReadBigInteger(string.Format(prompt, 0)), + Base.ReadBigInteger(string.Format(prompt, 1))); } /// @@ -1645,15 +1214,11 @@ public static Tuple ReadBigIntegerTuple2(string prompt = /// Кортеж. public static Tuple ReadBigIntegerTuple3(string prompt = EmptyStringHelper.Empty) { - BigInteger a = default; - BigInteger b = default; - BigInteger c = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadBigIntegerTupleItem(ref a, 0, prompt); - ReadBigIntegerTupleItem(ref b, 1, prompt); - ReadBigIntegerTupleItem(ref c, 2, prompt); - - return Of(a, b, c); + return Of(Base.ReadBigInteger(string.Format(prompt, 0)), + Base.ReadBigInteger(string.Format(prompt, 1)), + Base.ReadBigInteger(string.Format(prompt, 2))); } /// @@ -1662,17 +1227,12 @@ public static Tuple ReadBigIntegerTuple3(str /// Кортеж. public static Tuple ReadBigIntegerTuple4(string prompt = EmptyStringHelper.Empty) { - BigInteger a = default; - BigInteger b = default; - BigInteger c = default; - BigInteger d = default; - - ReadBigIntegerTupleItem(ref a, 0, prompt); - ReadBigIntegerTupleItem(ref b, 1, prompt); - ReadBigIntegerTupleItem(ref c, 2, prompt); - ReadBigIntegerTupleItem(ref d, 3, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d); + return Of(Base.ReadBigInteger(string.Format(prompt, 0)), + Base.ReadBigInteger(string.Format(prompt, 1)), + Base.ReadBigInteger(string.Format(prompt, 2)), + Base.ReadBigInteger(string.Format(prompt, 3))); } /// @@ -1681,19 +1241,13 @@ public static Tuple ReadBigInteg /// Кортеж. public static Tuple ReadBigIntegerTuple5(string prompt = EmptyStringHelper.Empty) { - BigInteger a = default; - BigInteger b = default; - BigInteger c = default; - BigInteger d = default; - BigInteger e = default; - - ReadBigIntegerTupleItem(ref a, 0, prompt); - ReadBigIntegerTupleItem(ref b, 1, prompt); - ReadBigIntegerTupleItem(ref c, 2, prompt); - ReadBigIntegerTupleItem(ref d, 3, prompt); - ReadBigIntegerTupleItem(ref e, 4, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e); + return Of(Base.ReadBigInteger(string.Format(prompt, 0)), + Base.ReadBigInteger(string.Format(prompt, 1)), + Base.ReadBigInteger(string.Format(prompt, 2)), + Base.ReadBigInteger(string.Format(prompt, 3)), + Base.ReadBigInteger(string.Format(prompt, 4))); } /// @@ -1702,21 +1256,14 @@ public static Tuple /// Кортеж. public static Tuple ReadBigIntegerTuple6(string prompt = EmptyStringHelper.Empty) { - BigInteger a = default; - BigInteger b = default; - BigInteger c = default; - BigInteger d = default; - BigInteger e = default; - BigInteger f = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadBigIntegerTupleItem(ref a, 0, prompt); - ReadBigIntegerTupleItem(ref b, 1, prompt); - ReadBigIntegerTupleItem(ref c, 2, prompt); - ReadBigIntegerTupleItem(ref d, 3, prompt); - ReadBigIntegerTupleItem(ref e, 4, prompt); - ReadBigIntegerTupleItem(ref f, 5, prompt); - - return Of(a, b, c, d, e, f); + return Of(Base.ReadBigInteger(string.Format(prompt, 0)), + Base.ReadBigInteger(string.Format(prompt, 1)), + Base.ReadBigInteger(string.Format(prompt, 2)), + Base.ReadBigInteger(string.Format(prompt, 3)), + Base.ReadBigInteger(string.Format(prompt, 4)), + Base.ReadBigInteger(string.Format(prompt, 5))); } /// @@ -1725,23 +1272,15 @@ public static TupleКортеж. public static Tuple ReadBigIntegerTuple7(string prompt = EmptyStringHelper.Empty) { - BigInteger a = default; - BigInteger b = default; - BigInteger c = default; - BigInteger d = default; - BigInteger e = default; - BigInteger f = default; - BigInteger g = default; - - ReadBigIntegerTupleItem(ref a, 0, prompt); - ReadBigIntegerTupleItem(ref b, 1, prompt); - ReadBigIntegerTupleItem(ref c, 2, prompt); - ReadBigIntegerTupleItem(ref d, 3, prompt); - ReadBigIntegerTupleItem(ref e, 4, prompt); - ReadBigIntegerTupleItem(ref f, 5, prompt); - ReadBigIntegerTupleItem(ref g, 6, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f, g); + return Of(Base.ReadBigInteger(string.Format(prompt, 0)), + Base.ReadBigInteger(string.Format(prompt, 1)), + Base.ReadBigInteger(string.Format(prompt, 2)), + Base.ReadBigInteger(string.Format(prompt, 3)), + Base.ReadBigInteger(string.Format(prompt, 4)), + Base.ReadBigInteger(string.Format(prompt, 5)), + Base.ReadBigInteger(string.Format(prompt, 6))); } #endregion @@ -1752,15 +1291,12 @@ public static Tuple /// Кортеж. - public static Tuple ReadStringTuple2(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadStringTuple2(string prompt = null) { - string a = default; - string b = default; - - ReadStringTupleItem(ref a, 0, prompt); - ReadStringTupleItem(ref b, 1, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b); + return Of(Base.ReadString(string.Format(prompt, 0)), + Base.ReadString(string.Format(prompt, 1))); } /// @@ -1769,15 +1305,11 @@ public static Tuple ReadStringTuple2(string prompt = EmptyString /// Кортеж. public static Tuple ReadStringTuple3(string prompt = EmptyStringHelper.Empty) { - string a = default; - string b = default; - string c = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadStringTupleItem(ref a, 0, prompt); - ReadStringTupleItem(ref b, 1, prompt); - ReadStringTupleItem(ref c, 2, prompt); - - return Of(a, b, c); + return Of(Base.ReadString(string.Format(prompt, 0)), + Base.ReadString(string.Format(prompt, 1)), + Base.ReadString(string.Format(prompt, 2))); } /// @@ -1786,17 +1318,12 @@ public static Tuple ReadStringTuple3(string prompt = Emp /// Кортеж. public static Tuple ReadStringTuple4(string prompt = EmptyStringHelper.Empty) { - string a = default; - string b = default; - string c = default; - string d = default; - - ReadStringTupleItem(ref a, 0, prompt); - ReadStringTupleItem(ref b, 1, prompt); - ReadStringTupleItem(ref c, 2, prompt); - ReadStringTupleItem(ref d, 3, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d); + return Of(Base.ReadString(string.Format(prompt, 0)), + Base.ReadString(string.Format(prompt, 1)), + Base.ReadString(string.Format(prompt, 2)), + Base.ReadString(string.Format(prompt, 3))); } /// @@ -1805,19 +1332,13 @@ public static Tuple ReadStringTuple4(string prom /// Кортеж. public static Tuple ReadStringTuple5(string prompt = EmptyStringHelper.Empty) { - string a = default; - string b = default; - string c = default; - string d = default; - string e = default; - - ReadStringTupleItem(ref a, 0, prompt); - ReadStringTupleItem(ref b, 1, prompt); - ReadStringTupleItem(ref c, 2, prompt); - ReadStringTupleItem(ref d, 3, prompt); - ReadStringTupleItem(ref e, 4, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e); + return Of(Base.ReadString(string.Format(prompt, 0)), + Base.ReadString(string.Format(prompt, 1)), + Base.ReadString(string.Format(prompt, 2)), + Base.ReadString(string.Format(prompt, 3)), + Base.ReadString(string.Format(prompt, 4))); } /// @@ -1826,21 +1347,14 @@ public static Tuple ReadStringTuple5(str /// Кортеж. public static Tuple ReadStringTuple6(string prompt = EmptyStringHelper.Empty) { - string a = default; - string b = default; - string c = default; - string d = default; - string e = default; - string f = default; + prompt = prompt ?? EmptyStringHelper.Empty; - ReadStringTupleItem(ref a, 0, prompt); - ReadStringTupleItem(ref b, 1, prompt); - ReadStringTupleItem(ref c, 2, prompt); - ReadStringTupleItem(ref d, 3, prompt); - ReadStringTupleItem(ref e, 4, prompt); - ReadStringTupleItem(ref f, 5, prompt); - - return Of(a, b, c, d, e, f); + return Of(Base.ReadString(string.Format(prompt, 0)), + Base.ReadString(string.Format(prompt, 1)), + Base.ReadString(string.Format(prompt, 2)), + Base.ReadString(string.Format(prompt, 3)), + Base.ReadString(string.Format(prompt, 4)), + Base.ReadString(string.Format(prompt, 5))); } /// @@ -1849,241 +1363,20 @@ public static Tuple ReadStringTu /// Кортеж. public static Tuple ReadStringTuple7(string prompt = EmptyStringHelper.Empty) { - string a = default; - string b = default; - string c = default; - string d = default; - string e = default; - string f = default; - string g = default; - - ReadStringTupleItem(ref a, 0, prompt); - ReadStringTupleItem(ref b, 1, prompt); - ReadStringTupleItem(ref c, 2, prompt); - ReadStringTupleItem(ref d, 3, prompt); - ReadStringTupleItem(ref e, 4, prompt); - ReadStringTupleItem(ref f, 5, prompt); - ReadStringTupleItem(ref g, 6, prompt); + prompt = prompt ?? EmptyStringHelper.Empty; - return Of(a, b, c, d, e, f, g); + return Of(Base.ReadString(string.Format(prompt, 0)), + Base.ReadString(string.Format(prompt, 1)), + Base.ReadString(string.Format(prompt, 2)), + Base.ReadString(string.Format(prompt, 3)), + Base.ReadString(string.Format(prompt, 4)), + Base.ReadString(string.Format(prompt, 5)), + Base.ReadString(string.Format(prompt, 6))); } #endregion #endregion public - #region private - - private static void ReadBooleanTupleItem(ref bool field, int index, string prompt) - { - while (true) - try - { - field = Base.ReadBoolean(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); - return; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - } - - private static void ReadByteTupleItem(ref byte field, int index, string prompt) - { - while (true) - try - { - field = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); - return; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - } - - private static void ReadSByteTupleItem(ref sbyte field, int index, string prompt) - { - while (true) - try - { - field = Base.ReadSByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); - return; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - } - - private static void ReadCharTupleItem(ref char field, int index, string prompt) - { - while (true) - try - { - field = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); - return; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - } - - private static void ReadDecimalTupleItem(ref decimal field, int index, string prompt) - { - while (true) - try - { - field = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); - return; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - } - - private static void ReadDoubleTupleItem(ref double field, int index, string prompt) - { - while (true) - try - { - field = Base.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); - return; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - } - - private static void ReadSingleTupleItem(ref float field, int index, string prompt) - { - while (true) - try - { - field = Base.ReadSingle(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); - return; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - } - - private static void ReadInt32TupleItem(ref int field, int index, string prompt) - { - while (true) - try - { - field = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); - return; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - } - - private static void ReadUInt32TupleItem(ref uint field, int index, string prompt) - { - while (true) - try - { - field = Base.ReadUInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); - return; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - } - - private static void ReadInt64TupleItem(ref long field, int index, string prompt) - { - while (true) - try - { - field = Base.ReadInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); - return; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - } - - private static void ReadUInt64TupleItem(ref ulong field, int index, string prompt) - { - while (true) - try - { - field = Base.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); - return; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - } - - private static void ReadInt16TupleItem(ref short field, int index, string prompt) - { - while (true) - try - { - field = Base.ReadInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); - return; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - } - - private static void ReadUInt16TupleItem(ref ushort field, int index, string prompt) - { - while (true) - try - { - field = Base.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); - return; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - } - - private static void ReadBigIntegerTupleItem(ref BigInteger field, int index, string prompt) - { - while (true) - try - { - field = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); - return; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - } - - private static void ReadStringTupleItem(ref string field, int index, string prompt) - { - while (true) - try - { - field = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, index)); - return; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } - } - - #endregion private } } From 8368f310fe9a1003183d225259db005abe037a2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sun, 12 Apr 2020 19:26:55 +0700 Subject: [PATCH 041/102] closes #28 - code clean-up try ArrayE.Input --- .../Extensions/ArrayE.Input.cs | 255 ++++++++---------- 1 file changed, 105 insertions(+), 150 deletions(-) diff --git a/NETMouse - .NET release/Extensions/ArrayE.Input.cs b/NETMouse - .NET release/Extensions/ArrayE.Input.cs index 4d8d0b9..a61950a 100644 --- a/NETMouse - .NET release/Extensions/ArrayE.Input.cs +++ b/NETMouse - .NET release/Extensions/ArrayE.Input.cs @@ -16,22 +16,19 @@ public static partial class ArrayE /// /// Массив. /// Приглашение к вводу. - public static void Read(this bool[] array, string prompt = EmptyStringHelper.Empty) + public static void Read(this bool[] array, string prompt = null) { if (array == null) throw new ArgumentNullException(nameof(array)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; while (i < array.Length) - try - { - array[i] = Base.ReadBoolean(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadBoolean(string.Format(prompt, i)); + i++; + } } /// @@ -39,22 +36,19 @@ public static void Read(this bool[] array, string prompt = EmptyStringHelper.Emp /// /// Массив. /// Приглашение к вводу. - public static void Read(this byte[] array, string prompt = EmptyStringHelper.Empty) + public static void Read(this byte[] array, string prompt = null) { if (array == null) throw new ArgumentNullException(nameof(array)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; while (i < array.Length) - try - { - array[i] = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadByte(string.Format(prompt, i)); + i++; + } } /// @@ -62,22 +56,19 @@ public static void Read(this byte[] array, string prompt = EmptyStringHelper.Emp /// /// Массив. /// Приглашение к вводу. - public static void Read(this sbyte[] array, string prompt = EmptyStringHelper.Empty) + public static void Read(this sbyte[] array, string prompt = null) { if (array == null) throw new ArgumentNullException(nameof(array)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; while (i < array.Length) - try - { - array[i] = Base.ReadSByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadSByte(string.Format(prompt, i)); + i++; + } } /// @@ -85,22 +76,19 @@ public static void Read(this sbyte[] array, string prompt = EmptyStringHelper.Em /// /// Массив. /// Приглашение к вводу. - public static void Read(this char[] array, string prompt = EmptyStringHelper.Empty) + public static void Read(this char[] array, string prompt = null) { if (array == null) throw new ArgumentNullException(nameof(array)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; while (i < array.Length) - try - { - array[i] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadChar(string.Format(prompt, i)); + i++; + } } /// @@ -108,22 +96,19 @@ public static void Read(this char[] array, string prompt = EmptyStringHelper.Emp /// /// Массив. /// Приглашение к вводу. - public static void Read(this decimal[] array, string prompt = EmptyStringHelper.Empty) + public static void Read(this decimal[] array, string prompt = null) { if (array == null) throw new ArgumentNullException(nameof(array)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; while (i < array.Length) - try - { - array[i] = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadDecimal(string.Format(prompt, i)); + i++; + } } /// @@ -131,22 +116,19 @@ public static void Read(this decimal[] array, string prompt = EmptyStringHelper. /// /// Массив. /// Приглашение к вводу. - public static void Read(this double[] array, string prompt = EmptyStringHelper.Empty) + public static void Read(this double[] array, string prompt = null) { if (array == null) throw new ArgumentNullException(nameof(array)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; while (i < array.Length) - try - { - array[i] = Base.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadDouble(string.Format(prompt, i)); + i++; + } } /// @@ -154,22 +136,19 @@ public static void Read(this double[] array, string prompt = EmptyStringHelper.E /// /// Массив. /// Приглашение к вводу. - public static void Read(this float[] array, string prompt = EmptyStringHelper.Empty) + public static void Read(this float[] array, string prompt = null) { if (array == null) throw new ArgumentNullException(nameof(array)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; while (i < array.Length) - try - { - array[i] = Base.ReadSingle(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadSingle(string.Format(prompt, i)); + i++; + } } /// @@ -177,22 +156,19 @@ public static void Read(this float[] array, string prompt = EmptyStringHelper.Em /// /// Массив. /// Приглашение к вводу. - public static void Read(this int[] array, string prompt = EmptyStringHelper.Empty) + public static void Read(this int[] array, string prompt = null) { if (array == null) throw new ArgumentNullException(nameof(array)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; while (i < array.Length) - try - { - array[i] = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadInt32(string.Format(prompt, i)); + i++; + } } /// @@ -200,22 +176,19 @@ public static void Read(this int[] array, string prompt = EmptyStringHelper.Empt /// /// Массив. /// Приглашение к вводу. - public static void Read(this uint[] array, string prompt = EmptyStringHelper.Empty) + public static void Read(this uint[] array, string prompt = null) { if (array == null) throw new ArgumentNullException(nameof(array)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; while (i < array.Length) - try - { - array[i] = Base.ReadUInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadUInt32(string.Format(prompt, i)); + i++; + } } /// @@ -223,22 +196,19 @@ public static void Read(this uint[] array, string prompt = EmptyStringHelper.Emp /// /// Массив. /// Приглашение к вводу. - public static void Read(this long[] array, string prompt = EmptyStringHelper.Empty) + public static void Read(this long[] array, string prompt = null) { if (array == null) throw new ArgumentNullException(nameof(array)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; while (i < array.Length) - try - { - array[i] = Base.ReadInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadInt64(string.Format(prompt, i)); + i++; + } } /// @@ -246,22 +216,19 @@ public static void Read(this long[] array, string prompt = EmptyStringHelper.Emp /// /// Массив. /// Приглашение к вводу. - public static void Read(this ulong[] array, string prompt = EmptyStringHelper.Empty) + public static void Read(this ulong[] array, string prompt = null) { if (array == null) throw new ArgumentNullException(nameof(array)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; while (i < array.Length) - try - { - array[i] = Base.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadUInt64(string.Format(prompt, i)); + i++; + } } /// @@ -269,22 +236,19 @@ public static void Read(this ulong[] array, string prompt = EmptyStringHelper.Em /// /// Массив. /// Приглашение к вводу. - public static void Read(this short[] array, string prompt = EmptyStringHelper.Empty) + public static void Read(this short[] array, string prompt = null) { if (array == null) throw new ArgumentNullException(nameof(array)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; while (i < array.Length) - try - { - array[i] = Base.ReadInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadInt16(string.Format(prompt, i)); + i++; + } } /// @@ -292,22 +256,19 @@ public static void Read(this short[] array, string prompt = EmptyStringHelper.Em /// /// Массив. /// Приглашение к вводу. - public static void Read(this ushort[] array, string prompt = EmptyStringHelper.Empty) + public static void Read(this ushort[] array, string prompt = null) { if (array == null) throw new ArgumentNullException(nameof(array)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; while (i < array.Length) - try - { - array[i] = Base.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadUInt16(string.Format(prompt, i)); + i++; + } } /// @@ -315,22 +276,19 @@ public static void Read(this ushort[] array, string prompt = EmptyStringHelper.E /// /// Массив. /// Приглашение к вводу. - public static void Read(this BigInteger[] array, string prompt = EmptyStringHelper.Empty) + public static void Read(this BigInteger[] array, string prompt = null) { if (array == null) throw new ArgumentNullException(nameof(array)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; while (i < array.Length) - try - { - array[i] = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadBigInteger(string.Format(prompt, i)); + i++; + } } /// @@ -338,22 +296,19 @@ public static void Read(this BigInteger[] array, string prompt = EmptyStringHelp /// /// Массив. /// Приглашение к вводу. - public static void Read(this string[] array, string prompt = EmptyStringHelper.Empty) + public static void Read(this string[] array, string prompt = null) { if (array == null) throw new ArgumentNullException(nameof(array)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; while (i < array.Length) - try - { - array[i] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); - i++; - } - catch (Exception) - { - InputErrorHelper.Message.PrintLine(); - } + { + array[i] = Base.ReadString(string.Format(prompt, i)); + i++; + } } #endregion public From c4432e975347781581b7975e7d53f32f81a901ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Sun, 12 Apr 2020 19:27:16 +0700 Subject: [PATCH 042/102] closes #28 - code clean-up try MatrixE.Input --- .../Extensions/MatrixE.Input.cs | 255 ++++++++---------- 1 file changed, 105 insertions(+), 150 deletions(-) diff --git a/NETMouse - .NET release/Extensions/MatrixE.Input.cs b/NETMouse - .NET release/Extensions/MatrixE.Input.cs index 354814f..0a695ed 100644 --- a/NETMouse - .NET release/Extensions/MatrixE.Input.cs +++ b/NETMouse - .NET release/Extensions/MatrixE.Input.cs @@ -16,26 +16,23 @@ public static partial class MatrixE /// /// Матрица. /// Приглашение к вводу. - public static void Read(this bool[,] matrix, string prompt = EmptyStringHelper.Empty) + public static void Read(this bool[,] matrix, string prompt = null) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; int j = 0; while (i < matrix.GetLength(0)) { while (j < matrix.GetLength(1)) - try - { - matrix[i, j] = Base.ReadBoolean(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - Console.WriteLine(InputErrorHelper.Message); - } + { + matrix[i, j] = Base.ReadBoolean(string.Format(prompt, i, j)); + j++; + } i++; j = 0; @@ -47,26 +44,23 @@ public static void Read(this bool[,] matrix, string prompt = EmptyStringHelper.E /// /// Матрица. /// Приглашение к вводу. - public static void Read(this byte[,] matrix, string prompt = EmptyStringHelper.Empty) + public static void Read(this byte[,] matrix, string prompt = null) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; int j = 0; while (i < matrix.GetLength(0)) { while (j < matrix.GetLength(1)) - try - { - matrix[i, j] = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - Console.WriteLine(InputErrorHelper.Message); - } + { + matrix[i, j] = Base.ReadByte(string.Format(prompt, i, j)); + j++; + } i++; j = 0; @@ -78,26 +72,23 @@ public static void Read(this byte[,] matrix, string prompt = EmptyStringHelper.E /// /// Матрица. /// Приглашение к вводу. - public static void Read(this sbyte[,] matrix, string prompt = EmptyStringHelper.Empty) + public static void Read(this sbyte[,] matrix, string prompt = null) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; int j = 0; while (i < matrix.GetLength(0)) { while (j < matrix.GetLength(1)) - try - { - matrix[i, j] = Base.ReadSByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - Console.WriteLine(InputErrorHelper.Message); - } + { + matrix[i, j] = Base.ReadSByte(string.Format(prompt, i, j)); + j++; + } i++; j = 0; @@ -109,26 +100,23 @@ public static void Read(this sbyte[,] matrix, string prompt = EmptyStringHelper. /// /// Матрица. /// Приглашение к вводу. - public static void Read(this char[,] matrix, string prompt = EmptyStringHelper.Empty) + public static void Read(this char[,] matrix, string prompt = null) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; int j = 0; while (i < matrix.GetLength(0)) { while (j < matrix.GetLength(1)) - try - { - matrix[i, j] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - Console.WriteLine(InputErrorHelper.Message); - } + { + matrix[i, j] = Base.ReadChar(string.Format(prompt, i, j)); + j++; + } i++; j = 0; @@ -140,26 +128,23 @@ public static void Read(this char[,] matrix, string prompt = EmptyStringHelper.E /// /// Матрица. /// Приглашение к вводу. - public static void Read(this decimal[,] matrix, string prompt = EmptyStringHelper.Empty) + public static void Read(this decimal[,] matrix, string prompt = null) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; int j = 0; while (i < matrix.GetLength(0)) { while (j < matrix.GetLength(1)) - try - { - matrix[i, j] = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - Console.WriteLine(InputErrorHelper.Message); - } + { + matrix[i, j] = Base.ReadDecimal(string.Format(prompt, i, j)); + j++; + } i++; j = 0; @@ -171,26 +156,23 @@ public static void Read(this decimal[,] matrix, string prompt = EmptyStringHelpe /// /// Матрица. /// Приглашение к вводу. - public static void Read(this double[,] matrix, string prompt = EmptyStringHelper.Empty) + public static void Read(this double[,] matrix, string prompt = null) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; int j = 0; while (i < matrix.GetLength(0)) { while (j < matrix.GetLength(1)) - try - { - matrix[i, j] = Base.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - Console.WriteLine(InputErrorHelper.Message); - } + { + matrix[i, j] = Base.ReadDouble(string.Format(prompt, i, j)); + j++; + } i++; j = 0; @@ -202,26 +184,23 @@ public static void Read(this double[,] matrix, string prompt = EmptyStringHelper /// /// Матрица. /// Приглашение к вводу. - public static void Read(this float[,] matrix, string prompt = EmptyStringHelper.Empty) + public static void Read(this float[,] matrix, string prompt = null) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; int j = 0; while (i < matrix.GetLength(0)) { while (j < matrix.GetLength(1)) - try - { - matrix[i, j] = Base.ReadSingle(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - Console.WriteLine(InputErrorHelper.Message); - } + { + matrix[i, j] = Base.ReadSingle(string.Format(prompt, i, j)); + j++; + } i++; j = 0; @@ -233,26 +212,23 @@ public static void Read(this float[,] matrix, string prompt = EmptyStringHelper. /// /// Матрица. /// Приглашение к вводу. - public static void Read(this int[,] matrix, string prompt = EmptyStringHelper.Empty) + public static void Read(this int[,] matrix, string prompt = null) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; int j = 0; while (i < matrix.GetLength(0)) { while (j < matrix.GetLength(1)) - try - { - matrix[i, j] = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - Console.WriteLine(InputErrorHelper.Message); - } + { + matrix[i, j] = Base.ReadInt32(string.Format(prompt, i, j)); + j++; + } i++; j = 0; @@ -264,26 +240,23 @@ public static void Read(this int[,] matrix, string prompt = EmptyStringHelper.Em /// /// Матрица. /// Приглашение к вводу. - public static void Read(this uint[,] matrix, string prompt = EmptyStringHelper.Empty) + public static void Read(this uint[,] matrix, string prompt = null) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; int j = 0; while (i < matrix.GetLength(0)) { while (j < matrix.GetLength(1)) - try - { - matrix[i, j] = Base.ReadUInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - Console.WriteLine(InputErrorHelper.Message); - } + { + matrix[i, j] = Base.ReadUInt32(string.Format(prompt, i, j)); + j++; + } i++; j = 0; @@ -295,26 +268,23 @@ public static void Read(this uint[,] matrix, string prompt = EmptyStringHelper.E /// /// Матрица. /// Приглашение к вводу. - public static void Read(this long[,] matrix, string prompt = EmptyStringHelper.Empty) + public static void Read(this long[,] matrix, string prompt = null) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; int j = 0; while (i < matrix.GetLength(0)) { while (j < matrix.GetLength(1)) - try - { - matrix[i, j] = Base.ReadInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - Console.WriteLine(InputErrorHelper.Message); - } + { + matrix[i, j] = Base.ReadInt64(string.Format(prompt, i, j)); + j++; + } i++; j = 0; @@ -326,26 +296,23 @@ public static void Read(this long[,] matrix, string prompt = EmptyStringHelper.E /// /// Матрица. /// Приглашение к вводу. - public static void Read(this ulong[,] matrix, string prompt = EmptyStringHelper.Empty) + public static void Read(this ulong[,] matrix, string prompt = null) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; int j = 0; while (i < matrix.GetLength(0)) { while (j < matrix.GetLength(1)) - try - { - matrix[i, j] = Base.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - Console.WriteLine(InputErrorHelper.Message); - } + { + matrix[i, j] = Base.ReadUInt64(string.Format(prompt, i, j)); + j++; + } i++; j = 0; @@ -357,26 +324,23 @@ public static void Read(this ulong[,] matrix, string prompt = EmptyStringHelper. /// /// Матрица. /// Приглашение к вводу. - public static void Read(this short[,] matrix, string prompt = EmptyStringHelper.Empty) + public static void Read(this short[,] matrix, string prompt = null) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; int j = 0; while (i < matrix.GetLength(0)) { while (j < matrix.GetLength(1)) - try - { - matrix[i, j] = Base.ReadInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - Console.WriteLine(InputErrorHelper.Message); - } + { + matrix[i, j] = Base.ReadInt16(string.Format(prompt, i, j)); + j++; + } i++; j = 0; @@ -388,26 +352,23 @@ public static void Read(this short[,] matrix, string prompt = EmptyStringHelper. /// /// Матрица. /// Приглашение к вводу. - public static void Read(this ushort[,] matrix, string prompt = EmptyStringHelper.Empty) + public static void Read(this ushort[,] matrix, string prompt = null) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; int j = 0; while (i < matrix.GetLength(0)) { while (j < matrix.GetLength(1)) - try - { - matrix[i, j] = Base.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - Console.WriteLine(InputErrorHelper.Message); - } + { + matrix[i, j] = Base.ReadUInt16(string.Format(prompt, i, j)); + j++; + } i++; j = 0; @@ -419,26 +380,23 @@ public static void Read(this ushort[,] matrix, string prompt = EmptyStringHelper /// /// Матрица. /// Приглашение к вводу. - public static void Read(this BigInteger[,] matrix, string prompt = EmptyStringHelper.Empty) + public static void Read(this BigInteger[,] matrix, string prompt = null) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; int j = 0; while (i < matrix.GetLength(0)) { while (j < matrix.GetLength(1)) - try - { - matrix[i, j] = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - Console.WriteLine(InputErrorHelper.Message); - } + { + matrix[i, j] = Base.ReadBigInteger(string.Format(prompt, i, j)); + j++; + } i++; j = 0; @@ -450,26 +408,23 @@ public static void Read(this BigInteger[,] matrix, string prompt = EmptyStringHe /// /// Матрица. /// Приглашение к вводу. - public static void Read(this string[,] matrix, string prompt = EmptyStringHelper.Empty) + public static void Read(this string[,] matrix, string prompt = null) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); + prompt = prompt ?? EmptyStringHelper.Empty; + int i = 0; int j = 0; while (i < matrix.GetLength(0)) { while (j < matrix.GetLength(1)) - try - { - matrix[i, j] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; - } - catch (Exception) - { - Console.WriteLine(InputErrorHelper.Message); - } + { + matrix[i, j] = Base.ReadString(string.Format(prompt, i, j)); + j++; + } i++; j = 0; From f7bc9ceae652be211be5ebce4e822366fc1b42c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 17:28:01 +0700 Subject: [PATCH 043/102] closes #27 --- NETMouse - .NET release/Utils/Array.Input.cs | 959 ++++++++++++++++++- 1 file changed, 925 insertions(+), 34 deletions(-) diff --git a/NETMouse - .NET release/Utils/Array.Input.cs b/NETMouse - .NET release/Utils/Array.Input.cs index 51de659..145440a 100644 --- a/NETMouse - .NET release/Utils/Array.Input.cs +++ b/NETMouse - .NET release/Utils/Array.Input.cs @@ -10,6 +10,8 @@ namespace ABCNET.Utils public static partial class Array { #region public + + #region Read1 /// /// Читает массив значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -21,10 +23,12 @@ public static bool[] ReadBoolean(int count, string prompt = EmptyStringHelper.Em { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; bool[] array = new bool[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadBoolean(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadBoolean(string.Format(prompt, i)); return array; } @@ -39,10 +43,12 @@ public static byte[] ReadByte(int count, string prompt = EmptyStringHelper.Empty { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; byte[] array = new byte[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadByte(string.Format(prompt, i)); return array; } @@ -57,10 +63,12 @@ public static sbyte[] ReadSByte(int count, string prompt = EmptyStringHelper.Emp { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; sbyte[] array = new sbyte[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadSByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadSByte(string.Format(prompt, i)); return array; } @@ -75,16 +83,18 @@ public static char[] ReadChar(int count, string prompt = EmptyStringHelper.Empty { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; char[] array = new char[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadChar(string.Format(prompt, i)); return array; } /// - /// Читает массив значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. @@ -93,10 +103,12 @@ public static decimal[] ReadDecimal(int count, string prompt = EmptyStringHelper { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; decimal[] array = new decimal[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadDecimal(string.Format(prompt, i)); return array; } @@ -111,10 +123,12 @@ public static double[] ReadDouble(int count, string prompt = EmptyStringHelper.E { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; double[] array = new double[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadDouble(string.Format(prompt, i)); return array; } @@ -129,10 +143,12 @@ public static float[] ReadSingle(int count, string prompt = EmptyStringHelper.Em { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; float[] array = new float[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadSingle(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadSingle(string.Format(prompt, i)); return array; } @@ -147,10 +163,12 @@ public static int[] ReadInt32(int count, string prompt = EmptyStringHelper.Empty { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; int[] array = new int[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadInt32(string.Format(prompt, i)); return array; } @@ -165,10 +183,12 @@ public static uint[] ReadUInt32(int count, string prompt = EmptyStringHelper.Emp { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; uint[] array = new uint[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadUInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadUInt32(string.Format(prompt, i)); return array; } @@ -183,10 +203,12 @@ public static long[] ReadInt64(int count, string prompt = EmptyStringHelper.Empt { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; long[] array = new long[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadInt64(string.Format(prompt, i)); return array; } @@ -201,10 +223,12 @@ public static ulong[] ReadUInt64(int count, string prompt = EmptyStringHelper.Em { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; ulong[] array = new ulong[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadUInt64(string.Format(prompt, i)); return array; } @@ -219,10 +243,12 @@ public static short[] ReadInt16(int count, string prompt = EmptyStringHelper.Emp { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; short[] array = new short[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadInt16(string.Format(prompt, i)); return array; } @@ -237,10 +263,12 @@ public static ushort[] ReadUInt16(int count, string prompt = EmptyStringHelper.E { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; ushort[] array = new ushort[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadUInt16(string.Format(prompt, i)); return array; } @@ -255,10 +283,12 @@ public static string[] ReadString(int count, string prompt = EmptyStringHelper.E { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; string[] array = new string[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadString(string.Format(prompt, i)); return array; } @@ -273,16 +303,22 @@ public static BigInteger[] ReadBigInteger(int count, string prompt = EmptyString { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; BigInteger[] array = new BigInteger[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.ReadBigInteger(string.Format(prompt, i)); return array; } + + #endregion + + #region Read2 /// - /// Заполняет 2 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -291,8 +327,9 @@ public static Tuple ReadBooleanTuple2(int count) return Tuple.Of(ReadBoolean(count), ReadBoolean(count)); } + /// - /// Заполняет 2 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -301,8 +338,9 @@ public static Tuple ReadByteTuple2(int count) return Tuple.Of(ReadByte(count), ReadByte(count)); } + /// - /// Заполняет 2 массива значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -311,8 +349,9 @@ public static Tuple ReadSByteTuple2(int count) return Tuple.Of(ReadSByte(count), ReadSByte(count)); } + /// - /// Заполняет 2 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -321,8 +360,9 @@ public static Tuple ReadCharTuple2(int count) return Tuple.Of(ReadChar(count), ReadChar(count)); } + /// - /// Заполняет 2 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -331,8 +371,9 @@ public static Tuple ReadDecimalTuple2(int count) return Tuple.Of(ReadDecimal(count), ReadDecimal(count)); } + /// - /// Заполняет 2 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -341,8 +382,9 @@ public static Tuple ReadDoubleTuple2(int count) return Tuple.Of(ReadDouble(count), ReadDouble(count)); } + /// - /// Заполняет 2 массива значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -351,8 +393,9 @@ public static Tuple ReadSingleTuple2(int count) return Tuple.Of(ReadSingle(count), ReadSingle(count)); } + /// - /// Заполняет 2 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -361,8 +404,9 @@ public static Tuple ReadInt32Tuple2(int count) return Tuple.Of(ReadInt32(count), ReadInt32(count)); } + /// - /// Заполняет 2 массива значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -371,8 +415,9 @@ public static Tuple ReadUInt32Tuple2(int count) return Tuple.Of(ReadUInt32(count), ReadUInt32(count)); } + /// - /// Заполняет 2 массива значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -381,8 +426,9 @@ public static Tuple ReadInt64Tuple2(int count) return Tuple.Of(ReadInt64(count), ReadInt64(count)); } + /// - /// Заполняет 2 массива значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -391,8 +437,9 @@ public static Tuple ReadUInt64Tuple2(int count) return Tuple.Of(ReadUInt64(count), ReadUInt64(count)); } + /// - /// Заполняет 2 массива значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -401,8 +448,9 @@ public static Tuple ReadInt16Tuple2(int count) return Tuple.Of(ReadInt16(count), ReadInt16(count)); } + /// - /// Заполняет 2 массива значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -411,8 +459,20 @@ public static Tuple ReadUInt16Tuple2(int count) return Tuple.Of(ReadUInt16(count), ReadUInt16(count)); } + + /// + /// Читает 2 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple2(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count)); + } + + /// - /// Заполняет 2 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. @@ -421,17 +481,848 @@ public static Tuple ReadStringTuple2(int count) return Tuple.Of(ReadString(count), ReadString(count)); } + #endregion + + #region Read3 + /// - /// Заполняет 2 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Размер массива. /// Кортеж. - public static Tuple ReadBigIntegerTuple2(int count) + public static Tuple ReadBooleanTuple3(int count) { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count)); + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + + /// + /// Читает 3 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple3(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count)); + } + + + /// + /// Читает 3 массива значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple3(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + + /// + /// Читает 3 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple3(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count)); + } + + + /// + /// Читает 3 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple3(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + + /// + /// Читает 3 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple3(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + + /// + /// Читает 3 массива значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple3(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + + /// + /// Читает 3 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple3(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + + /// + /// Читает 3 массива значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple3(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + + /// + /// Читает 3 массива значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple3(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + + /// + /// Читает 3 массива значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple3(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + + /// + /// Читает 3 массива значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple3(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + + /// + /// Читает 3 массива значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple3(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + + /// + /// Читает 3 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple3(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + + /// + /// Читает 3 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadStringTuple3(int count) + { + return Tuple.Of(ReadString(count), ReadString(count), ReadString(count)); + } + + #endregion + + #region Read4 + + /// + /// Читает 4 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple4(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + + /// + /// Читает 4 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple4(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + + /// + /// Читает 4 массива значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple4(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + + /// + /// Читает 4 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple4(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + + /// + /// Читает 4 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple4(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + + /// + /// Читает 4 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple4(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + + /// + /// Читает 4 массива значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple4(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + + /// + /// Читает 4 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple4(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + + /// + /// Читает 4 массива значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple4(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + + /// + /// Читает 4 массива значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple4(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + + /// + /// Читает 4 массива значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple4(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + + /// + /// Читает 4 массива значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple4(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + + /// + /// Читает 4 массива значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple4(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + + /// + /// Читает 4 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple4(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + + /// + /// Читает 4 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadStringTuple4(int count) + { + return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count)); + } + + #endregion + + #region Read5 + + /// + /// Читает 5 массивов значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple5(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + + /// + /// Читает 5 массивов значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple5(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + + /// + /// Читает 5 массивов значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple5(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + + /// + /// Читает 5 массивов значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple5(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + + /// + /// Читает 5 массивов значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple5(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + + /// + /// Читает 5 массивов значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple5(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + + /// + /// Читает 5 массивов значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple5(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + + /// + /// Читает 5 массивов значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple5(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + + /// + /// Читает 5 массивов значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple5(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + + /// + /// Читает 5 массивов значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple5(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + + /// + /// Читает 5 массивов значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple5(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + + /// + /// Читает 5 массивов значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple5(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + + /// + /// Читает 5 массивов значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple5(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + + /// + /// Читает 5 массивов значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple5(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + + /// + /// Читает 5 массивов значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadStringTuple5(int count) + { + return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); + } + + #endregion + + #region Read6 + + /// + /// Читает 6 массивов значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple6(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + + /// + /// Читает 6 массивов значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple6(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + + /// + /// Читает 6 массивов значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple6(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + + /// + /// Читает 6 массивов значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple6(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + + /// + /// Читает 6 массивов значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple6(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + + /// + /// Читает 6 массивов значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple6(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + + /// + /// Читает 6 массивов значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple6(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + + /// + /// Читает 6 массивов значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple6(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + + /// + /// Читает 6 массивов значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple6(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + + /// + /// Читает 6 массивов значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple6(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + + /// + /// Читает 6 массивов значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple6(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + + /// + /// Читает 6 массивов значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple6(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + + /// + /// Читает 6 массивов значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple6(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + + /// + /// Читает 6 массивов значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple6(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + + /// + /// Читает 6 массивов значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadStringTuple6(int count) + { + return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); + } + + #endregion + + #region Read7 + + /// + /// Читает 7 массивов значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple7(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + + /// + /// Читает 7 массивов значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple7(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + + /// + /// Читает 7 массивов значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple7(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + + /// + /// Читает 7 массивов значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple7(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + + /// + /// Читает 7 массивов значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple7(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + + /// + /// Читает 7 массивов значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple7(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + + /// + /// Читает 7 массивов значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple7(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + + /// + /// Читает 7 массивов значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple7(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + + /// + /// Читает 7 массивов значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple7(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + + /// + /// Читает 7 массивов значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple7(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + + /// + /// Читает 7 массивов значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple7(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + + /// + /// Читает 7 массивов значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple7(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + + /// + /// Читает 7 массивов значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple7(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + + /// + /// Читает 7 массивов значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple7(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + + /// + /// Читает 7 массивов значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadStringTuple7(int count) + { + return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); } + + #endregion - // ToDo: Доделать для кортежей длины ддо 7-ми элементов и Nullable. #endregion public } } From a640068ab4f7c009996630bb9278a36f034eb059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 17:28:36 +0700 Subject: [PATCH 044/102] closes #28 --- .../Extensions/MatrixE.Input.cs | 224 +-- NETMouse - .NET release/Utils/Matrix.Input.cs | 1258 +++++++++++++++-- 2 files changed, 1168 insertions(+), 314 deletions(-) diff --git a/NETMouse - .NET release/Extensions/MatrixE.Input.cs b/NETMouse - .NET release/Extensions/MatrixE.Input.cs index 0a695ed..a641497 100644 --- a/NETMouse - .NET release/Extensions/MatrixE.Input.cs +++ b/NETMouse - .NET release/Extensions/MatrixE.Input.cs @@ -2,6 +2,7 @@ using System.Numerics; using ABCNET.Utils; + namespace ABCNET.Extensions { /// @@ -16,418 +17,313 @@ public static partial class MatrixE /// /// Матрица. /// Приглашение к вводу. - public static void Read(this bool[,] matrix, string prompt = null) + public static void Read(this bool[,] matrix, string prompt = EmptyStringHelper.Empty) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); prompt = prompt ?? EmptyStringHelper.Empty; - int i = 0; - int j = 0; - - while (i < matrix.GetLength(0)) + for (int i = 0; i < matrix.GetLength(0); i++) { - while (j < matrix.GetLength(1)) + for (int j = 0; j < matrix.GetLength(1); j++) { matrix[i, j] = Base.ReadBoolean(string.Format(prompt, i, j)); - j++; } - - i++; - j = 0; } } - + /// /// Заполняет матрицу значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Матрица. /// Приглашение к вводу. - public static void Read(this byte[,] matrix, string prompt = null) + public static void Read(this byte[,] matrix, string prompt = EmptyStringHelper.Empty) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); prompt = prompt ?? EmptyStringHelper.Empty; - int i = 0; - int j = 0; - - while (i < matrix.GetLength(0)) + for (int i = 0; i < matrix.GetLength(0); i++) { - while (j < matrix.GetLength(1)) + for (int j = 0; j < matrix.GetLength(1); j++) { matrix[i, j] = Base.ReadByte(string.Format(prompt, i, j)); - j++; } - - i++; - j = 0; } } - + /// /// Заполняет матрицу значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Матрица. /// Приглашение к вводу. - public static void Read(this sbyte[,] matrix, string prompt = null) + public static void Read(this sbyte[,] matrix, string prompt = EmptyStringHelper.Empty) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); prompt = prompt ?? EmptyStringHelper.Empty; - int i = 0; - int j = 0; - - while (i < matrix.GetLength(0)) + for (int i = 0; i < matrix.GetLength(0); i++) { - while (j < matrix.GetLength(1)) + for (int j = 0; j < matrix.GetLength(1); j++) { matrix[i, j] = Base.ReadSByte(string.Format(prompt, i, j)); - j++; } - - i++; - j = 0; } } - + /// /// Заполняет матрицу значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Матрица. /// Приглашение к вводу. - public static void Read(this char[,] matrix, string prompt = null) + public static void Read(this char[,] matrix, string prompt = EmptyStringHelper.Empty) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); prompt = prompt ?? EmptyStringHelper.Empty; - int i = 0; - int j = 0; - - while (i < matrix.GetLength(0)) + for (int i = 0; i < matrix.GetLength(0); i++) { - while (j < matrix.GetLength(1)) + for (int j = 0; j < matrix.GetLength(1); j++) { matrix[i, j] = Base.ReadChar(string.Format(prompt, i, j)); - j++; } - - i++; - j = 0; } } - + /// /// Заполняет матрицу значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Матрица. /// Приглашение к вводу. - public static void Read(this decimal[,] matrix, string prompt = null) + public static void Read(this decimal[,] matrix, string prompt = EmptyStringHelper.Empty) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); prompt = prompt ?? EmptyStringHelper.Empty; - int i = 0; - int j = 0; - - while (i < matrix.GetLength(0)) + for (int i = 0; i < matrix.GetLength(0); i++) { - while (j < matrix.GetLength(1)) + for (int j = 0; j < matrix.GetLength(1); j++) { matrix[i, j] = Base.ReadDecimal(string.Format(prompt, i, j)); - j++; } - - i++; - j = 0; } } - + /// /// Заполняет матрицу значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Матрица. /// Приглашение к вводу. - public static void Read(this double[,] matrix, string prompt = null) + public static void Read(this double[,] matrix, string prompt = EmptyStringHelper.Empty) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); prompt = prompt ?? EmptyStringHelper.Empty; - int i = 0; - int j = 0; - - while (i < matrix.GetLength(0)) + for (int i = 0; i < matrix.GetLength(0); i++) { - while (j < matrix.GetLength(1)) + for (int j = 0; j < matrix.GetLength(1); j++) { matrix[i, j] = Base.ReadDouble(string.Format(prompt, i, j)); - j++; } - - i++; - j = 0; } } - + /// /// Заполняет матрицу значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Матрица. /// Приглашение к вводу. - public static void Read(this float[,] matrix, string prompt = null) + public static void Read(this float[,] matrix, string prompt = EmptyStringHelper.Empty) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); prompt = prompt ?? EmptyStringHelper.Empty; - int i = 0; - int j = 0; - - while (i < matrix.GetLength(0)) + for (int i = 0; i < matrix.GetLength(0); i++) { - while (j < matrix.GetLength(1)) + for (int j = 0; j < matrix.GetLength(1); j++) { matrix[i, j] = Base.ReadSingle(string.Format(prompt, i, j)); - j++; } - - i++; - j = 0; } } - + /// /// Заполняет матрицу значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Матрица. /// Приглашение к вводу. - public static void Read(this int[,] matrix, string prompt = null) + public static void Read(this int[,] matrix, string prompt = EmptyStringHelper.Empty) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); prompt = prompt ?? EmptyStringHelper.Empty; - int i = 0; - int j = 0; - - while (i < matrix.GetLength(0)) + for (int i = 0; i < matrix.GetLength(0); i++) { - while (j < matrix.GetLength(1)) + for (int j = 0; j < matrix.GetLength(1); j++) { matrix[i, j] = Base.ReadInt32(string.Format(prompt, i, j)); - j++; } - - i++; - j = 0; } } - + /// /// Заполняет матрицу значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Матрица. /// Приглашение к вводу. - public static void Read(this uint[,] matrix, string prompt = null) + public static void Read(this uint[,] matrix, string prompt = EmptyStringHelper.Empty) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); prompt = prompt ?? EmptyStringHelper.Empty; - int i = 0; - int j = 0; - - while (i < matrix.GetLength(0)) + for (int i = 0; i < matrix.GetLength(0); i++) { - while (j < matrix.GetLength(1)) + for (int j = 0; j < matrix.GetLength(1); j++) { matrix[i, j] = Base.ReadUInt32(string.Format(prompt, i, j)); - j++; } - - i++; - j = 0; } } - + /// /// Заполняет матрицу значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Матрица. /// Приглашение к вводу. - public static void Read(this long[,] matrix, string prompt = null) + public static void Read(this long[,] matrix, string prompt = EmptyStringHelper.Empty) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); prompt = prompt ?? EmptyStringHelper.Empty; - int i = 0; - int j = 0; - - while (i < matrix.GetLength(0)) + for (int i = 0; i < matrix.GetLength(0); i++) { - while (j < matrix.GetLength(1)) + for (int j = 0; j < matrix.GetLength(1); j++) { matrix[i, j] = Base.ReadInt64(string.Format(prompt, i, j)); - j++; } - - i++; - j = 0; } } - + /// /// Заполняет матрицу значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Матрица. /// Приглашение к вводу. - public static void Read(this ulong[,] matrix, string prompt = null) + public static void Read(this ulong[,] matrix, string prompt = EmptyStringHelper.Empty) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); prompt = prompt ?? EmptyStringHelper.Empty; - int i = 0; - int j = 0; - - while (i < matrix.GetLength(0)) + for (int i = 0; i < matrix.GetLength(0); i++) { - while (j < matrix.GetLength(1)) + for (int j = 0; j < matrix.GetLength(1); j++) { matrix[i, j] = Base.ReadUInt64(string.Format(prompt, i, j)); - j++; } - - i++; - j = 0; } } - + /// /// Заполняет матрицу значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Матрица. /// Приглашение к вводу. - public static void Read(this short[,] matrix, string prompt = null) + public static void Read(this short[,] matrix, string prompt = EmptyStringHelper.Empty) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); prompt = prompt ?? EmptyStringHelper.Empty; - int i = 0; - int j = 0; - - while (i < matrix.GetLength(0)) + for (int i = 0; i < matrix.GetLength(0); i++) { - while (j < matrix.GetLength(1)) + for (int j = 0; j < matrix.GetLength(1); j++) { matrix[i, j] = Base.ReadInt16(string.Format(prompt, i, j)); - j++; } - - i++; - j = 0; } } - + /// /// Заполняет матрицу значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Матрица. /// Приглашение к вводу. - public static void Read(this ushort[,] matrix, string prompt = null) + public static void Read(this ushort[,] matrix, string prompt = EmptyStringHelper.Empty) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); prompt = prompt ?? EmptyStringHelper.Empty; - int i = 0; - int j = 0; - - while (i < matrix.GetLength(0)) + for (int i = 0; i < matrix.GetLength(0); i++) { - while (j < matrix.GetLength(1)) + for (int j = 0; j < matrix.GetLength(1); j++) { matrix[i, j] = Base.ReadUInt16(string.Format(prompt, i, j)); - j++; } - - i++; - j = 0; } } - + /// /// Заполняет матрицу значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Матрица. /// Приглашение к вводу. - public static void Read(this BigInteger[,] matrix, string prompt = null) + public static void Read(this BigInteger[,] matrix, string prompt = EmptyStringHelper.Empty) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); prompt = prompt ?? EmptyStringHelper.Empty; - int i = 0; - int j = 0; - - while (i < matrix.GetLength(0)) + for (int i = 0; i < matrix.GetLength(0); i++) { - while (j < matrix.GetLength(1)) + for (int j = 0; j < matrix.GetLength(1); j++) { matrix[i, j] = Base.ReadBigInteger(string.Format(prompt, i, j)); - j++; } - - i++; - j = 0; } } - + /// /// Заполняет матрицу значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Матрица. /// Приглашение к вводу. - public static void Read(this string[,] matrix, string prompt = null) + public static void Read(this string[,] matrix, string prompt = EmptyStringHelper.Empty) { if (matrix == null) throw new ArgumentNullException(nameof(matrix)); prompt = prompt ?? EmptyStringHelper.Empty; - int i = 0; - int j = 0; - - while (i < matrix.GetLength(0)) + for (int i = 0; i < matrix.GetLength(0); i++) { - while (j < matrix.GetLength(1)) + for (int j = 0; j < matrix.GetLength(1); j++) { matrix[i, j] = Base.ReadString(string.Format(prompt, i, j)); - j++; } - - i++; - j = 0; } } diff --git a/NETMouse - .NET release/Utils/Matrix.Input.cs b/NETMouse - .NET release/Utils/Matrix.Input.cs index 46dee59..7bf0098 100644 --- a/NETMouse - .NET release/Utils/Matrix.Input.cs +++ b/NETMouse - .NET release/Utils/Matrix.Input.cs @@ -10,6 +10,8 @@ namespace ABCNET.Utils public static partial class Matrix { #region public + + #region Read1 /// /// Читает матрицу значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] @@ -24,25 +26,21 @@ public static partial class Matrix throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; bool[,] source = new bool[rowsCount, colsCount]; - int i = 0; - int j = 0; - - while (i < rowsCount) + for (int i = 0; i < rowsCount; i++) { - while (j < colsCount) + for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadBoolean(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; + source[i, j] = Base.ReadBoolean(string.Format(prompt, i, j)); } - i++; - j = 0; } return source; } - + /// /// Читает матрицу значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -56,25 +54,21 @@ public static partial class Matrix throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; byte[,] source = new byte[rowsCount, colsCount]; - int i = 0; - int j = 0; - - while (i < rowsCount) + for (int i = 0; i < rowsCount; i++) { - while (j < colsCount) + for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; + source[i, j] = Base.ReadByte(string.Format(prompt, i, j)); } - i++; - j = 0; } return source; } - + /// /// Читает матрицу значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -88,25 +82,21 @@ public static partial class Matrix throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; sbyte[,] source = new sbyte[rowsCount, colsCount]; - int i = 0; - int j = 0; - - while (i < rowsCount) + for (int i = 0; i < rowsCount; i++) { - while (j < colsCount) + for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadSByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; + source[i, j] = Base.ReadSByte(string.Format(prompt, i, j)); } - i++; - j = 0; } return source; } - + /// /// Читает матрицу значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -120,25 +110,21 @@ public static partial class Matrix throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; char[,] source = new char[rowsCount, colsCount]; - int i = 0; - int j = 0; - - while (i < rowsCount) + for (int i = 0; i < rowsCount; i++) { - while (j < colsCount) + for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; + source[i, j] = Base.ReadChar(string.Format(prompt, i, j)); } - i++; - j = 0; } return source; } - + /// /// Читает матрицу значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -152,25 +138,21 @@ public static partial class Matrix throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; decimal[,] source = new decimal[rowsCount, colsCount]; - int i = 0; - int j = 0; - - while (i < rowsCount) + for (int i = 0; i < rowsCount; i++) { - while (j < colsCount) + for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; + source[i, j] = Base.ReadDecimal(string.Format(prompt, i, j)); } - i++; - j = 0; } return source; } - + /// /// Читает матрицу значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -184,25 +166,21 @@ public static partial class Matrix throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; double[,] source = new double[rowsCount, colsCount]; - int i = 0; - int j = 0; - - while (i < rowsCount) + for (int i = 0; i < rowsCount; i++) { - while (j < colsCount) + for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; + source[i, j] = Base.ReadDouble(string.Format(prompt, i, j)); } - i++; - j = 0; } return source; } - + /// /// Читает матрицу значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -216,25 +194,21 @@ public static partial class Matrix throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; float[,] source = new float[rowsCount, colsCount]; - int i = 0; - int j = 0; - - while (i < rowsCount) + for (int i = 0; i < rowsCount; i++) { - while (j < colsCount) + for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadSingle(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; + source[i, j] = Base.ReadSingle(string.Format(prompt, i, j)); } - i++; - j = 0; } return source; } - + /// /// Читает матрицу значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -248,25 +222,21 @@ public static partial class Matrix throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; int[,] source = new int[rowsCount, colsCount]; - int i = 0; - int j = 0; - - while (i < rowsCount) + for (int i = 0; i < rowsCount; i++) { - while (j < colsCount) + for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; + source[i, j] = Base.ReadInt32(string.Format(prompt, i, j)); } - i++; - j = 0; } return source; } - + /// /// Читает матрицу значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -280,25 +250,21 @@ public static partial class Matrix throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; uint[,] source = new uint[rowsCount, colsCount]; - int i = 0; - int j = 0; - - while (i < rowsCount) + for (int i = 0; i < rowsCount; i++) { - while (j < colsCount) + for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadUInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; + source[i, j] = Base.ReadUInt32(string.Format(prompt, i, j)); } - i++; - j = 0; } return source; } - + /// /// Читает матрицу значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -312,25 +278,21 @@ public static partial class Matrix throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; long[,] source = new long[rowsCount, colsCount]; - int i = 0; - int j = 0; - - while (i < rowsCount) + for (int i = 0; i < rowsCount; i++) { - while (j < colsCount) + for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; + source[i, j] = Base.ReadInt64(string.Format(prompt, i, j)); } - i++; - j = 0; } return source; } - + /// /// Читает матрицу значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -344,25 +306,21 @@ public static partial class Matrix throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; ulong[,] source = new ulong[rowsCount, colsCount]; - int i = 0; - int j = 0; - - while (i < rowsCount) + for (int i = 0; i < rowsCount; i++) { - while (j < colsCount) + for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; + source[i, j] = Base.ReadUInt64(string.Format(prompt, i, j)); } - i++; - j = 0; } return source; } - + /// /// Читает матрицу значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -376,25 +334,21 @@ public static partial class Matrix throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; short[,] source = new short[rowsCount, colsCount]; - int i = 0; - int j = 0; - - while (i < rowsCount) + for (int i = 0; i < rowsCount; i++) { - while (j < colsCount) + for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; + source[i, j] = Base.ReadInt16(string.Format(prompt, i, j)); } - i++; - j = 0; } return source; } - + /// /// Читает матрицу значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -408,25 +362,21 @@ public static partial class Matrix throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; ushort[,] source = new ushort[rowsCount, colsCount]; - int i = 0; - int j = 0; - - while (i < rowsCount) + for (int i = 0; i < rowsCount; i++) { - while (j < colsCount) + for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; + source[i, j] = Base.ReadUInt16(string.Format(prompt, i, j)); } - i++; - j = 0; } return source; } - + /// /// Читает матрицу значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -440,25 +390,21 @@ public static partial class Matrix throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; BigInteger[,] source = new BigInteger[rowsCount, colsCount]; - int i = 0; - int j = 0; - - while (i < rowsCount) + for (int i = 0; i < rowsCount; i++) { - while (j < colsCount) + for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; + source[i, j] = Base.ReadBigInteger(string.Format(prompt, i, j)); } - i++; - j = 0; } return source; } - + /// /// Читает матрицу значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// @@ -472,25 +418,1037 @@ public static partial class Matrix throw new ArgumentOutOfRangeException(nameof(rowsCount)); if (colsCount < 0) throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; string[,] source = new string[rowsCount, colsCount]; - int i = 0; - int j = 0; - - while (i < rowsCount) + for (int i = 0; i < rowsCount; i++) { - while (j < colsCount) + for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j)); - j++; + source[i, j] = Base.ReadString(string.Format(prompt, i, j)); } - i++; - j = 0; } return source; } - + + #endregion + + #region Read2 + + /// + /// Читает 2 матрицы типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBooleanTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadByteTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSByteTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadCharTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDecimalTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDoubleTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSingleTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt32Tuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt32Tuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt64Tuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt64Tuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt16Tuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt16Tuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBigIntegerTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadStringTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + } + + #endregion + + #region Read3 + + /// + /// Читает 3 матрицы типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBooleanTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadByteTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSByteTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadCharTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDecimalTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDoubleTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSingleTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt32Tuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt32Tuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt64Tuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt64Tuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt16Tuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt16Tuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBigIntegerTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadStringTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + } + + #endregion + + #region Read4 + + /// + /// Читает 4 матрицы типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBooleanTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadByteTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSByteTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadCharTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDecimalTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDoubleTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSingleTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt32Tuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt32Tuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt64Tuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt64Tuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt16Tuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt16Tuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBigIntegerTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadStringTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + } + + #endregion + + #region Read5 + + /// + /// Читает 5 матриц типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBooleanTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadByteTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSByteTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadCharTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDecimalTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDoubleTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSingleTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt32Tuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt32Tuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt64Tuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt64Tuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt16Tuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt16Tuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBigIntegerTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadStringTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + } + + #endregion + + #region Read6 + + /// + /// Читает 6 матриц типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBooleanTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadByteTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSByteTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadCharTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDecimalTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDoubleTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSingleTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt32Tuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt32Tuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt64Tuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt64Tuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt16Tuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt16Tuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBigIntegerTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadStringTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + } + + #endregion + + #region Read7 + + /// + /// Читает 7 матриц типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBooleanTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadByteTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSByteTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadCharTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDecimalTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDoubleTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSingleTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt32Tuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt32Tuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt64Tuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt64Tuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt16Tuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt16Tuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBigIntegerTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadStringTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + } + + #endregion + #endregion public } } From 067f48ba7ba4b5fc458ec3e1faccfeaf3f8da49a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 17:30:16 +0700 Subject: [PATCH 045/102] closes #29 --- NETMouse - .NET release/Utils/Tuple.Generators.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NETMouse - .NET release/Utils/Tuple.Generators.cs b/NETMouse - .NET release/Utils/Tuple.Generators.cs index 4f1b17c..163f09f 100644 --- a/NETMouse - .NET release/Utils/Tuple.Generators.cs +++ b/NETMouse - .NET release/Utils/Tuple.Generators.cs @@ -9,7 +9,7 @@ public static partial class Tuple { #region public - #region OfOverloads + #region Of /// /// 2 . From 2f2cd27bb9b25fdef847b7edb6a433566bc94b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 17:32:47 +0700 Subject: [PATCH 046/102] closes #115 --- .../Utils/Sequence.Input.cs | 1567 +++++++++++++++++ 1 file changed, 1567 insertions(+) create mode 100644 NETMouse - .NET release/Utils/Sequence.Input.cs diff --git a/NETMouse - .NET release/Utils/Sequence.Input.cs b/NETMouse - .NET release/Utils/Sequence.Input.cs new file mode 100644 index 0000000..7532ca9 --- /dev/null +++ b/NETMouse - .NET release/Utils/Sequence.Input.cs @@ -0,0 +1,1567 @@ +/* + * Сделано в SharpDevelop. + * Пользователь: Миша + * Дата: 10.05.2020 + * Время: 16:08 + * + * Для изменения этого шаблона используйте Сервис | Настройка | Кодирование | Правка стандартных заголовков. + */ +using System; +using System.Collections.Generic; +using System.Numerics; + +namespace ABCNET.Utils +{ + /// + /// Description of Class1. + /// + public static partial class Sequence + { + #region public + + #region Read1 + + /// + /// Читает последовательность типа Boolean с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadBoolean(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.ReadBoolean(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Byte с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadByte(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.ReadByte(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа SByte с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadSByte(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.ReadSByte(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Char с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadChar(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.ReadChar(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Decimal с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadDecimal(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.ReadDecimal(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Double с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadDouble(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.ReadDouble(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Single с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadSingle(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.ReadSingle(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Int32 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadInt32(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.ReadInt32(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа UInt32 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadUInt32(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.ReadUInt32(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Int64 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadInt64(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.ReadInt64(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа UInt64 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadUInt64(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.ReadUInt64(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Int16 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadInt16(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.ReadInt16(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа UInt16 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadUInt16(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.ReadUInt16(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа BigInteger с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadBigInteger(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.ReadBigInteger(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа String с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadString(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.ReadString(string.Format(prompt, i)); + } + + #endregion + + #region Read2 + + /// + /// Читает 2 последовательности типа Boolean с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadBooleanTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Byte с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadByteTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 2 последовательности типа SByte с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadSByteTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Char с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadCharTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Decimal с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadDecimalTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Double с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadDoubleTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Single с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadSingleTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Int32 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadInt32Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 2 последовательности типа UInt32 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadUInt32Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Int64 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadInt64Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 2 последовательности типа UInt64 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadUInt64Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Int16 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadInt16Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 2 последовательности типа UInt16 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadUInt16Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 2 последовательности типа BigInteger с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadBigIntegerTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + /// + /// Читает 2 последовательности типа String с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadStringTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadString(count, prompt), ReadString(count, prompt)); + } + + #endregion + + #region Read3 + + /// + /// Читает 3 последовательности типа Boolean с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadBooleanTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Byte с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadByteTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 3 последовательности типа SByte с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadSByteTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Char с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadCharTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Decimal с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadDecimalTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Double с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadDoubleTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Single с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadSingleTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Int32 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadInt32Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 3 последовательности типа UInt32 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadUInt32Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Int64 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadInt64Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 3 последовательности типа UInt64 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadUInt64Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Int16 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadInt16Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 3 последовательности типа UInt16 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadUInt16Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 3 последовательности типа BigInteger с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadBigIntegerTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + /// + /// Читает 3 последовательности типа String с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadStringTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt)); + } + + #endregion + + #region Read4 + + /// + /// Читает 4 последовательности типа Boolean с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Byte с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 4 последовательности типа SByte с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Char с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Decimal с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Double с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Single с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Int32 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 4 последовательности типа UInt32 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Int64 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 4 последовательности типа UInt64 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Int16 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 4 последовательности типа UInt16 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 4 последовательности типа BigInteger с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + /// + /// Читает 4 последовательности типа String с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadStringTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt)); + } + + #endregion + + #region Read5 + + /// + /// Читает 5 последовательностей типа Boolean с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Byte с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа SByte с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Char с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Decimal с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Double с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Single с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Int32 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа UInt32 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Int64 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа UInt64 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Int16 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа UInt16 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа BigInteger с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа String с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadStringTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt)); + } + + #endregion + + #region Read6 + + /// + /// Читает 6 последовательностей типа Boolean с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Byte с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа SByte с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Char с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Decimal с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Double с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Single с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Int32 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа UInt32 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Int64 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа UInt64 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Int16 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа UInt16 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа BigInteger с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа String с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadStringTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt)); + } + + #endregion + + #region Read7 + + /// + /// Читает 7 последовательностей типа Boolean с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Byte с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа SByte с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Char с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Decimal с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Double с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Single с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Int32 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа UInt32 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Int64 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа UInt64 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Int16 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа UInt16 с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа BigInteger с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа String с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadStringTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt)); + } + + #endregion + + #endregion + } +} From 8456cbae0d6447e9e8352853d118bd2dd6f1cd18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 17:55:20 +0700 Subject: [PATCH 047/102] closes #27 --- .../Extensions/ArrayE.Nullable.Input.cs | 305 ++++++ .../Utils/Array.Nullable.Input.cs | 978 +++++++++++++++++- 2 files changed, 1242 insertions(+), 41 deletions(-) create mode 100644 NETMouse - .NET release/Extensions/ArrayE.Nullable.Input.cs diff --git a/NETMouse - .NET release/Extensions/ArrayE.Nullable.Input.cs b/NETMouse - .NET release/Extensions/ArrayE.Nullable.Input.cs new file mode 100644 index 0000000..c1c4967 --- /dev/null +++ b/NETMouse - .NET release/Extensions/ArrayE.Nullable.Input.cs @@ -0,0 +1,305 @@ +using ABCNET.Utils; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Numerics; +using System.Text; + +namespace ABCNET.Extensions +{ + /// + /// Предоставляет функционал для работы с массивами. + /// + public static partial class ArrayE + { + + public static partial class Nullable + { + + #region public + + /// + /// Заполняет массив значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this bool?[] array, string prompt = null) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + int i = 0; + while (i < array.Length) + { + array[i] = Base.Nullable.ReadBoolean(string.Format(prompt, i)); + i++; + } + } + + /// + /// Заполняет массив значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this byte?[] array, string prompt = null) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + int i = 0; + while (i < array.Length) + { + array[i] = Base.Nullable.ReadByte(string.Format(prompt, i)); + i++; + } + } + + /// + /// Заполняет массив значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this sbyte?[] array, string prompt = null) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + int i = 0; + while (i < array.Length) + { + array[i] = Base.Nullable.ReadSByte(string.Format(prompt, i)); + i++; + } + } + + /// + /// Заполняет массив значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this char?[] array, string prompt = null) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + int i = 0; + while (i < array.Length) + { + array[i] = Base.Nullable.ReadChar(string.Format(prompt, i)); + i++; + } + } + + /// + /// Заполняет массив значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this decimal?[] array, string prompt = null) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + int i = 0; + while (i < array.Length) + { + array[i] = Base.Nullable.ReadDecimal(string.Format(prompt, i)); + i++; + } + } + + /// + /// Заполняет массив значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this double?[] array, string prompt = null) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + int i = 0; + while (i < array.Length) + { + array[i] = Base.Nullable.ReadDouble(string.Format(prompt, i)); + i++; + } + } + + /// + /// Заполняет массив значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this float?[] array, string prompt = null) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + int i = 0; + while (i < array.Length) + { + array[i] = Base.Nullable.ReadSingle(string.Format(prompt, i)); + i++; + } + } + + /// + /// Заполняет массив значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this int?[] array, string prompt = null) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + int i = 0; + while (i < array.Length) + { + array[i] = Base.Nullable.ReadInt32(string.Format(prompt, i)); + i++; + } + } + + /// + /// Заполняет массив значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this uint?[] array, string prompt = null) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + int i = 0; + while (i < array.Length) + { + array[i] = Base.Nullable.ReadUInt32(string.Format(prompt, i)); + i++; + } + } + + /// + /// Заполняет массив значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this long?[] array, string prompt = null) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + int i = 0; + while (i < array.Length) + { + array[i] = Base.Nullable.ReadInt64(string.Format(prompt, i)); + i++; + } + } + + /// + /// Заполняет массив значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this ulong?[] array, string prompt = null) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + int i = 0; + while (i < array.Length) + { + array[i] = Base.Nullable.ReadUInt64(string.Format(prompt, i)); + i++; + } + } + + /// + /// Заполняет массив значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this short?[] array, string prompt = null) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + int i = 0; + while (i < array.Length) + { + array[i] = Base.Nullable.ReadInt16(string.Format(prompt, i)); + i++; + } + } + + /// + /// Заполняет массив значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this ushort?[] array, string prompt = null) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + int i = 0; + while (i < array.Length) + { + array[i] = Base.Nullable.ReadUInt16(string.Format(prompt, i)); + i++; + } + } + + /// + /// Заполняет массив значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Массив. + /// Приглашение к вводу. + public static void Read(this BigInteger?[] array, string prompt = null) + { + if (array == null) + throw new ArgumentNullException(nameof(array)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + int i = 0; + while (i < array.Length) + { + array[i] = Base.Nullable.ReadBigInteger(string.Format(prompt, i)); + i++; + } + } + + #endregion + } + + } +} diff --git a/NETMouse - .NET release/Utils/Array.Nullable.Input.cs b/NETMouse - .NET release/Utils/Array.Nullable.Input.cs index 86706c5..e9daab6 100644 --- a/NETMouse - .NET release/Utils/Array.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/Array.Nullable.Input.cs @@ -17,9 +17,11 @@ public static partial class Array public static partial class Nullable { #region public + + #region Read1 /// - /// Читает массив значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. @@ -28,16 +30,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; bool?[] array = new bool?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadBoolean(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.Nullable.ReadBoolean(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. @@ -46,16 +50,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; byte?[] array = new byte?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.Nullable.ReadByte(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. @@ -64,16 +70,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; sbyte?[] array = new sbyte?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadSByte(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.Nullable.ReadSByte(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. @@ -82,16 +90,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; char?[] array = new char?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadChar(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.Nullable.ReadChar(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. @@ -100,16 +110,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; decimal?[] array = new decimal?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadDecimal(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.Nullable.ReadDecimal(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. @@ -118,16 +130,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; double?[] array = new double?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadDouble(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.Nullable.ReadDouble(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. @@ -136,16 +150,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; float?[] array = new float?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadSingle(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.Nullable.ReadSingle(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. @@ -154,16 +170,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; int?[] array = new int?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.Nullable.ReadInt32(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. @@ -172,16 +190,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; uint?[] array = new uint?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadUInt32(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.Nullable.ReadUInt32(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. @@ -190,16 +210,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; long?[] array = new long?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.Nullable.ReadInt64(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. @@ -208,16 +230,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; ulong?[] array = new ulong?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadUInt64(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.Nullable.ReadUInt64(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. @@ -226,16 +250,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; short?[] array = new short?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.Nullable.ReadInt16(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. @@ -244,16 +270,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; ushort?[] array = new ushort?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadUInt16(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.Nullable.ReadUInt16(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] /// /// Количество элементов. /// Приглашение к вводу. @@ -262,15 +290,883 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; BigInteger?[] array = new BigInteger?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadBigInteger(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i)); + array[i] = Base.Nullable.ReadBigInteger(string.Format(prompt, i)); return array; } #endregion + + #region Read2 + + /// + /// Читает 2 массива значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple2(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Читает 2 массива значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple2(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count)); + } + + /// + /// Читает 2 массива значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple2(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 2 массива значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple2(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 2 массива значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple2(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 2 массива значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple2(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 2 массива значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple2(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 2 массива значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple2(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 2 массива значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple2(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 2 массива значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple2(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 2 массива значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple2(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 2 массива значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple2(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 2 массива значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple2(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 2 массива значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple2(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion + + #region Read3 + + /// + /// Читает 3 массива значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple3(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Читает 3 массива значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple3(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Читает 3 массива значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple3(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 3 массива значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple3(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 3 массива значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple3(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 3 массива значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple3(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 3 массива значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple3(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 3 массива значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple3(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 3 массива значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple3(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 3 массива значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple3(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 3 массива значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple3(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 3 массива значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple3(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 3 массива значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple3(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 3 массива значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple3(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion + + #region Read4 + + /// + /// Читает 4 массива значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple4(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Читает 4 массива значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple4(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Читает 4 массива значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple4(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 4 массива значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple4(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 4 массива значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple4(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 4 массива значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple4(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 4 массива значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple4(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 4 массива значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple4(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 4 массива значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple4(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 4 массива значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple4(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 4 массива значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple4(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 4 массива значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple4(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 4 массива значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple4(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 4 массива значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple4(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion + + #region Read5 + + /// + /// Читает 5 массивов значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple5(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Читает 5 массивов значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple5(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Читает 5 массивов значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple5(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 5 массивов значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple5(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 5 массивов значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple5(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 5 массивов значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple5(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 5 массивов значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple5(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 5 массивов значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple5(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 5 массивов значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple5(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 5 массивов значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple5(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 5 массивов значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple5(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 5 массивов значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple5(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 5 массивов значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple5(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 5 массивов значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple5(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion + + #region Read6 + + /// + /// Читает 6 массивов значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple6(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Читает 6 массивов значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple6(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Читает 6 массивов значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple6(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 6 массивов значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple6(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 6 массивов значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple6(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 6 массивов значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple6(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 6 массивов значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple6(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 6 массивов значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple6(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 6 массивов значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple6(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 6 массивов значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple6(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 6 массивов значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple6(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 6 массивов значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple6(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 6 массивов значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple6(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 6 массивов значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple6(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion + + #region Read7 + + /// + /// Читает 7 массивов значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple7(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Читает 7 массивов значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple7(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Читает 7 массивов значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple7(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 7 массивов значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple7(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 7 массивов значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple7(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 7 массивов значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple7(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 7 массивов значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple7(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 7 массивов значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple7(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 7 массивов значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple7(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 7 массивов значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple7(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 7 массивов значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple7(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 7 массивов значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple7(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 7 массивов значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple7(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 7 массивов значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple7(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion + + #endregion } } } From 940ea54ccee451345b9eb574ea6199519d2bced5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 17:55:57 +0700 Subject: [PATCH 048/102] closes #28 --- .../Extensions/MatrixE.Nullable.Input.cs | 315 ++++ .../Utils/Matrix.Nullable.Input.cs | 1370 +++++++++++++++++ 2 files changed, 1685 insertions(+) create mode 100644 NETMouse - .NET release/Extensions/MatrixE.Nullable.Input.cs create mode 100644 NETMouse - .NET release/Utils/Matrix.Nullable.Input.cs diff --git a/NETMouse - .NET release/Extensions/MatrixE.Nullable.Input.cs b/NETMouse - .NET release/Extensions/MatrixE.Nullable.Input.cs new file mode 100644 index 0000000..dac5bd6 --- /dev/null +++ b/NETMouse - .NET release/Extensions/MatrixE.Nullable.Input.cs @@ -0,0 +1,315 @@ +using ABCNET.Utils; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Numerics; +using System.Text; + +namespace ABCNET.Extensions +{ + /// + /// Предоставляет функционал для работы с базовыми типами. + /// + public static partial class MatrixE + { + + #region public + + /// + /// Заполняет матрицу значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this bool?[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < matrix.GetLength(0); i++) + { + for (int j = 0; j < matrix.GetLength(1); j++) + { + matrix[i, j] = Base.Nullable.ReadBoolean(string.Format(prompt, i, j)); + } + } + } + + /// + /// Заполняет матрицу значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this byte?[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < matrix.GetLength(0); i++) + { + for (int j = 0; j < matrix.GetLength(1); j++) + { + matrix[i, j] = Base.Nullable.ReadByte(string.Format(prompt, i, j)); + } + } + } + + /// + /// Заполняет матрицу значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this sbyte?[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < matrix.GetLength(0); i++) + { + for (int j = 0; j < matrix.GetLength(1); j++) + { + matrix[i, j] = Base.Nullable.ReadSByte(string.Format(prompt, i, j)); + } + } + } + + /// + /// Заполняет матрицу значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this char?[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < matrix.GetLength(0); i++) + { + for (int j = 0; j < matrix.GetLength(1); j++) + { + matrix[i, j] = Base.Nullable.ReadChar(string.Format(prompt, i, j)); + } + } + } + + /// + /// Заполняет матрицу значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this decimal?[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < matrix.GetLength(0); i++) + { + for (int j = 0; j < matrix.GetLength(1); j++) + { + matrix[i, j] = Base.Nullable.ReadDecimal(string.Format(prompt, i, j)); + } + } + } + + /// + /// Заполняет матрицу значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this double?[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < matrix.GetLength(0); i++) + { + for (int j = 0; j < matrix.GetLength(1); j++) + { + matrix[i, j] = Base.Nullable.ReadDouble(string.Format(prompt, i, j)); + } + } + } + + /// + /// Заполняет матрицу значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this float?[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < matrix.GetLength(0); i++) + { + for (int j = 0; j < matrix.GetLength(1); j++) + { + matrix[i, j] = Base.Nullable.ReadSingle(string.Format(prompt, i, j)); + } + } + } + + /// + /// Заполняет матрицу значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this int?[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < matrix.GetLength(0); i++) + { + for (int j = 0; j < matrix.GetLength(1); j++) + { + matrix[i, j] = Base.Nullable.ReadInt32(string.Format(prompt, i, j)); + } + } + } + + /// + /// Заполняет матрицу значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this uint?[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < matrix.GetLength(0); i++) + { + for (int j = 0; j < matrix.GetLength(1); j++) + { + matrix[i, j] = Base.Nullable.ReadUInt32(string.Format(prompt, i, j)); + } + } + } + + /// + /// Заполняет матрицу значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this long?[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < matrix.GetLength(0); i++) + { + for (int j = 0; j < matrix.GetLength(1); j++) + { + matrix[i, j] = Base.Nullable.ReadInt64(string.Format(prompt, i, j)); + } + } + } + + /// + /// Заполняет матрицу значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this ulong?[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < matrix.GetLength(0); i++) + { + for (int j = 0; j < matrix.GetLength(1); j++) + { + matrix[i, j] = Base.Nullable.ReadUInt64(string.Format(prompt, i, j)); + } + } + } + + /// + /// Заполняет матрицу значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this short?[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < matrix.GetLength(0); i++) + { + for (int j = 0; j < matrix.GetLength(1); j++) + { + matrix[i, j] = Base.Nullable.ReadInt16(string.Format(prompt, i, j)); + } + } + } + + /// + /// Заполняет матрицу значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this ushort?[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < matrix.GetLength(0); i++) + { + for (int j = 0; j < matrix.GetLength(1); j++) + { + matrix[i, j] = Base.Nullable.ReadUInt16(string.Format(prompt, i, j)); + } + } + } + + /// + /// Заполняет матрицу значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Матрица. + /// Приглашение к вводу. + public static void Read(this BigInteger?[,] matrix, string prompt = EmptyStringHelper.Empty) + { + if (matrix == null) + throw new ArgumentNullException(nameof(matrix)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < matrix.GetLength(0); i++) + { + for (int j = 0; j < matrix.GetLength(1); j++) + { + matrix[i, j] = Base.Nullable.ReadBigInteger(string.Format(prompt, i, j)); + } + } + } + + #endregion + + } +} diff --git a/NETMouse - .NET release/Utils/Matrix.Nullable.Input.cs b/NETMouse - .NET release/Utils/Matrix.Nullable.Input.cs new file mode 100644 index 0000000..047fee2 --- /dev/null +++ b/NETMouse - .NET release/Utils/Matrix.Nullable.Input.cs @@ -0,0 +1,1370 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Numerics; +using System.Text; + +namespace ABCNET.Utils +{ + /// + /// Предоставляет функционал для работы с матрицами. + /// + public static partial class Matrix + { + /// + /// Предоставляет функционал для работы с Nullable типами. + /// + public static partial class Nullable + { + + #region public + + #region Read1 + + /// + /// Читает матрицу значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Приглашение к вводу. + /// Матрица. + public static bool?[,] ReadBoolean(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + { + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + bool?[,] source = new bool?[rowsCount, colsCount]; + for (int i = 0; i < rowsCount; i++) + { + for (int j = 0; j < colsCount; j++) + { + source[i, j] = Base.Nullable.ReadBoolean(string.Format(prompt, i, j)); + } + } + + return source; + } + + /// + /// Читает матрицу значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Приглашение к вводу. + /// Матрица. + public static byte?[,] ReadByte(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + { + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + byte?[,] source = new byte?[rowsCount, colsCount]; + for (int i = 0; i < rowsCount; i++) + { + for (int j = 0; j < colsCount; j++) + { + source[i, j] = Base.Nullable.ReadByte(string.Format(prompt, i, j)); + } + } + + return source; + } + + /// + /// Читает матрицу значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Приглашение к вводу. + /// Матрица. + public static sbyte?[,] ReadSByte(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + { + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + sbyte?[,] source = new sbyte?[rowsCount, colsCount]; + for (int i = 0; i < rowsCount; i++) + { + for (int j = 0; j < colsCount; j++) + { + source[i, j] = Base.Nullable.ReadSByte(string.Format(prompt, i, j)); + } + } + + return source; + } + + /// + /// Читает матрицу значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Приглашение к вводу. + /// Матрица. + public static char?[,] ReadChar(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + { + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + char?[,] source = new char?[rowsCount, colsCount]; + for (int i = 0; i < rowsCount; i++) + { + for (int j = 0; j < colsCount; j++) + { + source[i, j] = Base.Nullable.ReadChar(string.Format(prompt, i, j)); + } + } + + return source; + } + + /// + /// Читает матрицу значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Приглашение к вводу. + /// Матрица. + public static decimal?[,] ReadDecimal(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + { + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + decimal?[,] source = new decimal?[rowsCount, colsCount]; + for (int i = 0; i < rowsCount; i++) + { + for (int j = 0; j < colsCount; j++) + { + source[i, j] = Base.Nullable.ReadDecimal(string.Format(prompt, i, j)); + } + } + + return source; + } + + /// + /// Читает матрицу значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Приглашение к вводу. + /// Матрица. + public static double?[,] ReadDouble(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + { + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + double?[,] source = new double?[rowsCount, colsCount]; + for (int i = 0; i < rowsCount; i++) + { + for (int j = 0; j < colsCount; j++) + { + source[i, j] = Base.Nullable.ReadDouble(string.Format(prompt, i, j)); + } + } + + return source; + } + + /// + /// Читает матрицу значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Приглашение к вводу. + /// Матрица. + public static float?[,] ReadSingle(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + { + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + float?[,] source = new float?[rowsCount, colsCount]; + for (int i = 0; i < rowsCount; i++) + { + for (int j = 0; j < colsCount; j++) + { + source[i, j] = Base.Nullable.ReadSingle(string.Format(prompt, i, j)); + } + } + + return source; + } + + /// + /// Читает матрицу значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Приглашение к вводу. + /// Матрица. + public static int?[,] ReadInt32(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + { + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + int?[,] source = new int?[rowsCount, colsCount]; + for (int i = 0; i < rowsCount; i++) + { + for (int j = 0; j < colsCount; j++) + { + source[i, j] = Base.Nullable.ReadInt32(string.Format(prompt, i, j)); + } + } + + return source; + } + + /// + /// Читает матрицу значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Приглашение к вводу. + /// Матрица. + public static uint?[,] ReadUInt32(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + { + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + uint?[,] source = new uint?[rowsCount, colsCount]; + for (int i = 0; i < rowsCount; i++) + { + for (int j = 0; j < colsCount; j++) + { + source[i, j] = Base.Nullable.ReadUInt32(string.Format(prompt, i, j)); + } + } + + return source; + } + + /// + /// Читает матрицу значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Приглашение к вводу. + /// Матрица. + public static long?[,] ReadInt64(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + { + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + long?[,] source = new long?[rowsCount, colsCount]; + for (int i = 0; i < rowsCount; i++) + { + for (int j = 0; j < colsCount; j++) + { + source[i, j] = Base.Nullable.ReadInt64(string.Format(prompt, i, j)); + } + } + + return source; + } + + /// + /// Читает матрицу значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Приглашение к вводу. + /// Матрица. + public static ulong?[,] ReadUInt64(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + { + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + ulong?[,] source = new ulong?[rowsCount, colsCount]; + for (int i = 0; i < rowsCount; i++) + { + for (int j = 0; j < colsCount; j++) + { + source[i, j] = Base.Nullable.ReadUInt64(string.Format(prompt, i, j)); + } + } + + return source; + } + + /// + /// Читает матрицу значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Приглашение к вводу. + /// Матрица. + public static short?[,] ReadInt16(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + { + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + short?[,] source = new short?[rowsCount, colsCount]; + for (int i = 0; i < rowsCount; i++) + { + for (int j = 0; j < colsCount; j++) + { + source[i, j] = Base.Nullable.ReadInt16(string.Format(prompt, i, j)); + } + } + + return source; + } + + /// + /// Читает матрицу значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Приглашение к вводу. + /// Матрица. + public static ushort?[,] ReadUInt16(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + { + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + ushort?[,] source = new ushort?[rowsCount, colsCount]; + for (int i = 0; i < rowsCount; i++) + { + for (int j = 0; j < colsCount; j++) + { + source[i, j] = Base.Nullable.ReadUInt16(string.Format(prompt, i, j)); + } + } + + return source; + } + + /// + /// Читает матрицу значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Приглашение к вводу. + /// Матрица. + public static BigInteger?[,] ReadBigInteger(int rowsCount, int colsCount, string prompt = EmptyStringHelper.Empty) + { + if (rowsCount < 0) + throw new ArgumentOutOfRangeException(nameof(rowsCount)); + if (colsCount < 0) + throw new ArgumentOutOfRangeException(nameof(colsCount)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + BigInteger?[,] source = new BigInteger?[rowsCount, colsCount]; + for (int i = 0; i < rowsCount; i++) + { + for (int j = 0; j < colsCount; j++) + { + source[i, j] = Base.Nullable.ReadBigInteger(string.Format(prompt, i, j)); + } + } + + return source; + } + + #endregion + + #region Read2 + + /// + /// Читает 2 матрицы типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBooleanTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadByteTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSByteTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadCharTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDecimalTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDoubleTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSingleTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt32Tuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt32Tuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt64Tuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt64Tuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt16Tuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt16Tuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + } + + /// + /// Читает 2 матрицы типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBigIntegerTuple2(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + } + + #endregion + + #region Read3 + + /// + /// Читает 3 матрицы типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBooleanTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadByteTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSByteTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadCharTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDecimalTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDoubleTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSingleTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt32Tuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt32Tuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt64Tuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt64Tuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt16Tuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt16Tuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + } + + /// + /// Читает 3 матрицы типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBigIntegerTuple3(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + } + + #endregion + + #region Read4 + + /// + /// Читает 4 матрицы типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBooleanTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadByteTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSByteTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadCharTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDecimalTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDoubleTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSingleTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt32Tuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt32Tuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt64Tuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt64Tuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt16Tuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt16Tuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + } + + /// + /// Читает 4 матрицы типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBigIntegerTuple4(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + } + + #endregion + + #region Read5 + + /// + /// Читает 5 матриц типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBooleanTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadByteTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSByteTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadCharTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDecimalTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDoubleTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSingleTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt32Tuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt32Tuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt64Tuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt64Tuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt16Tuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt16Tuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + } + + /// + /// Читает 5 матриц типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBigIntegerTuple5(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + } + + #endregion + + #region Read6 + + /// + /// Читает 6 матриц типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBooleanTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadByteTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSByteTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadCharTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDecimalTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDoubleTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSingleTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt32Tuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt32Tuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt64Tuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt64Tuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt16Tuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt16Tuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + } + + /// + /// Читает 6 матриц типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBigIntegerTuple6(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + } + + #endregion + + #region Read7 + + /// + /// Читает 7 матриц типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBooleanTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadByteTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSByteTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadCharTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDecimalTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadDoubleTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadSingleTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt32Tuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt32Tuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt64Tuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt64Tuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadInt16Tuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadUInt16Tuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + } + + /// + /// Читает 7 матриц типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Количество строк. + /// Количество столбцов. + /// Кортеж. + public static Tuple ReadBigIntegerTuple7(int rowsCount, int colsCount) + { + return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + } + + #endregion + + #endregion + + } + } +} From 31f278f44ec611a52d8ed6eb4414ffa302d0724e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 17:57:20 +0700 Subject: [PATCH 049/102] closes #30 --- .../Utils/Tuple.Nullable.Input.cs | 1297 +++++++++++++++++ 1 file changed, 1297 insertions(+) create mode 100644 NETMouse - .NET release/Utils/Tuple.Nullable.Input.cs diff --git a/NETMouse - .NET release/Utils/Tuple.Nullable.Input.cs b/NETMouse - .NET release/Utils/Tuple.Nullable.Input.cs new file mode 100644 index 0000000..be7cccb --- /dev/null +++ b/NETMouse - .NET release/Utils/Tuple.Nullable.Input.cs @@ -0,0 +1,1297 @@ +using System; +using System.Numerics; + +namespace ABCNET.Utils +{ + /// + /// Предоставляет функционал для работы с базовыми типами. + /// + public static partial class Base + { + /// + /// Предоставляет функционал для работы с Nullable типами. + /// + public static partial class Nullable + { + + #region public + + #region ReadBoolean? + + /// + /// Читает кортеж из двух значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple2(string prompt = null) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), + Base.Nullable.ReadBoolean(string.Format(prompt, 1))); + } + + /// + /// Читает кортеж из трёх значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple3(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), + Base.Nullable.ReadBoolean(string.Format(prompt, 1)), + Base.Nullable.ReadBoolean(string.Format(prompt, 2))); + } + + /// + /// Читает кортеж из четырёх значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple4(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), + Base.Nullable.ReadBoolean(string.Format(prompt, 1)), + Base.Nullable.ReadBoolean(string.Format(prompt, 2)), + Base.Nullable.ReadBoolean(string.Format(prompt, 3))); + } + + /// + /// Читает кортеж из пяти значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple5(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), + Base.Nullable.ReadBoolean(string.Format(prompt, 1)), + Base.Nullable.ReadBoolean(string.Format(prompt, 2)), + Base.Nullable.ReadBoolean(string.Format(prompt, 3)), + Base.Nullable.ReadBoolean(string.Format(prompt, 4))); + } + + /// + /// Читает кортеж из шести значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple6(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), + Base.Nullable.ReadBoolean(string.Format(prompt, 1)), + Base.Nullable.ReadBoolean(string.Format(prompt, 2)), + Base.Nullable.ReadBoolean(string.Format(prompt, 3)), + Base.Nullable.ReadBoolean(string.Format(prompt, 4)), + Base.Nullable.ReadBoolean(string.Format(prompt, 5))); + } + + /// + /// Читает кортеж из семи значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBooleanTuple7(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), + Base.Nullable.ReadBoolean(string.Format(prompt, 1)), + Base.Nullable.ReadBoolean(string.Format(prompt, 2)), + Base.Nullable.ReadBoolean(string.Format(prompt, 3)), + Base.Nullable.ReadBoolean(string.Format(prompt, 4)), + Base.Nullable.ReadBoolean(string.Format(prompt, 5)), + Base.Nullable.ReadBoolean(string.Format(prompt, 6))); + } + + #endregion + + #region ReadByte? + + /// + /// Читает кортеж из двух значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple2(string prompt = null) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), + Base.Nullable.ReadByte(string.Format(prompt, 1))); + } + + /// + /// Читает кортеж из трёх значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple3(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), + Base.Nullable.ReadByte(string.Format(prompt, 1)), + Base.Nullable.ReadByte(string.Format(prompt, 2))); + } + + /// + /// Читает кортеж из четырёх значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple4(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), + Base.Nullable.ReadByte(string.Format(prompt, 1)), + Base.Nullable.ReadByte(string.Format(prompt, 2)), + Base.Nullable.ReadByte(string.Format(prompt, 3))); + } + + /// + /// Читает кортеж из пяти значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple5(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), + Base.Nullable.ReadByte(string.Format(prompt, 1)), + Base.Nullable.ReadByte(string.Format(prompt, 2)), + Base.Nullable.ReadByte(string.Format(prompt, 3)), + Base.Nullable.ReadByte(string.Format(prompt, 4))); + } + + /// + /// Читает кортеж из шести значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple6(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), + Base.Nullable.ReadByte(string.Format(prompt, 1)), + Base.Nullable.ReadByte(string.Format(prompt, 2)), + Base.Nullable.ReadByte(string.Format(prompt, 3)), + Base.Nullable.ReadByte(string.Format(prompt, 4)), + Base.Nullable.ReadByte(string.Format(prompt, 5))); + } + + /// + /// Читает кортеж из семи значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadByteTuple7(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), + Base.Nullable.ReadByte(string.Format(prompt, 1)), + Base.Nullable.ReadByte(string.Format(prompt, 2)), + Base.Nullable.ReadByte(string.Format(prompt, 3)), + Base.Nullable.ReadByte(string.Format(prompt, 4)), + Base.Nullable.ReadByte(string.Format(prompt, 5)), + Base.Nullable.ReadByte(string.Format(prompt, 6))); + } + + #endregion + + #region ReadSByte? + + /// + /// Читает кортеж из двух значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSByteTuple2(string prompt = null) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), + Base.Nullable.ReadSByte(string.Format(prompt, 1))); + } + + /// + /// Читает кортеж из трёх значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSByteTuple3(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), + Base.Nullable.ReadSByte(string.Format(prompt, 1)), + Base.Nullable.ReadSByte(string.Format(prompt, 2))); + } + + /// + /// Читает кортеж из четырёх значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSByteTuple4(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), + Base.Nullable.ReadSByte(string.Format(prompt, 1)), + Base.Nullable.ReadSByte(string.Format(prompt, 2)), + Base.Nullable.ReadSByte(string.Format(prompt, 3))); + } + + /// + /// Читает кортеж из пяти значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSByteTuple5(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), + Base.Nullable.ReadSByte(string.Format(prompt, 1)), + Base.Nullable.ReadSByte(string.Format(prompt, 2)), + Base.Nullable.ReadSByte(string.Format(prompt, 3)), + Base.Nullable.ReadSByte(string.Format(prompt, 4))); + } + + /// + /// Читает кортеж из шести значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSByteTuple6(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), + Base.Nullable.ReadSByte(string.Format(prompt, 1)), + Base.Nullable.ReadSByte(string.Format(prompt, 2)), + Base.Nullable.ReadSByte(string.Format(prompt, 3)), + Base.Nullable.ReadSByte(string.Format(prompt, 4)), + Base.Nullable.ReadSByte(string.Format(prompt, 5))); + } + + /// + /// Читает кортеж из семи значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSByteTuple7(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), + Base.Nullable.ReadSByte(string.Format(prompt, 1)), + Base.Nullable.ReadSByte(string.Format(prompt, 2)), + Base.Nullable.ReadSByte(string.Format(prompt, 3)), + Base.Nullable.ReadSByte(string.Format(prompt, 4)), + Base.Nullable.ReadSByte(string.Format(prompt, 5)), + Base.Nullable.ReadSByte(string.Format(prompt, 6))); + } + + #endregion + + #region ReadChar? + + /// + /// Читает кортеж из двух значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple2(string prompt = null) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), + Base.Nullable.ReadChar(string.Format(prompt, 1))); + } + + /// + /// Читает кортеж из трёх значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple3(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), + Base.Nullable.ReadChar(string.Format(prompt, 1)), + Base.Nullable.ReadChar(string.Format(prompt, 2))); + } + + /// + /// Читает кортеж из четырёх значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple4(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), + Base.Nullable.ReadChar(string.Format(prompt, 1)), + Base.Nullable.ReadChar(string.Format(prompt, 2)), + Base.Nullable.ReadChar(string.Format(prompt, 3))); + } + + /// + /// Читает кортеж из пяти значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple5(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), + Base.Nullable.ReadChar(string.Format(prompt, 1)), + Base.Nullable.ReadChar(string.Format(prompt, 2)), + Base.Nullable.ReadChar(string.Format(prompt, 3)), + Base.Nullable.ReadChar(string.Format(prompt, 4))); + } + + /// + /// Читает кортеж из шести значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple6(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), + Base.Nullable.ReadChar(string.Format(prompt, 1)), + Base.Nullable.ReadChar(string.Format(prompt, 2)), + Base.Nullable.ReadChar(string.Format(prompt, 3)), + Base.Nullable.ReadChar(string.Format(prompt, 4)), + Base.Nullable.ReadChar(string.Format(prompt, 5))); + } + + /// + /// Читает кортеж из семи значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadCharTuple7(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), + Base.Nullable.ReadChar(string.Format(prompt, 1)), + Base.Nullable.ReadChar(string.Format(prompt, 2)), + Base.Nullable.ReadChar(string.Format(prompt, 3)), + Base.Nullable.ReadChar(string.Format(prompt, 4)), + Base.Nullable.ReadChar(string.Format(prompt, 5)), + Base.Nullable.ReadChar(string.Format(prompt, 6))); + } + + #endregion + + #region ReadDecimal? + + /// + /// Читает кортеж из двух значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple2(string prompt = null) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), + Base.Nullable.ReadDecimal(string.Format(prompt, 1))); + } + + /// + /// Читает кортеж из трёх значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple3(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), + Base.Nullable.ReadDecimal(string.Format(prompt, 1)), + Base.Nullable.ReadDecimal(string.Format(prompt, 2))); + } + + /// + /// Читает кортеж из четырёх значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple4(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), + Base.Nullable.ReadDecimal(string.Format(prompt, 1)), + Base.Nullable.ReadDecimal(string.Format(prompt, 2)), + Base.Nullable.ReadDecimal(string.Format(prompt, 3))); + } + + /// + /// Читает кортеж из пяти значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple5(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), + Base.Nullable.ReadDecimal(string.Format(prompt, 1)), + Base.Nullable.ReadDecimal(string.Format(prompt, 2)), + Base.Nullable.ReadDecimal(string.Format(prompt, 3)), + Base.Nullable.ReadDecimal(string.Format(prompt, 4))); + } + + /// + /// Читает кортеж из шести значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple6(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), + Base.Nullable.ReadDecimal(string.Format(prompt, 1)), + Base.Nullable.ReadDecimal(string.Format(prompt, 2)), + Base.Nullable.ReadDecimal(string.Format(prompt, 3)), + Base.Nullable.ReadDecimal(string.Format(prompt, 4)), + Base.Nullable.ReadDecimal(string.Format(prompt, 5))); + } + + /// + /// Читает кортеж из семи значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDecimalTuple7(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), + Base.Nullable.ReadDecimal(string.Format(prompt, 1)), + Base.Nullable.ReadDecimal(string.Format(prompt, 2)), + Base.Nullable.ReadDecimal(string.Format(prompt, 3)), + Base.Nullable.ReadDecimal(string.Format(prompt, 4)), + Base.Nullable.ReadDecimal(string.Format(prompt, 5)), + Base.Nullable.ReadDecimal(string.Format(prompt, 6))); + } + + #endregion + + #region ReadDouble? + + /// + /// Читает кортеж из двух значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple2(string prompt = null) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), + Base.Nullable.ReadDouble(string.Format(prompt, 1))); + } + + /// + /// Читает кортеж из трёх значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple3(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), + Base.Nullable.ReadDouble(string.Format(prompt, 1)), + Base.Nullable.ReadDouble(string.Format(prompt, 2))); + } + + /// + /// Читает кортеж из четырёх значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple4(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), + Base.Nullable.ReadDouble(string.Format(prompt, 1)), + Base.Nullable.ReadDouble(string.Format(prompt, 2)), + Base.Nullable.ReadDouble(string.Format(prompt, 3))); + } + + /// + /// Читает кортеж из пяти значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple5(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), + Base.Nullable.ReadDouble(string.Format(prompt, 1)), + Base.Nullable.ReadDouble(string.Format(prompt, 2)), + Base.Nullable.ReadDouble(string.Format(prompt, 3)), + Base.Nullable.ReadDouble(string.Format(prompt, 4))); + } + + /// + /// Читает кортеж из шести значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple6(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), + Base.Nullable.ReadDouble(string.Format(prompt, 1)), + Base.Nullable.ReadDouble(string.Format(prompt, 2)), + Base.Nullable.ReadDouble(string.Format(prompt, 3)), + Base.Nullable.ReadDouble(string.Format(prompt, 4)), + Base.Nullable.ReadDouble(string.Format(prompt, 5))); + } + + /// + /// Читает кортеж из семи значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadDoubleTuple7(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), + Base.Nullable.ReadDouble(string.Format(prompt, 1)), + Base.Nullable.ReadDouble(string.Format(prompt, 2)), + Base.Nullable.ReadDouble(string.Format(prompt, 3)), + Base.Nullable.ReadDouble(string.Format(prompt, 4)), + Base.Nullable.ReadDouble(string.Format(prompt, 5)), + Base.Nullable.ReadDouble(string.Format(prompt, 6))); + } + + #endregion + + #region ReadSingle? + + /// + /// Читает кортеж из двух значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSingleTuple2(string prompt = null) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), + Base.Nullable.ReadSingle(string.Format(prompt, 1))); + } + + /// + /// Читает кортеж из трёх значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSingleTuple3(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), + Base.Nullable.ReadSingle(string.Format(prompt, 1)), + Base.Nullable.ReadSingle(string.Format(prompt, 2))); + } + + /// + /// Читает кортеж из четырёх значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSingleTuple4(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), + Base.Nullable.ReadSingle(string.Format(prompt, 1)), + Base.Nullable.ReadSingle(string.Format(prompt, 2)), + Base.Nullable.ReadSingle(string.Format(prompt, 3))); + } + + /// + /// Читает кортеж из пяти значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSingleTuple5(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), + Base.Nullable.ReadSingle(string.Format(prompt, 1)), + Base.Nullable.ReadSingle(string.Format(prompt, 2)), + Base.Nullable.ReadSingle(string.Format(prompt, 3)), + Base.Nullable.ReadSingle(string.Format(prompt, 4))); + } + + /// + /// Читает кортеж из шести значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSingleTuple6(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), + Base.Nullable.ReadSingle(string.Format(prompt, 1)), + Base.Nullable.ReadSingle(string.Format(prompt, 2)), + Base.Nullable.ReadSingle(string.Format(prompt, 3)), + Base.Nullable.ReadSingle(string.Format(prompt, 4)), + Base.Nullable.ReadSingle(string.Format(prompt, 5))); + } + + /// + /// Читает кортеж из семи значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadSingleTuple7(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), + Base.Nullable.ReadSingle(string.Format(prompt, 1)), + Base.Nullable.ReadSingle(string.Format(prompt, 2)), + Base.Nullable.ReadSingle(string.Format(prompt, 3)), + Base.Nullable.ReadSingle(string.Format(prompt, 4)), + Base.Nullable.ReadSingle(string.Format(prompt, 5)), + Base.Nullable.ReadSingle(string.Format(prompt, 6))); + } + + #endregion + + #region ReadInt32? + + /// + /// Читает кортеж из двух значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt32Tuple2(string prompt = null) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), + Base.Nullable.ReadInt32(string.Format(prompt, 1))); + } + + /// + /// Читает кортеж из трёх значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt32Tuple3(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), + Base.Nullable.ReadInt32(string.Format(prompt, 1)), + Base.Nullable.ReadInt32(string.Format(prompt, 2))); + } + + /// + /// Читает кортеж из четырёх значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt32Tuple4(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), + Base.Nullable.ReadInt32(string.Format(prompt, 1)), + Base.Nullable.ReadInt32(string.Format(prompt, 2)), + Base.Nullable.ReadInt32(string.Format(prompt, 3))); + } + + /// + /// Читает кортеж из пяти значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt32Tuple5(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), + Base.Nullable.ReadInt32(string.Format(prompt, 1)), + Base.Nullable.ReadInt32(string.Format(prompt, 2)), + Base.Nullable.ReadInt32(string.Format(prompt, 3)), + Base.Nullable.ReadInt32(string.Format(prompt, 4))); + } + + /// + /// Читает кортеж из шести значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt32Tuple6(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), + Base.Nullable.ReadInt32(string.Format(prompt, 1)), + Base.Nullable.ReadInt32(string.Format(prompt, 2)), + Base.Nullable.ReadInt32(string.Format(prompt, 3)), + Base.Nullable.ReadInt32(string.Format(prompt, 4)), + Base.Nullable.ReadInt32(string.Format(prompt, 5))); + } + + /// + /// Читает кортеж из семи значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt32Tuple7(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), + Base.Nullable.ReadInt32(string.Format(prompt, 1)), + Base.Nullable.ReadInt32(string.Format(prompt, 2)), + Base.Nullable.ReadInt32(string.Format(prompt, 3)), + Base.Nullable.ReadInt32(string.Format(prompt, 4)), + Base.Nullable.ReadInt32(string.Format(prompt, 5)), + Base.Nullable.ReadInt32(string.Format(prompt, 6))); + } + + #endregion + + #region ReadUInt32? + + /// + /// Читает кортеж из двух значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt32Tuple2(string prompt = null) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), + Base.Nullable.ReadUInt32(string.Format(prompt, 1))); + } + + /// + /// Читает кортеж из трёх значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt32Tuple3(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), + Base.Nullable.ReadUInt32(string.Format(prompt, 1)), + Base.Nullable.ReadUInt32(string.Format(prompt, 2))); + } + + /// + /// Читает кортеж из четырёх значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt32Tuple4(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), + Base.Nullable.ReadUInt32(string.Format(prompt, 1)), + Base.Nullable.ReadUInt32(string.Format(prompt, 2)), + Base.Nullable.ReadUInt32(string.Format(prompt, 3))); + } + + /// + /// Читает кортеж из пяти значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt32Tuple5(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), + Base.Nullable.ReadUInt32(string.Format(prompt, 1)), + Base.Nullable.ReadUInt32(string.Format(prompt, 2)), + Base.Nullable.ReadUInt32(string.Format(prompt, 3)), + Base.Nullable.ReadUInt32(string.Format(prompt, 4))); + } + + /// + /// Читает кортеж из шести значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt32Tuple6(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), + Base.Nullable.ReadUInt32(string.Format(prompt, 1)), + Base.Nullable.ReadUInt32(string.Format(prompt, 2)), + Base.Nullable.ReadUInt32(string.Format(prompt, 3)), + Base.Nullable.ReadUInt32(string.Format(prompt, 4)), + Base.Nullable.ReadUInt32(string.Format(prompt, 5))); + } + + /// + /// Читает кортеж из семи значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt32Tuple7(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), + Base.Nullable.ReadUInt32(string.Format(prompt, 1)), + Base.Nullable.ReadUInt32(string.Format(prompt, 2)), + Base.Nullable.ReadUInt32(string.Format(prompt, 3)), + Base.Nullable.ReadUInt32(string.Format(prompt, 4)), + Base.Nullable.ReadUInt32(string.Format(prompt, 5)), + Base.Nullable.ReadUInt32(string.Format(prompt, 6))); + } + + #endregion + + #region ReadInt64? + + /// + /// Читает кортеж из двух значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt64Tuple2(string prompt = null) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), + Base.Nullable.ReadInt64(string.Format(prompt, 1))); + } + + /// + /// Читает кортеж из трёх значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt64Tuple3(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), + Base.Nullable.ReadInt64(string.Format(prompt, 1)), + Base.Nullable.ReadInt64(string.Format(prompt, 2))); + } + + /// + /// Читает кортеж из четырёх значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt64Tuple4(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), + Base.Nullable.ReadInt64(string.Format(prompt, 1)), + Base.Nullable.ReadInt64(string.Format(prompt, 2)), + Base.Nullable.ReadInt64(string.Format(prompt, 3))); + } + + /// + /// Читает кортеж из пяти значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt64Tuple5(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), + Base.Nullable.ReadInt64(string.Format(prompt, 1)), + Base.Nullable.ReadInt64(string.Format(prompt, 2)), + Base.Nullable.ReadInt64(string.Format(prompt, 3)), + Base.Nullable.ReadInt64(string.Format(prompt, 4))); + } + + /// + /// Читает кортеж из шести значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt64Tuple6(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), + Base.Nullable.ReadInt64(string.Format(prompt, 1)), + Base.Nullable.ReadInt64(string.Format(prompt, 2)), + Base.Nullable.ReadInt64(string.Format(prompt, 3)), + Base.Nullable.ReadInt64(string.Format(prompt, 4)), + Base.Nullable.ReadInt64(string.Format(prompt, 5))); + } + + /// + /// Читает кортеж из семи значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt64Tuple7(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), + Base.Nullable.ReadInt64(string.Format(prompt, 1)), + Base.Nullable.ReadInt64(string.Format(prompt, 2)), + Base.Nullable.ReadInt64(string.Format(prompt, 3)), + Base.Nullable.ReadInt64(string.Format(prompt, 4)), + Base.Nullable.ReadInt64(string.Format(prompt, 5)), + Base.Nullable.ReadInt64(string.Format(prompt, 6))); + } + + #endregion + + #region ReadUInt64? + + /// + /// Читает кортеж из двух значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt64Tuple2(string prompt = null) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), + Base.Nullable.ReadUInt64(string.Format(prompt, 1))); + } + + /// + /// Читает кортеж из трёх значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt64Tuple3(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), + Base.Nullable.ReadUInt64(string.Format(prompt, 1)), + Base.Nullable.ReadUInt64(string.Format(prompt, 2))); + } + + /// + /// Читает кортеж из четырёх значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt64Tuple4(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), + Base.Nullable.ReadUInt64(string.Format(prompt, 1)), + Base.Nullable.ReadUInt64(string.Format(prompt, 2)), + Base.Nullable.ReadUInt64(string.Format(prompt, 3))); + } + + /// + /// Читает кортеж из пяти значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt64Tuple5(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), + Base.Nullable.ReadUInt64(string.Format(prompt, 1)), + Base.Nullable.ReadUInt64(string.Format(prompt, 2)), + Base.Nullable.ReadUInt64(string.Format(prompt, 3)), + Base.Nullable.ReadUInt64(string.Format(prompt, 4))); + } + + /// + /// Читает кортеж из шести значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt64Tuple6(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), + Base.Nullable.ReadUInt64(string.Format(prompt, 1)), + Base.Nullable.ReadUInt64(string.Format(prompt, 2)), + Base.Nullable.ReadUInt64(string.Format(prompt, 3)), + Base.Nullable.ReadUInt64(string.Format(prompt, 4)), + Base.Nullable.ReadUInt64(string.Format(prompt, 5))); + } + + /// + /// Читает кортеж из семи значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt64Tuple7(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), + Base.Nullable.ReadUInt64(string.Format(prompt, 1)), + Base.Nullable.ReadUInt64(string.Format(prompt, 2)), + Base.Nullable.ReadUInt64(string.Format(prompt, 3)), + Base.Nullable.ReadUInt64(string.Format(prompt, 4)), + Base.Nullable.ReadUInt64(string.Format(prompt, 5)), + Base.Nullable.ReadUInt64(string.Format(prompt, 6))); + } + + #endregion + + #region ReadInt16? + + /// + /// Читает кортеж из двух значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt16Tuple2(string prompt = null) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), + Base.Nullable.ReadInt16(string.Format(prompt, 1))); + } + + /// + /// Читает кортеж из трёх значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt16Tuple3(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), + Base.Nullable.ReadInt16(string.Format(prompt, 1)), + Base.Nullable.ReadInt16(string.Format(prompt, 2))); + } + + /// + /// Читает кортеж из четырёх значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt16Tuple4(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), + Base.Nullable.ReadInt16(string.Format(prompt, 1)), + Base.Nullable.ReadInt16(string.Format(prompt, 2)), + Base.Nullable.ReadInt16(string.Format(prompt, 3))); + } + + /// + /// Читает кортеж из пяти значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt16Tuple5(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), + Base.Nullable.ReadInt16(string.Format(prompt, 1)), + Base.Nullable.ReadInt16(string.Format(prompt, 2)), + Base.Nullable.ReadInt16(string.Format(prompt, 3)), + Base.Nullable.ReadInt16(string.Format(prompt, 4))); + } + + /// + /// Читает кортеж из шести значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt16Tuple6(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), + Base.Nullable.ReadInt16(string.Format(prompt, 1)), + Base.Nullable.ReadInt16(string.Format(prompt, 2)), + Base.Nullable.ReadInt16(string.Format(prompt, 3)), + Base.Nullable.ReadInt16(string.Format(prompt, 4)), + Base.Nullable.ReadInt16(string.Format(prompt, 5))); + } + + /// + /// Читает кортеж из семи значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadInt16Tuple7(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), + Base.Nullable.ReadInt16(string.Format(prompt, 1)), + Base.Nullable.ReadInt16(string.Format(prompt, 2)), + Base.Nullable.ReadInt16(string.Format(prompt, 3)), + Base.Nullable.ReadInt16(string.Format(prompt, 4)), + Base.Nullable.ReadInt16(string.Format(prompt, 5)), + Base.Nullable.ReadInt16(string.Format(prompt, 6))); + } + + #endregion + + #region ReadUInt16? + + /// + /// Читает кортеж из двух значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt16Tuple2(string prompt = null) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), + Base.Nullable.ReadUInt16(string.Format(prompt, 1))); + } + + /// + /// Читает кортеж из трёх значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt16Tuple3(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), + Base.Nullable.ReadUInt16(string.Format(prompt, 1)), + Base.Nullable.ReadUInt16(string.Format(prompt, 2))); + } + + /// + /// Читает кортеж из четырёх значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt16Tuple4(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), + Base.Nullable.ReadUInt16(string.Format(prompt, 1)), + Base.Nullable.ReadUInt16(string.Format(prompt, 2)), + Base.Nullable.ReadUInt16(string.Format(prompt, 3))); + } + + /// + /// Читает кортеж из пяти значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt16Tuple5(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), + Base.Nullable.ReadUInt16(string.Format(prompt, 1)), + Base.Nullable.ReadUInt16(string.Format(prompt, 2)), + Base.Nullable.ReadUInt16(string.Format(prompt, 3)), + Base.Nullable.ReadUInt16(string.Format(prompt, 4))); + } + + /// + /// Читает кортеж из шести значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt16Tuple6(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), + Base.Nullable.ReadUInt16(string.Format(prompt, 1)), + Base.Nullable.ReadUInt16(string.Format(prompt, 2)), + Base.Nullable.ReadUInt16(string.Format(prompt, 3)), + Base.Nullable.ReadUInt16(string.Format(prompt, 4)), + Base.Nullable.ReadUInt16(string.Format(prompt, 5))); + } + + /// + /// Читает кортеж из семи значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadUInt16Tuple7(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), + Base.Nullable.ReadUInt16(string.Format(prompt, 1)), + Base.Nullable.ReadUInt16(string.Format(prompt, 2)), + Base.Nullable.ReadUInt16(string.Format(prompt, 3)), + Base.Nullable.ReadUInt16(string.Format(prompt, 4)), + Base.Nullable.ReadUInt16(string.Format(prompt, 5)), + Base.Nullable.ReadUInt16(string.Format(prompt, 6))); + } + + #endregion + + #region ReadBigInteger? + + /// + /// Читает кортеж из двух значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple2(string prompt = null) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 1))); + } + + /// + /// Читает кортеж из трёх значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple3(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 2))); + } + + /// + /// Читает кортеж из четырёх значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple4(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 2)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 3))); + } + + /// + /// Читает кортеж из пяти значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple5(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 2)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 3)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 4))); + } + + /// + /// Читает кортеж из шести значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple6(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 2)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 3)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 4)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 5))); + } + + /// + /// Читает кортеж из семи значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple7(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 2)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 3)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 4)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 5)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 6))); + } + + #endregion + + #endregion + + } + } +} From 7f8972811f8f91d201e9d73a238511b13f9dcc3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 17:59:41 +0700 Subject: [PATCH 050/102] closes #115 --- .../Utils/Sequence.Nullable.Input.cs | 1485 +++++++++++++++++ 1 file changed, 1485 insertions(+) create mode 100644 NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs diff --git a/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs b/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs new file mode 100644 index 0000000..bbc38cc --- /dev/null +++ b/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs @@ -0,0 +1,1485 @@ +/* + * Сделано в SharpDevelop. + * Пользователь: Миша + * Дата: 10.05.2020 + * Время: 16:28 + * + * Для изменения этого шаблона используйте Сервис | Настройка | Кодирование | Правка стандартных заголовков. + */ +using System; + +namespace ABCNET.Utils +{ + /// + /// Description of Sequence_Nullable_Input. + /// + public static partial class Sequence + { + + public static class Nullable + { + #region public + + #region Read1 + + /// + /// Читает последовательность типа Boolean? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadBoolean(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadBoolean(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Byte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadByte(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadByte(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа SByte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadSByte(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadSByte(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Char? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadChar(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadChar(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Decimal? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadDecimal(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadDecimal(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Double? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadDouble(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadDouble(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Single? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadSingle(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadSingle(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Int32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadInt32(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadInt32(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа UInt32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadUInt32(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadUInt32(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Int64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadInt64(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadInt64(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа UInt64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadUInt64(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadUInt64(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Int16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadInt16(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadInt16(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа UInt16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadUInt16(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadUInt16(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа BigInteger? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadBigInteger(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadBigInteger(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа String? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadString(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadString(string.Format(prompt, i)); + } + + #endregion + + #region Read2 + + /// + /// Читает 2 последовательности типа Boolean? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadBooleanTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Byte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadByteTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 2 последовательности типа SByte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadSByteTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Char? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadCharTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Decimal? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadDecimalTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Double? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadDoubleTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Single? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadSingleTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Int32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadInt32Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 2 последовательности типа UInt32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadUInt32Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Int64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadInt64Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 2 последовательности типа UInt64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadUInt64Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Int16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadInt16Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 2 последовательности типа UInt16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadUInt16Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 2 последовательности типа BigInteger? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadBigIntegerTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + #endregion + + #region Read3 + + /// + /// Читает 3 последовательности типа Boolean? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadBooleanTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Byte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadByteTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 3 последовательности типа SByte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadSByteTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Char? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadCharTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Decimal? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadDecimalTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Double? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadDoubleTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Single? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadSingleTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Int32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadInt32Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 3 последовательности типа UInt32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadUInt32Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Int64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadInt64Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 3 последовательности типа UInt64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadUInt64Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Int16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadInt16Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 3 последовательности типа UInt16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadUInt16Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 3 последовательности типа BigInteger? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadBigIntegerTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + #endregion + + #region Read4 + + /// + /// Читает 4 последовательности типа Boolean? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Byte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 4 последовательности типа SByte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Char? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Decimal? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Double? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Single? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Int32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 4 последовательности типа UInt32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Int64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 4 последовательности типа UInt64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Int16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 4 последовательности типа UInt16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 4 последовательности типа BigInteger? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + #endregion + + #region Read5 + + /// + /// Читает 5 последовательностей типа Boolean? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Byte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа SByte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Char? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Decimal? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Double? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Single? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Int32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа UInt32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Int64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа UInt64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Int16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа UInt16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа BigInteger? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + #endregion + + #region Read6 + + /// + /// Читает 6 последовательностей типа Boolean? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Byte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа SByte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Char? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Decimal? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Double? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Single? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Int32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа UInt32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Int64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа UInt64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Int16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа UInt16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа BigInteger? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + #endregion + + #region Read7 + + /// + /// Читает 7 последовательностей типа Boolean? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Byte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа SByte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Char? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Decimal? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Double? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Single? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Int32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа UInt32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Int64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа UInt64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Int16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа UInt16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа BigInteger? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + #endregion + + #endregion + } + } +} From 7295ef60bc74b318339f2708909cf59bd9d0c842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 18:08:44 +0700 Subject: [PATCH 051/102] Code cleanup --- NETMouse - .NET release/Utils/Sequence.Generators.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NETMouse - .NET release/Utils/Sequence.Generators.cs b/NETMouse - .NET release/Utils/Sequence.Generators.cs index c982621..5acea80 100644 --- a/NETMouse - .NET release/Utils/Sequence.Generators.cs +++ b/NETMouse - .NET release/Utils/Sequence.Generators.cs @@ -47,7 +47,7 @@ public static IEnumerable Random(int count, int low = Int32BordersHelper.Lo } /// - /// Real. + /// Double. /// /// . /// . From 805efdc020350b18980165d29af43a466e0c4e83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 18:10:05 +0700 Subject: [PATCH 052/102] Code cleanup --- .../Extensions/TupleE.Getters.cs | 156 ++++++++++-------- 1 file changed, 84 insertions(+), 72 deletions(-) diff --git a/NETMouse - .NET release/Extensions/TupleE.Getters.cs b/NETMouse - .NET release/Extensions/TupleE.Getters.cs index 912d389..d56d204 100644 --- a/NETMouse - .NET release/Extensions/TupleE.Getters.cs +++ b/NETMouse - .NET release/Extensions/TupleE.Getters.cs @@ -9,6 +9,8 @@ namespace ABCNET.Extensions public static partial class TupleE { #region public + + #region ToSequence /// /// Преобразует кортеж в последовательность. @@ -20,75 +22,80 @@ public static IEnumerable ToSequence(this Tuple tuple) yield return tuple.Item1; yield return tuple.Item2; } - - /// - /// Добавляет элемент к кортежу. - /// - /// Кортеж. - /// Элемент. - /// Кортеж. - public static Tuple AddFirst(this Tuple tuple, T2 item) - { - return new Tuple(item, tuple.Item1, tuple.Item2); - } - + /// - /// Добавляет элемент к кортежу. + /// Преобразует кортеж в последовательность. /// /// Кортеж. - /// Элемент. - /// Кортеж. - public static Tuple Add(this Tuple tuple, T2 item) + /// Последовательность. + public static IEnumerable ToSequence(this Tuple tuple) { - return new Tuple(tuple.Item1, tuple.Item2, item); + yield return tuple.Item1; + yield return tuple.Item2; + yield return tuple.Item3; } - + /// /// Преобразует кортеж в последовательность. /// /// Кортеж. /// Последовательность. - public static IEnumerable ToSequence(this Tuple tuple) + public static IEnumerable ToSequence(this Tuple tuple) { yield return tuple.Item1; yield return tuple.Item2; yield return tuple.Item3; + yield return tuple.Item4; } - + /// - /// Добавляет элемент к кортежу. + /// Преобразует кортеж в последовательность. /// /// Кортеж. - /// Элемент. - /// Кортеж. - public static Tuple AddFirst(this Tuple tuple, T item) + /// Последовательность. + public static IEnumerable ToSequence(this Tuple tuple) { - return new Tuple(item, tuple.Item1, tuple.Item2, tuple.Item3); + yield return tuple.Item1; + yield return tuple.Item2; + yield return tuple.Item3; + yield return tuple.Item4; + yield return tuple.Item5; } - + /// - /// Добавляет элемент к кортежу. + /// Преобразует кортеж в последовательность. /// /// Кортеж. - /// Элемент. - /// Кортеж. - public static Tuple Add(this Tuple tuple, T item) + /// Последовательность. + public static IEnumerable ToSequence(this Tuple tuple) { - return new Tuple(tuple.Item1, tuple.Item2, tuple.Item3, item); + yield return tuple.Item1; + yield return tuple.Item2; + yield return tuple.Item3; + yield return tuple.Item4; + yield return tuple.Item5; + yield return tuple.Item6; } - + /// /// Преобразует кортеж в последовательность. /// /// Кортеж. /// Последовательность. - public static IEnumerable ToSequence(this Tuple tuple) + public static IEnumerable ToSequence(this Tuple tuple) { yield return tuple.Item1; yield return tuple.Item2; yield return tuple.Item3; yield return tuple.Item4; + yield return tuple.Item5; + yield return tuple.Item6; + yield return tuple.Item7; } + + #endregion + + #region AddFirst /// /// Добавляет элемент к кортежу. @@ -96,9 +103,9 @@ public static IEnumerable ToSequence(this Tuple tuple) /// Кортеж. /// Элемент. /// Кортеж. - public static Tuple AddFirst(this Tuple tuple, T item) + public static Tuple AddFirst(this Tuple tuple, T2 item) { - return new Tuple(item, tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4); + return new Tuple(item, tuple.Item1, tuple.Item2); } /// @@ -107,23 +114,20 @@ public static Tuple AddFirst(this Tuple tuple, T i /// Кортеж. /// Элемент. /// Кортеж. - public static Tuple Add(this Tuple tuple, T item) + public static Tuple AddFirst(this Tuple tuple, T3 item) { - return new Tuple(tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4, item); + return new Tuple(item, tuple.Item1, tuple.Item2, tuple.Item3); } /// - /// Преобразует кортеж в последовательность. + /// Добавляет элемент к кортежу. /// /// Кортеж. - /// Последовательность. - public static IEnumerable ToSequence(this Tuple tuple) + /// Элемент. + /// Кортеж. + public static Tuple AddFirst(this Tuple tuple, T4 item) { - yield return tuple.Item1; - yield return tuple.Item2; - yield return tuple.Item3; - yield return tuple.Item4; - yield return tuple.Item5; + return new Tuple(item, tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4); } /// @@ -132,9 +136,9 @@ public static IEnumerable ToSequence(this Tuple tuple) /// Кортеж. /// Элемент. /// Кортеж. - public static Tuple AddFirst(this Tuple tuple, T item) + public static Tuple AddFirst(this Tuple tuple, T5 item) { - return new Tuple(item, tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4, tuple.Item5); + return new Tuple(item, tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4, tuple.Item5); } /// @@ -143,24 +147,24 @@ public static Tuple AddFirst(this Tuple tupl /// Кортеж. /// Элемент. /// Кортеж. - public static Tuple Add(this Tuple tuple, T item) + public static Tuple AddFirst(this Tuple tuple, T6 item) { - return new Tuple(tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4, tuple.Item5, item); + return new Tuple(item, tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4, tuple.Item5, tuple.Item6); } + + #endregion + + #region Add /// - /// Преобразует кортеж в последовательность. + /// Добавляет элемент к кортежу. /// /// Кортеж. - /// Последовательность. - public static IEnumerable ToSequence(this Tuple tuple) + /// Элемент. + /// Кортеж. + public static Tuple Add(this Tuple tuple, T2 item) { - yield return tuple.Item1; - yield return tuple.Item2; - yield return tuple.Item3; - yield return tuple.Item4; - yield return tuple.Item5; - yield return tuple.Item6; + return new Tuple(tuple.Item1, tuple.Item2, item); } /// @@ -169,9 +173,9 @@ public static IEnumerable ToSequence(this Tuple tuple) /// Кортеж. /// Элемент. /// Кортеж. - public static Tuple AddFirst(this Tuple tuple, T item) + public static Tuple Add(this Tuple tuple, T3 item) { - return new Tuple(item, tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4, tuple.Item5, tuple.Item6); + return new Tuple(tuple.Item1, tuple.Item2, tuple.Item3, item); } /// @@ -180,26 +184,34 @@ public static Tuple AddFirst(this TupleКортеж. /// Элемент. /// Кортеж. - public static Tuple Add(this Tuple tuple, T item) + public static Tuple Add(this Tuple tuple, T4 item) { - return new Tuple(tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4, tuple.Item5, tuple.Item6, item); + return new Tuple(tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4, item); } /// - /// Преобразует кортеж в последовательность. + /// Добавляет элемент к кортежу. /// /// Кортеж. - /// Последовательность. - public static IEnumerable ToSequence(this Tuple tuple) + /// Элемент. + /// Кортеж. + public static Tuple Add(this Tuple tuple, T5 item) { - yield return tuple.Item1; - yield return tuple.Item2; - yield return tuple.Item3; - yield return tuple.Item4; - yield return tuple.Item5; - yield return tuple.Item6; - yield return tuple.Item7; + return new Tuple(tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4, tuple.Item5, item); + } + + /// + /// Добавляет элемент к кортежу. + /// + /// Кортеж. + /// Элемент. + /// Кортеж. + public static Tuple Add(this Tuple tuple, T6 item) + { + return new Tuple(tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4, tuple.Item5, tuple.Item6, item); } + + #endregion #endregion public } From 0e58051777a448d419441cd5411fc8734e8091e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 18:13:56 +0700 Subject: [PATCH 053/102] ABCNET.csproj changing --- NETMouse - .NET release/ABCNET.csproj | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/NETMouse - .NET release/ABCNET.csproj b/NETMouse - .NET release/ABCNET.csproj index ef96bf3..f1fb15b 100644 --- a/NETMouse - .NET release/ABCNET.csproj +++ b/NETMouse - .NET release/ABCNET.csproj @@ -55,6 +55,9 @@ ArrayE.cs + + ArrayE.cs + BaseE.cs @@ -75,6 +78,9 @@ MatrixE.cs + + MatrixE.cs + MatrixE.cs @@ -103,6 +109,9 @@ Array.cs + + Array.cs + Base.cs @@ -113,6 +122,9 @@ Base.cs + + Sequence.cs + Matrix.cs @@ -120,10 +132,16 @@ Matrix.cs + + Matrix.cs + Sequence.cs + + Sequence.cs + Tuple.cs @@ -131,6 +149,9 @@ Tuple.cs + + Tuple.cs + From c7fa755fbb2d7bbc9287dd9267cc2bccc0bd5b26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 18:14:13 +0700 Subject: [PATCH 054/102] TestProgramm changing --- TestProgram/Program.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/TestProgram/Program.cs b/TestProgram/Program.cs index 67677d7..b185141 100644 --- a/TestProgram/Program.cs +++ b/TestProgram/Program.cs @@ -1,5 +1,6 @@ using ABCNET.Extensions; using ABCNET.Utils; +using System; namespace TestProgram { @@ -7,11 +8,13 @@ internal static class Program { private static void Main(string[] args) { - var t = Tuple.By7(1, x => x * 2); + /*var t = Tuple.By7(1, x => x * 2); t.PrintLine(); Array.Of(1, 2); "Hell".PrintLine(); - //Matr.ReadInt32(Base.ReadInt32("N:"), Base.ReadInt32("M:"), "Элемент ({0}, {1})-ый:").Count().Numerate().MaxBy(x => x.Item).Index.Println(); + //Matr.ReadInt32(Base.ReadInt32("N:"), Base.ReadInt32("M:"), "Элемент ({0}, {1})-ый:").Count().Numerate().MaxBy(x => x.Item).Index.Println();*/ + Console.WriteLine(string.Format("kjlsgri", "jg")); + Console.ReadLine(); } } } \ No newline at end of file From 7c6c15cfa9d18ebc43f389a312768277c1c91561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 18:14:30 +0700 Subject: [PATCH 055/102] ABCNET.sln changing --- ABCNET.sln | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ABCNET.sln b/ABCNET.sln index d9d63b9..82d09c2 100644 --- a/ABCNET.sln +++ b/ABCNET.sln @@ -1,6 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 +# Visual Studio 2012 +# SharpDevelop 4.4 VisualStudioVersion = 16.0.29609.76 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ABCNET", "NETMouse - .NET release\ABCNET.csproj", "{738CF8B3-CE36-4BE8-B9DA-BE4759D6CF5B}" From 9104c62d717505db52743e165570593919a0c297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:55:08 +0700 Subject: [PATCH 056/102] Code cleanup --- .../Extensions/ArrayE.Nullable.Input.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/NETMouse - .NET release/Extensions/ArrayE.Nullable.Input.cs b/NETMouse - .NET release/Extensions/ArrayE.Nullable.Input.cs index c1c4967..174932d 100644 --- a/NETMouse - .NET release/Extensions/ArrayE.Nullable.Input.cs +++ b/NETMouse - .NET release/Extensions/ArrayE.Nullable.Input.cs @@ -12,9 +12,6 @@ namespace ABCNET.Extensions /// public static partial class ArrayE { - - public static partial class Nullable - { #region public @@ -299,7 +296,6 @@ public static void Read(this BigInteger?[] array, string prompt = null) } #endregion - } - + } -} +} \ No newline at end of file From cacd144ccccc319ac3b58ccaef9bfd003fe07cc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:55:22 +0700 Subject: [PATCH 057/102] Code cleanup --- NETMouse - .NET release/Extensions/MatrixE.Generators.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Extensions/MatrixE.Generators.cs b/NETMouse - .NET release/Extensions/MatrixE.Generators.cs index 9fb3800..72dd21e 100644 --- a/NETMouse - .NET release/Extensions/MatrixE.Generators.cs +++ b/NETMouse - .NET release/Extensions/MatrixE.Generators.cs @@ -8,6 +8,7 @@ namespace ABCNET.Extensions /// public static partial class MatrixE { + #region public /// @@ -82,5 +83,6 @@ public static void Fill(this T[,] matrix, T value) } #endregion public + } } From 71e618d3efffc800fc426438f648af5e5e89d5ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:55:27 +0700 Subject: [PATCH 058/102] Code cleanup --- NETMouse - .NET release/Extensions/MatrixE.Getters.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Extensions/MatrixE.Getters.cs b/NETMouse - .NET release/Extensions/MatrixE.Getters.cs index b706bdf..119bb4f 100644 --- a/NETMouse - .NET release/Extensions/MatrixE.Getters.cs +++ b/NETMouse - .NET release/Extensions/MatrixE.Getters.cs @@ -9,6 +9,7 @@ namespace ABCNET.Extensions /// public static partial class MatrixE { + #region public /// @@ -347,5 +348,6 @@ private static TOutput[] InternalGetRow(this T[,] matrix, int index, } #endregion private + } } From 6ae0ba013e519f21d6f7095873d69362931fda14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:55:32 +0700 Subject: [PATCH 059/102] Code cleanup --- NETMouse - .NET release/Extensions/MatrixE.Output.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Extensions/MatrixE.Output.cs b/NETMouse - .NET release/Extensions/MatrixE.Output.cs index d2225aa..5226e30 100644 --- a/NETMouse - .NET release/Extensions/MatrixE.Output.cs +++ b/NETMouse - .NET release/Extensions/MatrixE.Output.cs @@ -7,6 +7,7 @@ namespace ABCNET.Extensions /// public static partial class MatrixE { + #region public /// @@ -141,5 +142,6 @@ public static partial class MatrixE } #endregion private + } } From 441f179485e6a4cd74588da21acdaeb1d95e8853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:55:37 +0700 Subject: [PATCH 060/102] Code cleanup --- NETMouse - .NET release/Extensions/SequenceE.Getters.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Extensions/SequenceE.Getters.cs b/NETMouse - .NET release/Extensions/SequenceE.Getters.cs index c7c81bd..1b6b69c 100644 --- a/NETMouse - .NET release/Extensions/SequenceE.Getters.cs +++ b/NETMouse - .NET release/Extensions/SequenceE.Getters.cs @@ -9,6 +9,7 @@ namespace ABCNET.Extensions /// public static partial class SequenceE { + #region public /// @@ -708,5 +709,6 @@ public static PartitionResult Partition(this IEnumerable collection, Pr } #endregion public + } } From 0c97b21996487c98f8b7e5e248c00fdab9d08faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:55:42 +0700 Subject: [PATCH 061/102] Code cleanup --- NETMouse - .NET release/Extensions/SequenceE.Output.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Extensions/SequenceE.Output.cs b/NETMouse - .NET release/Extensions/SequenceE.Output.cs index 0dc70e8..afe9448 100644 --- a/NETMouse - .NET release/Extensions/SequenceE.Output.cs +++ b/NETMouse - .NET release/Extensions/SequenceE.Output.cs @@ -8,6 +8,7 @@ namespace ABCNET.Extensions /// public static partial class SequenceE { + #region public /// @@ -133,5 +134,6 @@ public static IEnumerable PrintLinesBy(this IEnumerable collec } #endregion public + } } From 7de21fcbb0c2d7493fe78664195ddbf8b219bedf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:55:47 +0700 Subject: [PATCH 062/102] Code cleanup --- NETMouse - .NET release/Extensions/StringE.Output.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Extensions/StringE.Output.cs b/NETMouse - .NET release/Extensions/StringE.Output.cs index a76a8da..501c345 100644 --- a/NETMouse - .NET release/Extensions/StringE.Output.cs +++ b/NETMouse - .NET release/Extensions/StringE.Output.cs @@ -7,6 +7,7 @@ namespace ABCNET.Extensions /// public static partial class StringE { + #region public /// @@ -32,5 +33,6 @@ public static string PrintLine(this string input) } #endregion public + } } From 3c11e34a3583a3db529750b0ca6ca625d0c442b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:55:52 +0700 Subject: [PATCH 063/102] Code cleanup --- NETMouse - .NET release/Extensions/TupleE.Getters.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Extensions/TupleE.Getters.cs b/NETMouse - .NET release/Extensions/TupleE.Getters.cs index d56d204..4e00f2d 100644 --- a/NETMouse - .NET release/Extensions/TupleE.Getters.cs +++ b/NETMouse - .NET release/Extensions/TupleE.Getters.cs @@ -8,6 +8,7 @@ namespace ABCNET.Extensions /// public static partial class TupleE { + #region public #region ToSequence @@ -214,5 +215,6 @@ public static Tuple Add(th #endregion #endregion public + } } From 63fcf9ea2b6bd13bcdff659785eda71b4bb838da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:55:56 +0700 Subject: [PATCH 064/102] Code cleanup --- NETMouse - .NET release/Extensions/TupleE.Output.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Extensions/TupleE.Output.cs b/NETMouse - .NET release/Extensions/TupleE.Output.cs index a44b159..fb62c76 100644 --- a/NETMouse - .NET release/Extensions/TupleE.Output.cs +++ b/NETMouse - .NET release/Extensions/TupleE.Output.cs @@ -7,6 +7,7 @@ namespace ABCNET.Extensions /// public static partial class TupleE { + #region public /// @@ -789,5 +790,6 @@ public static Tuple PrintLinesBy(this Tuple Date: Fri, 22 May 2020 20:56:01 +0700 Subject: [PATCH 065/102] Code cleanup --- NETMouse - .NET release/Utils/Array.Generators.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Utils/Array.Generators.cs b/NETMouse - .NET release/Utils/Array.Generators.cs index f749c8c..e8d3101 100644 --- a/NETMouse - .NET release/Utils/Array.Generators.cs +++ b/NETMouse - .NET release/Utils/Array.Generators.cs @@ -7,6 +7,7 @@ namespace ABCNET.Utils /// public static partial class Array { + #region public /// @@ -126,5 +127,6 @@ public static T[] Fill(int count, T value) } #endregion public + } } From cbf1d6c41d864fdbc8e425a44f5df31a6628af6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:56:05 +0700 Subject: [PATCH 066/102] Code cleanup --- NETMouse - .NET release/Utils/Array.Input.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NETMouse - .NET release/Utils/Array.Input.cs b/NETMouse - .NET release/Utils/Array.Input.cs index 145440a..16586f9 100644 --- a/NETMouse - .NET release/Utils/Array.Input.cs +++ b/NETMouse - .NET release/Utils/Array.Input.cs @@ -1,5 +1,4 @@ -using ABCNET.Extensions; -using System; +using System; using System.Numerics; namespace ABCNET.Utils @@ -9,6 +8,7 @@ namespace ABCNET.Utils /// public static partial class Array { + #region public #region Read1 @@ -1324,5 +1324,6 @@ public static Tuple Date: Fri, 22 May 2020 20:56:10 +0700 Subject: [PATCH 067/102] Code cleanup --- NETMouse - .NET release/Utils/Array.Nullable.Input.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/NETMouse - .NET release/Utils/Array.Nullable.Input.cs b/NETMouse - .NET release/Utils/Array.Nullable.Input.cs index e9daab6..7c10f3c 100644 --- a/NETMouse - .NET release/Utils/Array.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/Array.Nullable.Input.cs @@ -1,8 +1,5 @@ using System; -using System.Collections.Generic; -using System.Linq; using System.Numerics; -using System.Text; namespace ABCNET.Utils { @@ -16,6 +13,7 @@ public static partial class Array /// public static partial class Nullable { + #region public #region Read1 @@ -1167,6 +1165,7 @@ public static partial class Nullable #endregion #endregion + } } } From 6cf020dd1a217646eea03879914c632ebcb3476e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:56:15 +0700 Subject: [PATCH 068/102] Code cleanup --- NETMouse - .NET release/Utils/Base.Input.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Utils/Base.Input.cs b/NETMouse - .NET release/Utils/Base.Input.cs index e0797cc..3c9673b 100644 --- a/NETMouse - .NET release/Utils/Base.Input.cs +++ b/NETMouse - .NET release/Utils/Base.Input.cs @@ -9,6 +9,7 @@ namespace ABCNET.Utils /// public static partial class Base { + #region public /// @@ -332,5 +333,6 @@ public static double Rand(double low, double high) } #endregion public + } } \ No newline at end of file From 5e978b6c7e4a25087aa9eb57917f81185e3e3f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:56:20 +0700 Subject: [PATCH 069/102] Code cleanup --- NETMouse - .NET release/Utils/Base.Nullable.Input.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Utils/Base.Nullable.Input.cs b/NETMouse - .NET release/Utils/Base.Nullable.Input.cs index e0801db..702e8c5 100644 --- a/NETMouse - .NET release/Utils/Base.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/Base.Nullable.Input.cs @@ -14,6 +14,7 @@ public static partial class Base /// public static partial class Nullable { + #region public /// @@ -284,6 +285,7 @@ private static string InternalReadTrimmedString(string prompt) } #endregion private + } } } From 97a6e0fd7ceae53b3e4fc4afa83c6d475f0f6eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:56:25 +0700 Subject: [PATCH 070/102] Code cleanup --- NETMouse - .NET release/Utils/Base.Other.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Utils/Base.Other.cs b/NETMouse - .NET release/Utils/Base.Other.cs index 0cf4987..44053c5 100644 --- a/NETMouse - .NET release/Utils/Base.Other.cs +++ b/NETMouse - .NET release/Utils/Base.Other.cs @@ -5,6 +5,7 @@ /// public static partial class Base { + #region public /// @@ -20,5 +21,6 @@ public static void Swap(ref T x, ref T y) } #endregion public + } } From 45ee2970f34e1745aa7d6a575dcf69306ba7661b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:56:29 +0700 Subject: [PATCH 071/102] Code cleanup --- NETMouse - .NET release/Utils/Matrix.Generators.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Utils/Matrix.Generators.cs b/NETMouse - .NET release/Utils/Matrix.Generators.cs index daf0f4f..0aa78fc 100644 --- a/NETMouse - .NET release/Utils/Matrix.Generators.cs +++ b/NETMouse - .NET release/Utils/Matrix.Generators.cs @@ -7,6 +7,7 @@ namespace ABCNET.Utils /// public static partial class Matrix { + #region public /// @@ -138,5 +139,6 @@ public static partial class Matrix } #endregion public + } } \ No newline at end of file From f2f8a89c6f5f96b89e1d8db48c6c020dca8050d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:56:34 +0700 Subject: [PATCH 072/102] Code cleanup --- NETMouse - .NET release/Utils/Matrix.Input.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NETMouse - .NET release/Utils/Matrix.Input.cs b/NETMouse - .NET release/Utils/Matrix.Input.cs index 7bf0098..129b361 100644 --- a/NETMouse - .NET release/Utils/Matrix.Input.cs +++ b/NETMouse - .NET release/Utils/Matrix.Input.cs @@ -1,5 +1,4 @@ -using ABCNET.Extensions; -using System; +using System; using System.Numerics; namespace ABCNET.Utils @@ -9,6 +8,7 @@ namespace ABCNET.Utils /// public static partial class Matrix { + #region public #region Read1 @@ -1450,5 +1450,6 @@ public static Tuple Date: Fri, 22 May 2020 20:56:39 +0700 Subject: [PATCH 073/102] Code cleanup --- NETMouse - .NET release/Utils/Matrix.Nullable.Input.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/NETMouse - .NET release/Utils/Matrix.Nullable.Input.cs b/NETMouse - .NET release/Utils/Matrix.Nullable.Input.cs index 047fee2..89f5ee1 100644 --- a/NETMouse - .NET release/Utils/Matrix.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/Matrix.Nullable.Input.cs @@ -1,8 +1,5 @@ using System; -using System.Collections.Generic; -using System.Linq; using System.Numerics; -using System.Text; namespace ABCNET.Utils { From ee6a590af2e5d8fe92e97600bb2894ffa65145ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:56:43 +0700 Subject: [PATCH 074/102] Code cleanup --- NETMouse - .NET release/Utils/Sequence.Generators.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Utils/Sequence.Generators.cs b/NETMouse - .NET release/Utils/Sequence.Generators.cs index 5acea80..763cca8 100644 --- a/NETMouse - .NET release/Utils/Sequence.Generators.cs +++ b/NETMouse - .NET release/Utils/Sequence.Generators.cs @@ -8,6 +8,7 @@ namespace ABCNET.Utils /// public static partial class Sequence { + #region public /// @@ -80,5 +81,6 @@ public static IEnumerable Fill(int count, T value) } #endregion public + } } \ No newline at end of file From 390628db851d3c88aeef2d68d92c2efea47d6d49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:56:47 +0700 Subject: [PATCH 075/102] Code cleanup --- NETMouse - .NET release/Utils/Sequence.Input.cs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/NETMouse - .NET release/Utils/Sequence.Input.cs b/NETMouse - .NET release/Utils/Sequence.Input.cs index 7532ca9..cd6c1e9 100644 --- a/NETMouse - .NET release/Utils/Sequence.Input.cs +++ b/NETMouse - .NET release/Utils/Sequence.Input.cs @@ -1,12 +1,4 @@ -/* - * Сделано в SharpDevelop. - * Пользователь: Миша - * Дата: 10.05.2020 - * Время: 16:08 - * - * Для изменения этого шаблона используйте Сервис | Настройка | Кодирование | Правка стандартных заголовков. - */ -using System; +using System; using System.Collections.Generic; using System.Numerics; @@ -17,6 +9,7 @@ namespace ABCNET.Utils /// public static partial class Sequence { + #region public #region Read1 @@ -1563,5 +1556,6 @@ public static Tuple, IEnumerable, IEnumerable Date: Fri, 22 May 2020 20:56:51 +0700 Subject: [PATCH 076/102] Code cleanup --- .../Utils/Sequence.Nullable.Input.cs | 2938 ++++++++--------- 1 file changed, 1466 insertions(+), 1472 deletions(-) diff --git a/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs b/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs index bbc38cc..b73849d 100644 --- a/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs @@ -1,12 +1,4 @@ -/* - * Сделано в SharpDevelop. - * Пользователь: Миша - * Дата: 10.05.2020 - * Время: 16:28 - * - * Для изменения этого шаблона используйте Сервис | Настройка | Кодирование | Правка стандартных заголовков. - */ -using System; +using System; namespace ABCNET.Utils { @@ -15,1471 +7,1473 @@ namespace ABCNET.Utils /// public static partial class Sequence { - - public static class Nullable - { - #region public - - #region Read1 - - /// - /// Читает последовательность типа Boolean? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static IEnumerable ReadBoolean(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - prompt = prompt ?? EmptyStringHelper.Empty; - - for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadBoolean(string.Format(prompt, i)); - } - - /// - /// Читает последовательность типа Byte? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static IEnumerable ReadByte(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - prompt = prompt ?? EmptyStringHelper.Empty; - - for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadByte(string.Format(prompt, i)); - } - - /// - /// Читает последовательность типа SByte? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static IEnumerable ReadSByte(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - prompt = prompt ?? EmptyStringHelper.Empty; - - for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadSByte(string.Format(prompt, i)); - } - - /// - /// Читает последовательность типа Char? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static IEnumerable ReadChar(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - prompt = prompt ?? EmptyStringHelper.Empty; - - for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadChar(string.Format(prompt, i)); - } - - /// - /// Читает последовательность типа Decimal? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static IEnumerable ReadDecimal(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - prompt = prompt ?? EmptyStringHelper.Empty; - - for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadDecimal(string.Format(prompt, i)); - } - - /// - /// Читает последовательность типа Double? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static IEnumerable ReadDouble(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - prompt = prompt ?? EmptyStringHelper.Empty; - - for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadDouble(string.Format(prompt, i)); - } - - /// - /// Читает последовательность типа Single? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static IEnumerable ReadSingle(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - prompt = prompt ?? EmptyStringHelper.Empty; - - for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadSingle(string.Format(prompt, i)); - } - - /// - /// Читает последовательность типа Int32? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static IEnumerable ReadInt32(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - prompt = prompt ?? EmptyStringHelper.Empty; - - for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadInt32(string.Format(prompt, i)); - } - - /// - /// Читает последовательность типа UInt32? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static IEnumerable ReadUInt32(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - prompt = prompt ?? EmptyStringHelper.Empty; - - for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadUInt32(string.Format(prompt, i)); - } - - /// - /// Читает последовательность типа Int64? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static IEnumerable ReadInt64(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - prompt = prompt ?? EmptyStringHelper.Empty; - - for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadInt64(string.Format(prompt, i)); - } - - /// - /// Читает последовательность типа UInt64? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static IEnumerable ReadUInt64(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - prompt = prompt ?? EmptyStringHelper.Empty; - - for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadUInt64(string.Format(prompt, i)); - } - - /// - /// Читает последовательность типа Int16? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static IEnumerable ReadInt16(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - prompt = prompt ?? EmptyStringHelper.Empty; - - for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadInt16(string.Format(prompt, i)); - } - - /// - /// Читает последовательность типа UInt16? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static IEnumerable ReadUInt16(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadUInt16(string.Format(prompt, i)); - } - - /// - /// Читает последовательность типа BigInteger? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static IEnumerable ReadBigInteger(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - prompt = prompt ?? EmptyStringHelper.Empty; - - for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadBigInteger(string.Format(prompt, i)); - } - - /// - /// Читает последовательность типа String? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static IEnumerable ReadString(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - prompt = prompt ?? EmptyStringHelper.Empty; - - for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadString(string.Format(prompt, i)); - } - - #endregion - - #region Read2 - - /// - /// Читает 2 последовательности типа Boolean? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable> ReadBooleanTuple2(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt)); - } - - /// - /// Читает 2 последовательности типа Byte? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable> ReadByteTuple2(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt)); - } - - /// - /// Читает 2 последовательности типа SByte? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable> ReadSByteTuple2(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt)); - } - - /// - /// Читает 2 последовательности типа Char? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable> ReadCharTuple2(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt)); - } - - /// - /// Читает 2 последовательности типа Decimal? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable> ReadDecimalTuple2(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt)); - } - - /// - /// Читает 2 последовательности типа Double? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable> ReadDoubleTuple2(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt)); - } - - /// - /// Читает 2 последовательности типа Single? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable> ReadSingleTuple2(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt)); - } - - /// - /// Читает 2 последовательности типа Int32? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable> ReadInt32Tuple2(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt)); - } - - /// - /// Читает 2 последовательности типа UInt32? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable> ReadUInt32Tuple2(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt)); - } - - /// - /// Читает 2 последовательности типа Int64? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable> ReadInt64Tuple2(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt)); - } - - /// - /// Читает 2 последовательности типа UInt64? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable> ReadUInt64Tuple2(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt)); - } - - /// - /// Читает 2 последовательности типа Int16? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable> ReadInt16Tuple2(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt)); - } - - /// - /// Читает 2 последовательности типа UInt16? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable> ReadUInt16Tuple2(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt)); - } - - /// - /// Читает 2 последовательности типа BigInteger? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable> ReadBigIntegerTuple2(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); - } - - #endregion - - #region Read3 - - /// - /// Читает 3 последовательности типа Boolean? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable> ReadBooleanTuple3(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); - } - - /// - /// Читает 3 последовательности типа Byte? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable> ReadByteTuple3(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); - } - - /// - /// Читает 3 последовательности типа SByte? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable> ReadSByteTuple3(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); - } - - /// - /// Читает 3 последовательности типа Char? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable> ReadCharTuple3(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); - } - - /// - /// Читает 3 последовательности типа Decimal? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable> ReadDecimalTuple3(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); - } - - /// - /// Читает 3 последовательности типа Double? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable> ReadDoubleTuple3(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); - } - - /// - /// Читает 3 последовательности типа Single? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable> ReadSingleTuple3(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); - } - - /// - /// Читает 3 последовательности типа Int32? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable> ReadInt32Tuple3(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); - } - - /// - /// Читает 3 последовательности типа UInt32? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable> ReadUInt32Tuple3(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); - } - - /// - /// Читает 3 последовательности типа Int64? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable> ReadInt64Tuple3(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); - } - - /// - /// Читает 3 последовательности типа UInt64? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable> ReadUInt64Tuple3(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); - } - - /// - /// Читает 3 последовательности типа Int16? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable> ReadInt16Tuple3(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); - } - - /// - /// Читает 3 последовательности типа UInt16? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable> ReadUInt16Tuple3(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); - } - - /// - /// Читает 3 последовательности типа BigInteger? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable> ReadBigIntegerTuple3(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); - } - - #endregion - - #region Read4 - - /// - /// Читает 4 последовательности типа Boolean? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple4(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); - } - - /// - /// Читает 4 последовательности типа Byte? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple4(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); - } - - /// - /// Читает 4 последовательности типа SByte? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple4(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); - } - - /// - /// Читает 4 последовательности типа Char? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple4(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); - } - - /// - /// Читает 4 последовательности типа Decimal? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple4(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); - } - - /// - /// Читает 4 последовательности типа Double? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple4(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); - } - - /// - /// Читает 4 последовательности типа Single? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple4(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); - } - - /// - /// Читает 4 последовательности типа Int32? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple4(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); - } - - /// - /// Читает 4 последовательности типа UInt32? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple4(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); - } - - /// - /// Читает 4 последовательности типа Int64? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple4(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); - } - - /// - /// Читает 4 последовательности типа UInt64? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple4(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); - } - - /// - /// Читает 4 последовательности типа Int16? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple4(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); - } - - /// - /// Читает 4 последовательности типа UInt16? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple4(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); - } - - /// - /// Читает 4 последовательности типа BigInteger? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple4(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); - } - - #endregion - - #region Read5 - - /// - /// Читает 5 последовательностей типа Boolean? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple5(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); - } - - /// - /// Читает 5 последовательностей типа Byte? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple5(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); - } - - /// - /// Читает 5 последовательностей типа SByte? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple5(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); - } - - /// - /// Читает 5 последовательностей типа Char? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple5(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); - } - - /// - /// Читает 5 последовательностей типа Decimal? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple5(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); - } - - /// - /// Читает 5 последовательностей типа Double? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple5(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); - } - - /// - /// Читает 5 последовательностей типа Single? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple5(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); - } - - /// - /// Читает 5 последовательностей типа Int32? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple5(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); - } - - /// - /// Читает 5 последовательностей типа UInt32? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple5(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); - } - - /// - /// Читает 5 последовательностей типа Int64? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple5(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); - } - - /// - /// Читает 5 последовательностей типа UInt64? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple5(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); - } - - /// - /// Читает 5 последовательностей типа Int16? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple5(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); - } - - /// - /// Читает 5 последовательностей типа UInt16? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple5(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); - } - - /// - /// Читает 5 последовательностей типа BigInteger? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple5(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); - } - - #endregion - - #region Read6 - - /// - /// Читает 6 последовательностей типа Boolean? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple6(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); - } - - /// - /// Читает 6 последовательностей типа Byte? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple6(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); - } - - /// - /// Читает 6 последовательностей типа SByte? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple6(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); - } - - /// - /// Читает 6 последовательностей типа Char? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple6(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); - } - - /// - /// Читает 6 последовательностей типа Decimal? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple6(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); - } - - /// - /// Читает 6 последовательностей типа Double? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple6(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); - } - - /// - /// Читает 6 последовательностей типа Single? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple6(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); - } - - /// - /// Читает 6 последовательностей типа Int32? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple6(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); - } - - /// - /// Читает 6 последовательностей типа UInt32? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple6(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); - } - - /// - /// Читает 6 последовательностей типа Int64? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple6(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); - } - - /// - /// Читает 6 последовательностей типа UInt64? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple6(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); - } - - /// - /// Читает 6 последовательностей типа Int16? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple6(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); - } - - /// - /// Читает 6 последовательностей типа UInt16? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple6(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); - } - - /// - /// Читает 6 последовательностей типа BigInteger? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple6(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); - } - - #endregion - - #region Read7 - - /// - /// Читает 7 последовательностей типа Boolean? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple7(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); - } - - /// - /// Читает 7 последовательностей типа Byte? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple7(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); - } - - /// - /// Читает 7 последовательностей типа SByte? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple7(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); - } - - /// - /// Читает 7 последовательностей типа Char? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple7(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); - } - - /// - /// Читает 7 последовательностей типа Decimal? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple7(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); - } - - /// - /// Читает 7 последовательностей типа Double? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple7(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); - } - - /// - /// Читает 7 последовательностей типа Single? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple7(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); - } - - /// - /// Читает 7 последовательностей типа Int32? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple7(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); - } - - /// - /// Читает 7 последовательностей типа UInt32? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple7(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); - } - - /// - /// Читает 7 последовательностей типа Int64? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple7(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); - } - - /// - /// Читает 7 последовательностей типа UInt64? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple7(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); - } - - /// - /// Читает 7 последовательностей типа Int16? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple7(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); - } - - /// - /// Читает 7 последовательностей типа UInt16? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple7(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); - } - - /// - /// Читает 7 последовательностей типа BigInteger? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple7(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); + public static class Nullable + { + + #region public + + #region Read1 + + /// + /// Читает последовательность типа Boolean? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadBoolean(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadBoolean(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Byte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadByte(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadByte(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа SByte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadSByte(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadSByte(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Char? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadChar(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadChar(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Decimal? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadDecimal(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadDecimal(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Double? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadDouble(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadDouble(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Single? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadSingle(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadSingle(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Int32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadInt32(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadInt32(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа UInt32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadUInt32(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadUInt32(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Int64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadInt64(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadInt64(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа UInt64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadUInt64(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadUInt64(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа Int16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadInt16(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadInt16(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа UInt16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadUInt16(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadUInt16(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа BigInteger? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadBigInteger(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadBigInteger(string.Format(prompt, i)); + } + + /// + /// Читает последовательность типа String? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static IEnumerable ReadString(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + prompt = prompt ?? EmptyStringHelper.Empty; + + for (int i = 0; i < count; i++) + yield return Base.Nullable.ReadString(string.Format(prompt, i)); + } + + #endregion + + #region Read2 + + /// + /// Читает 2 последовательности типа Boolean? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadBooleanTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Byte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadByteTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 2 последовательности типа SByte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadSByteTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Char? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadCharTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Decimal? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadDecimalTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Double? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadDoubleTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Single? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadSingleTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Int32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadInt32Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 2 последовательности типа UInt32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadUInt32Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Int64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadInt64Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 2 последовательности типа UInt64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadUInt64Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 2 последовательности типа Int16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadInt16Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 2 последовательности типа UInt16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadUInt16Tuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 2 последовательности типа BigInteger? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable> ReadBigIntegerTuple2(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + #endregion + + #region Read3 + + /// + /// Читает 3 последовательности типа Boolean? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadBooleanTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Byte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadByteTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 3 последовательности типа SByte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadSByteTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Char? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadCharTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Decimal? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadDecimalTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Double? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadDoubleTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Single? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadSingleTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Int32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadInt32Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 3 последовательности типа UInt32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadUInt32Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Int64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadInt64Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 3 последовательности типа UInt64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadUInt64Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 3 последовательности типа Int16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadInt16Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 3 последовательности типа UInt16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadUInt16Tuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 3 последовательности типа BigInteger? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable> ReadBigIntegerTuple3(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + #endregion + + #region Read4 + + /// + /// Читает 4 последовательности типа Boolean? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Byte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 4 последовательности типа SByte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Char? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Decimal? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Double? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Single? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Int32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 4 последовательности типа UInt32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Int64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 4 последовательности типа UInt64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 4 последовательности типа Int16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 4 последовательности типа UInt16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 4 последовательности типа BigInteger? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple4(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + #endregion + + #region Read5 + + /// + /// Читает 5 последовательностей типа Boolean? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Byte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа SByte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Char? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Decimal? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Double? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Single? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Int32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа UInt32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Int64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа UInt64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа Int16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа UInt16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 5 последовательностей типа BigInteger? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple5(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + #endregion + + #region Read6 + + /// + /// Читает 6 последовательностей типа Boolean? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Byte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа SByte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Char? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Decimal? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Double? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Single? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Int32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа UInt32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Int64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа UInt64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа Int16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа UInt16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 6 последовательностей типа BigInteger? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple6(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + #endregion + + #region Read7 + + /// + /// Читает 7 последовательностей типа Boolean? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Byte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа SByte? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Char? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Decimal? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Double? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Single? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Int32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа UInt32? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Int64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа UInt64? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа Int16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа UInt16? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + } + + /// + /// Читает 7 последовательностей типа BigInteger? с клавиатуры. + /// + /// Количество элементов. + /// Приглашение к вводу. + /// Последовательность. + public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple7(int count, string prompt = EmptyStringHelper.Empty) + { + if (count < 0) + throw new ArgumentOutOfRangeException(nameof(count)); + + return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + } + + #endregion + + #endregion - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - - #endregion - - #endregion - } } } From 1d52c9ff4b6393de1ae3271e62a4b693132dd19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:56:55 +0700 Subject: [PATCH 077/102] Code cleanup --- NETMouse - .NET release/Utils/Tuple.Generators.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NETMouse - .NET release/Utils/Tuple.Generators.cs b/NETMouse - .NET release/Utils/Tuple.Generators.cs index 163f09f..b51b660 100644 --- a/NETMouse - .NET release/Utils/Tuple.Generators.cs +++ b/NETMouse - .NET release/Utils/Tuple.Generators.cs @@ -7,6 +7,7 @@ namespace ABCNET.Utils /// public static partial class Tuple { + #region public #region Of @@ -519,5 +520,6 @@ public static Tuple Fill7(T value) #endregion #endregion public + } } \ No newline at end of file From ef87ab2f228018ddf554225773c1ce90b7b456aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 20:56:58 +0700 Subject: [PATCH 078/102] Code cleanup --- NETMouse - .NET release/Utils/Tuple.Input.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NETMouse - .NET release/Utils/Tuple.Input.cs b/NETMouse - .NET release/Utils/Tuple.Input.cs index 45f5334..b646d7a 100644 --- a/NETMouse - .NET release/Utils/Tuple.Input.cs +++ b/NETMouse - .NET release/Utils/Tuple.Input.cs @@ -1,5 +1,4 @@ -using ABCNET.Extensions; -using System; +using System; using System.Numerics; namespace ABCNET.Utils @@ -9,6 +8,7 @@ namespace ABCNET.Utils /// public static partial class Tuple { + #region public #region ReadBoolean From 60fe147caba01e53ea856413f428688e87f1155e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Fri, 22 May 2020 21:05:42 +0700 Subject: [PATCH 079/102] closes #115 --- .../Utils/Sequence.Input.cs | 119 ++++++++++++------ .../Utils/Sequence.Nullable.Input.cs | 87 ++++++++----- 2 files changed, 139 insertions(+), 67 deletions(-) diff --git a/NETMouse - .NET release/Utils/Sequence.Input.cs b/NETMouse - .NET release/Utils/Sequence.Input.cs index cd6c1e9..049db0b 100644 --- a/NETMouse - .NET release/Utils/Sequence.Input.cs +++ b/NETMouse - .NET release/Utils/Sequence.Input.cs @@ -10,11 +10,11 @@ namespace ABCNET.Utils public static partial class Sequence { - #region public - - #region Read1 - - /// + #region public + + #region Read1 + + /// /// Читает последовательность типа Boolean с клавиатуры. /// /// Количество элементов. @@ -27,10 +27,13 @@ public static IEnumerable ReadBoolean(int count, string prompt = EmptyStri prompt = prompt ?? EmptyStringHelper.Empty; + bool[] result = new bool[count]; for (int i = 0; i < count; i++) - yield return Base.ReadBoolean(string.Format(prompt, i)); + result[i] = Base.ReadBoolean(string.Format(prompt, i)); + + return result; } - + /// /// Читает последовательность типа Byte с клавиатуры. /// @@ -44,10 +47,13 @@ public static IEnumerable ReadByte(int count, string prompt = EmptyStringH prompt = prompt ?? EmptyStringHelper.Empty; + byte[] result = new byte[count]; for (int i = 0; i < count; i++) - yield return Base.ReadByte(string.Format(prompt, i)); + result[i] = Base.ReadByte(string.Format(prompt, i)); + + return result; } - + /// /// Читает последовательность типа SByte с клавиатуры. /// @@ -61,10 +67,13 @@ public static IEnumerable ReadSByte(int count, string prompt = EmptyStrin prompt = prompt ?? EmptyStringHelper.Empty; + sbyte[] result = new sbyte[count]; for (int i = 0; i < count; i++) - yield return Base.ReadSByte(string.Format(prompt, i)); + result[i] = Base.ReadSByte(string.Format(prompt, i)); + + return result; } - + /// /// Читает последовательность типа Char с клавиатуры. /// @@ -78,10 +87,13 @@ public static IEnumerable ReadChar(int count, string prompt = EmptyStringH prompt = prompt ?? EmptyStringHelper.Empty; + char[] result = new char[count]; for (int i = 0; i < count; i++) - yield return Base.ReadChar(string.Format(prompt, i)); + result[i] = Base.ReadChar(string.Format(prompt, i)); + + return result; } - + /// /// Читает последовательность типа Decimal с клавиатуры. /// @@ -95,10 +107,13 @@ public static IEnumerable ReadDecimal(int count, string prompt = EmptyS prompt = prompt ?? EmptyStringHelper.Empty; + decimal[] result = new decimal[count]; for (int i = 0; i < count; i++) - yield return Base.ReadDecimal(string.Format(prompt, i)); + result[i] = Base.ReadDecimal(string.Format(prompt, i)); + + return result; } - + /// /// Читает последовательность типа Double с клавиатуры. /// @@ -112,10 +127,13 @@ public static IEnumerable ReadDouble(int count, string prompt = EmptyStr prompt = prompt ?? EmptyStringHelper.Empty; + double[] result = new double[count]; for (int i = 0; i < count; i++) - yield return Base.ReadDouble(string.Format(prompt, i)); + result[i] = Base.ReadDouble(string.Format(prompt, i)); + + return result; } - + /// /// Читает последовательность типа Single с клавиатуры. /// @@ -129,10 +147,13 @@ public static IEnumerable ReadSingle(int count, string prompt = EmptyStri prompt = prompt ?? EmptyStringHelper.Empty; + float[] result = new float[count]; for (int i = 0; i < count; i++) - yield return Base.ReadSingle(string.Format(prompt, i)); + result[i] = Base.ReadSingle(string.Format(prompt, i)); + + return result; } - + /// /// Читает последовательность типа Int32 с клавиатуры. /// @@ -146,10 +167,13 @@ public static IEnumerable ReadInt32(int count, string prompt = EmptyStringH prompt = prompt ?? EmptyStringHelper.Empty; + int[] result = new int[count]; for (int i = 0; i < count; i++) - yield return Base.ReadInt32(string.Format(prompt, i)); + result[i] = Base.ReadInt32(string.Format(prompt, i)); + + return result; } - + /// /// Читает последовательность типа UInt32 с клавиатуры. /// @@ -163,10 +187,13 @@ public static IEnumerable ReadUInt32(int count, string prompt = EmptyStrin prompt = prompt ?? EmptyStringHelper.Empty; + uint[] result = new uint[count]; for (int i = 0; i < count; i++) - yield return Base.ReadUInt32(string.Format(prompt, i)); + result[i] = Base.ReadUInt32(string.Format(prompt, i)); + + return result; } - + /// /// Читает последовательность типа Int64 с клавиатуры. /// @@ -180,10 +207,13 @@ public static IEnumerable ReadInt64(int count, string prompt = EmptyString prompt = prompt ?? EmptyStringHelper.Empty; + long[] result = new long[count]; for (int i = 0; i < count; i++) - yield return Base.ReadInt64(string.Format(prompt, i)); + result[i] = Base.ReadInt64(string.Format(prompt, i)); + + return result; } - + /// /// Читает последовательность типа UInt64 с клавиатуры. /// @@ -197,10 +227,13 @@ public static IEnumerable ReadUInt64(int count, string prompt = EmptyStri prompt = prompt ?? EmptyStringHelper.Empty; + ulong[] result = new ulong[count]; for (int i = 0; i < count; i++) - yield return Base.ReadUInt64(string.Format(prompt, i)); + result[i] = Base.ReadUInt64(string.Format(prompt, i)); + + return result; } - + /// /// Читает последовательность типа Int16 с клавиатуры. /// @@ -214,10 +247,13 @@ public static IEnumerable ReadInt16(int count, string prompt = EmptyStrin prompt = prompt ?? EmptyStringHelper.Empty; + short[] result = new short[count]; for (int i = 0; i < count; i++) - yield return Base.ReadInt16(string.Format(prompt, i)); + result[i] = Base.ReadInt16(string.Format(prompt, i)); + + return result; } - + /// /// Читает последовательность типа UInt16 с клавиатуры. /// @@ -231,10 +267,13 @@ public static IEnumerable ReadUInt16(int count, string prompt = EmptyStr prompt = prompt ?? EmptyStringHelper.Empty; + ushort[] result = new ushort[count]; for (int i = 0; i < count; i++) - yield return Base.ReadUInt16(string.Format(prompt, i)); + result[i] = Base.ReadUInt16(string.Format(prompt, i)); + + return result; } - + /// /// Читает последовательность типа BigInteger с клавиатуры. /// @@ -248,10 +287,13 @@ public static IEnumerable ReadBigInteger(int count, string prompt = prompt = prompt ?? EmptyStringHelper.Empty; + BigInteger[] result = new BigInteger[count]; for (int i = 0; i < count; i++) - yield return Base.ReadBigInteger(string.Format(prompt, i)); + result[i] = Base.ReadBigInteger(string.Format(prompt, i)); + + return result; } - + /// /// Читает последовательность типа String с клавиатуры. /// @@ -265,14 +307,17 @@ public static IEnumerable ReadString(int count, string prompt = EmptyStr prompt = prompt ?? EmptyStringHelper.Empty; + string[] result = new string[count]; for (int i = 0; i < count; i++) - yield return Base.ReadString(string.Format(prompt, i)); + result[i] = Base.ReadString(string.Format(prompt, i)); + + return result; } - + #endregion - + #region Read2 - + /// /// Читает 2 последовательности типа Boolean с клавиатуры. /// diff --git a/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs b/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs index b73849d..bfca47a 100644 --- a/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs @@ -1,4 +1,6 @@ using System; +using System.Collections.Generic; +using System.Numerics; namespace ABCNET.Utils { @@ -28,8 +30,11 @@ public static class Nullable prompt = prompt ?? EmptyStringHelper.Empty; + bool?[] result = new bool?[count]; for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadBoolean(string.Format(prompt, i)); + result[i] = Base.Nullable.ReadBoolean(string.Format(prompt, i)); + + return result; } /// @@ -45,8 +50,11 @@ public static class Nullable prompt = prompt ?? EmptyStringHelper.Empty; + byte?[] result = new byte?[count]; for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadByte(string.Format(prompt, i)); + result[i] = Base.Nullable.ReadByte(string.Format(prompt, i)); + + return result; } /// @@ -62,8 +70,11 @@ public static class Nullable prompt = prompt ?? EmptyStringHelper.Empty; + sbyte?[] result = new sbyte?[count]; for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadSByte(string.Format(prompt, i)); + result[i] = Base.Nullable.ReadSByte(string.Format(prompt, i)); + + return result; } /// @@ -79,8 +90,11 @@ public static class Nullable prompt = prompt ?? EmptyStringHelper.Empty; + char?[] result = new char?[count]; for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadChar(string.Format(prompt, i)); + result[i] = Base.Nullable.ReadChar(string.Format(prompt, i)); + + return result; } /// @@ -96,8 +110,11 @@ public static class Nullable prompt = prompt ?? EmptyStringHelper.Empty; + decimal?[] result = new decimal?[count]; for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadDecimal(string.Format(prompt, i)); + result[i] = Base.Nullable.ReadDecimal(string.Format(prompt, i)); + + return result; } /// @@ -113,8 +130,11 @@ public static class Nullable prompt = prompt ?? EmptyStringHelper.Empty; + double?[] result = new double?[count]; for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadDouble(string.Format(prompt, i)); + result[i] = Base.Nullable.ReadDouble(string.Format(prompt, i)); + + return result; } /// @@ -130,8 +150,11 @@ public static class Nullable prompt = prompt ?? EmptyStringHelper.Empty; + float?[] result = new float?[count]; for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadSingle(string.Format(prompt, i)); + result[i] = Base.Nullable.ReadSingle(string.Format(prompt, i)); + + return result; } /// @@ -147,8 +170,11 @@ public static class Nullable prompt = prompt ?? EmptyStringHelper.Empty; + int?[] result = new int?[count]; for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadInt32(string.Format(prompt, i)); + result[i] = Base.Nullable.ReadInt32(string.Format(prompt, i)); + + return result; } /// @@ -164,8 +190,11 @@ public static class Nullable prompt = prompt ?? EmptyStringHelper.Empty; + uint?[] result = new uint?[count]; for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadUInt32(string.Format(prompt, i)); + result[i] = Base.Nullable.ReadUInt32(string.Format(prompt, i)); + + return result; } /// @@ -181,8 +210,11 @@ public static class Nullable prompt = prompt ?? EmptyStringHelper.Empty; + long?[] result = new long?[count]; for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadInt64(string.Format(prompt, i)); + result[i] = Base.Nullable.ReadInt64(string.Format(prompt, i)); + + return result; } /// @@ -198,8 +230,11 @@ public static class Nullable prompt = prompt ?? EmptyStringHelper.Empty; + ulong?[] result = new ulong?[count]; for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadUInt64(string.Format(prompt, i)); + result[i] = Base.Nullable.ReadUInt64(string.Format(prompt, i)); + + return result; } /// @@ -215,8 +250,11 @@ public static class Nullable prompt = prompt ?? EmptyStringHelper.Empty; + short?[] result = new short?[count]; for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadInt16(string.Format(prompt, i)); + result[i] = Base.Nullable.ReadInt16(string.Format(prompt, i)); + + return result; } /// @@ -232,8 +270,11 @@ public static class Nullable prompt = prompt ?? EmptyStringHelper.Empty; + ushort?[] result = new ushort?[count]; for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadUInt16(string.Format(prompt, i)); + result[i] = Base.Nullable.ReadUInt16(string.Format(prompt, i)); + + return result; } /// @@ -249,25 +290,11 @@ public static class Nullable prompt = prompt ?? EmptyStringHelper.Empty; + BigInteger?[] result = new BigInteger?[count]; for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadBigInteger(string.Format(prompt, i)); - } + result[i] = Base.Nullable.ReadBigInteger(string.Format(prompt, i)); - /// - /// Читает последовательность типа String? с клавиатуры. - /// - /// Количество элементов. - /// Приглашение к вводу. - /// Последовательность. - public static IEnumerable ReadString(int count, string prompt = EmptyStringHelper.Empty) - { - if (count < 0) - throw new ArgumentOutOfRangeException(nameof(count)); - - prompt = prompt ?? EmptyStringHelper.Empty; - - for (int i = 0; i < count; i++) - yield return Base.Nullable.ReadString(string.Format(prompt, i)); + return result; } #endregion From 0d8545e148616fe74099dfdacbad76a868a4192c Mon Sep 17 00:00:00 2001 From: Alvin Seville Date: Thu, 28 May 2020 21:12:56 +1000 Subject: [PATCH 080/102] closes #27 - code cleanup --- .../Utils/Array.Generators.cs | 2 - NETMouse - .NET release/Utils/Array.Input.cs | 390 ++-- .../Utils/Array.Nullable.Input.cs | 1810 ++++++++--------- 3 files changed, 1056 insertions(+), 1146 deletions(-) diff --git a/NETMouse - .NET release/Utils/Array.Generators.cs b/NETMouse - .NET release/Utils/Array.Generators.cs index e8d3101..f749c8c 100644 --- a/NETMouse - .NET release/Utils/Array.Generators.cs +++ b/NETMouse - .NET release/Utils/Array.Generators.cs @@ -7,7 +7,6 @@ namespace ABCNET.Utils /// public static partial class Array { - #region public /// @@ -127,6 +126,5 @@ public static T[] Fill(int count, T value) } #endregion public - } } diff --git a/NETMouse - .NET release/Utils/Array.Input.cs b/NETMouse - .NET release/Utils/Array.Input.cs index 16586f9..1e2c9b6 100644 --- a/NETMouse - .NET release/Utils/Array.Input.cs +++ b/NETMouse - .NET release/Utils/Array.Input.cs @@ -8,13 +8,12 @@ namespace ABCNET.Utils /// public static partial class Array { - #region public - - #region Read1 + + #region one-array /// - /// Читает массив значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Boolean. /// /// Количество элементов. /// Приглашение к вводу. @@ -23,7 +22,7 @@ public static bool[] ReadBoolean(int count, string prompt = EmptyStringHelper.Em { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; bool[] array = new bool[count]; @@ -34,7 +33,7 @@ public static bool[] ReadBoolean(int count, string prompt = EmptyStringHelper.Em } /// - /// Читает массив значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Byte. /// /// Количество элементов. /// Приглашение к вводу. @@ -43,7 +42,7 @@ public static byte[] ReadByte(int count, string prompt = EmptyStringHelper.Empty { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; byte[] array = new byte[count]; @@ -54,7 +53,7 @@ public static byte[] ReadByte(int count, string prompt = EmptyStringHelper.Empty } /// - /// Читает массив значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа SByte. /// /// Количество элементов. /// Приглашение к вводу. @@ -63,7 +62,7 @@ public static sbyte[] ReadSByte(int count, string prompt = EmptyStringHelper.Emp { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; sbyte[] array = new sbyte[count]; @@ -74,7 +73,7 @@ public static sbyte[] ReadSByte(int count, string prompt = EmptyStringHelper.Emp } /// - /// Читает массив значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Char. /// /// Количество элементов. /// Приглашение к вводу. @@ -83,7 +82,7 @@ public static char[] ReadChar(int count, string prompt = EmptyStringHelper.Empty { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; char[] array = new char[count]; @@ -94,7 +93,7 @@ public static char[] ReadChar(int count, string prompt = EmptyStringHelper.Empty } /// - /// Читает массив значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Decimal. /// /// Количество элементов. /// Приглашение к вводу. @@ -103,7 +102,7 @@ public static decimal[] ReadDecimal(int count, string prompt = EmptyStringHelper { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; decimal[] array = new decimal[count]; @@ -114,7 +113,7 @@ public static decimal[] ReadDecimal(int count, string prompt = EmptyStringHelper } /// - /// Читает массив значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Double. /// /// Количество элементов. /// Приглашение к вводу. @@ -123,7 +122,7 @@ public static double[] ReadDouble(int count, string prompt = EmptyStringHelper.E { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; double[] array = new double[count]; @@ -134,7 +133,7 @@ public static double[] ReadDouble(int count, string prompt = EmptyStringHelper.E } /// - /// Читает массив значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Single. /// /// Количество элементов. /// Приглашение к вводу. @@ -143,7 +142,7 @@ public static float[] ReadSingle(int count, string prompt = EmptyStringHelper.Em { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; float[] array = new float[count]; @@ -154,7 +153,7 @@ public static float[] ReadSingle(int count, string prompt = EmptyStringHelper.Em } /// - /// Читает массив значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int32. /// /// Количество элементов. /// Приглашение к вводу. @@ -163,7 +162,7 @@ public static int[] ReadInt32(int count, string prompt = EmptyStringHelper.Empty { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; int[] array = new int[count]; @@ -174,7 +173,7 @@ public static int[] ReadInt32(int count, string prompt = EmptyStringHelper.Empty } /// - /// Читает массив значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt32. /// /// Количество элементов. /// Приглашение к вводу. @@ -183,7 +182,7 @@ public static uint[] ReadUInt32(int count, string prompt = EmptyStringHelper.Emp { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; uint[] array = new uint[count]; @@ -194,7 +193,7 @@ public static uint[] ReadUInt32(int count, string prompt = EmptyStringHelper.Emp } /// - /// Читает массив значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int64. /// /// Количество элементов. /// Приглашение к вводу. @@ -203,7 +202,7 @@ public static long[] ReadInt64(int count, string prompt = EmptyStringHelper.Empt { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; long[] array = new long[count]; @@ -214,7 +213,7 @@ public static long[] ReadInt64(int count, string prompt = EmptyStringHelper.Empt } /// - /// Читает массив значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt64. /// /// Количество элементов. /// Приглашение к вводу. @@ -223,7 +222,7 @@ public static ulong[] ReadUInt64(int count, string prompt = EmptyStringHelper.Em { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; ulong[] array = new ulong[count]; @@ -234,7 +233,7 @@ public static ulong[] ReadUInt64(int count, string prompt = EmptyStringHelper.Em } /// - /// Читает массив значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int16. /// /// Количество элементов. /// Приглашение к вводу. @@ -243,7 +242,7 @@ public static short[] ReadInt16(int count, string prompt = EmptyStringHelper.Emp { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; short[] array = new short[count]; @@ -254,7 +253,7 @@ public static short[] ReadInt16(int count, string prompt = EmptyStringHelper.Emp } /// - /// Читает массив значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt16. /// /// Количество элементов. /// Приглашение к вводу. @@ -263,7 +262,7 @@ public static ushort[] ReadUInt16(int count, string prompt = EmptyStringHelper.E { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; ushort[] array = new ushort[count]; @@ -274,7 +273,7 @@ public static ushort[] ReadUInt16(int count, string prompt = EmptyStringHelper.E } /// - /// Читает массив значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа String. /// /// Количество элементов. /// Приглашение к вводу. @@ -283,7 +282,7 @@ public static string[] ReadString(int count, string prompt = EmptyStringHelper.E { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; string[] array = new string[count]; @@ -294,7 +293,7 @@ public static string[] ReadString(int count, string prompt = EmptyStringHelper.E } /// - /// Читает массив значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа BigInteger. /// /// Количество элементов. /// Приглашение к вводу. @@ -303,7 +302,7 @@ public static BigInteger[] ReadBigInteger(int count, string prompt = EmptyString { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; BigInteger[] array = new BigInteger[count]; @@ -312,13 +311,13 @@ public static BigInteger[] ReadBigInteger(int count, string prompt = EmptyString return array; } - - #endregion - - #region Read2 + + #endregion one-array + + #region two-arrays /// - /// Читает 2 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Boolean. /// /// Размер массива. /// Кортеж. @@ -327,9 +326,8 @@ public static Tuple ReadBooleanTuple2(int count) return Tuple.Of(ReadBoolean(count), ReadBoolean(count)); } - /// - /// Читает 2 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Byte. /// /// Размер массива. /// Кортеж. @@ -338,9 +336,8 @@ public static Tuple ReadByteTuple2(int count) return Tuple.Of(ReadByte(count), ReadByte(count)); } - /// - /// Читает 2 массива значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа SByte. /// /// Размер массива. /// Кортеж. @@ -349,9 +346,8 @@ public static Tuple ReadSByteTuple2(int count) return Tuple.Of(ReadSByte(count), ReadSByte(count)); } - /// - /// Читает 2 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Char. /// /// Размер массива. /// Кортеж. @@ -360,9 +356,8 @@ public static Tuple ReadCharTuple2(int count) return Tuple.Of(ReadChar(count), ReadChar(count)); } - /// - /// Читает 2 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Decimal. /// /// Размер массива. /// Кортеж. @@ -371,9 +366,8 @@ public static Tuple ReadDecimalTuple2(int count) return Tuple.Of(ReadDecimal(count), ReadDecimal(count)); } - /// - /// Читает 2 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Double. /// /// Размер массива. /// Кортеж. @@ -382,9 +376,8 @@ public static Tuple ReadDoubleTuple2(int count) return Tuple.Of(ReadDouble(count), ReadDouble(count)); } - /// - /// Читает 2 массива значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Single. /// /// Размер массива. /// Кортеж. @@ -393,9 +386,8 @@ public static Tuple ReadSingleTuple2(int count) return Tuple.Of(ReadSingle(count), ReadSingle(count)); } - /// - /// Читает 2 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Int32. /// /// Размер массива. /// Кортеж. @@ -404,9 +396,8 @@ public static Tuple ReadInt32Tuple2(int count) return Tuple.Of(ReadInt32(count), ReadInt32(count)); } - /// - /// Читает 2 массива значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа UInt32. /// /// Размер массива. /// Кортеж. @@ -415,9 +406,8 @@ public static Tuple ReadUInt32Tuple2(int count) return Tuple.Of(ReadUInt32(count), ReadUInt32(count)); } - /// - /// Читает 2 массива значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Int64. /// /// Размер массива. /// Кортеж. @@ -426,9 +416,8 @@ public static Tuple ReadInt64Tuple2(int count) return Tuple.Of(ReadInt64(count), ReadInt64(count)); } - /// - /// Читает 2 массива значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа UInt64. /// /// Размер массива. /// Кортеж. @@ -437,9 +426,8 @@ public static Tuple ReadUInt64Tuple2(int count) return Tuple.Of(ReadUInt64(count), ReadUInt64(count)); } - /// - /// Читает 2 массива значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Int16. /// /// Размер массива. /// Кортеж. @@ -448,9 +436,8 @@ public static Tuple ReadInt16Tuple2(int count) return Tuple.Of(ReadInt16(count), ReadInt16(count)); } - /// - /// Читает 2 массива значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа UInt16. /// /// Размер массива. /// Кортеж. @@ -459,9 +446,8 @@ public static Tuple ReadUInt16Tuple2(int count) return Tuple.Of(ReadUInt16(count), ReadUInt16(count)); } - /// - /// Читает 2 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа BigInteger. /// /// Размер массива. /// Кортеж. @@ -470,9 +456,8 @@ public static Tuple ReadBigIntegerTuple2(int count) return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count)); } - /// - /// Читает 2 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа String. /// /// Размер массива. /// Кортеж. @@ -481,12 +466,12 @@ public static Tuple ReadStringTuple2(int count) return Tuple.Of(ReadString(count), ReadString(count)); } - #endregion - - #region Read3 - + #endregion two-arrays + + #region three-arrays + /// - /// Читает 3 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Boolean. /// /// Размер массива. /// Кортеж. @@ -495,9 +480,8 @@ public static Tuple ReadBooleanTuple3(int count) return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } - /// - /// Читает 3 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Byte. /// /// Размер массива. /// Кортеж. @@ -506,9 +490,8 @@ public static Tuple ReadByteTuple3(int count) return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count)); } - /// - /// Читает 3 массива значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа SByte. /// /// Размер массива. /// Кортеж. @@ -517,9 +500,8 @@ public static Tuple ReadSByteTuple3(int count) return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count)); } - /// - /// Читает 3 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Char. /// /// Размер массива. /// Кортеж. @@ -528,9 +510,8 @@ public static Tuple ReadCharTuple3(int count) return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count)); } - /// - /// Читает 3 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Decimal. /// /// Размер массива. /// Кортеж. @@ -539,9 +520,8 @@ public static Tuple ReadDecimalTuple3(int count return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); } - /// - /// Читает 3 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Double. /// /// Размер массива. /// Кортеж. @@ -550,9 +530,8 @@ public static Tuple ReadDoubleTuple3(int count) return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count)); } - /// - /// Читает 3 массива значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Single. /// /// Размер массива. /// Кортеж. @@ -561,9 +540,8 @@ public static Tuple ReadSingleTuple3(int count) return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count)); } - /// - /// Читает 3 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Int32. /// /// Размер массива. /// Кортеж. @@ -572,9 +550,8 @@ public static Tuple ReadInt32Tuple3(int count) return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count)); } - /// - /// Читает 3 массива значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа UInt32. /// /// Размер массива. /// Кортеж. @@ -583,9 +560,8 @@ public static Tuple ReadUInt32Tuple3(int count) return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); } - /// - /// Читает 3 массива значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Int64. /// /// Размер массива. /// Кортеж. @@ -594,9 +570,8 @@ public static Tuple ReadInt64Tuple3(int count) return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count)); } - /// - /// Читает 3 массива значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа UInt64. /// /// Размер массива. /// Кортеж. @@ -605,9 +580,8 @@ public static Tuple ReadUInt64Tuple3(int count) return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); } - /// - /// Читает 3 массива значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Int16. /// /// Размер массива. /// Кортеж. @@ -616,9 +590,8 @@ public static Tuple ReadInt16Tuple3(int count) return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count)); } - /// - /// Читает 3 массива значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа UInt16. /// /// Размер массива. /// Кортеж. @@ -627,9 +600,8 @@ public static Tuple ReadUInt16Tuple3(int count) return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); } - /// - /// Читает 3 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа BigInteger. /// /// Размер массива. /// Кортеж. @@ -638,9 +610,8 @@ public static Tuple ReadBigIntegerTupl return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); } - /// - /// Читает 3 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа String. /// /// Размер массива. /// Кортеж. @@ -648,13 +619,13 @@ public static Tuple ReadStringTuple3(int count) { return Tuple.Of(ReadString(count), ReadString(count), ReadString(count)); } - - #endregion - - #region Read4 - + + #endregion three-arrays + + #region four-arrays + /// - /// Читает 4 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Boolean. /// /// Размер массива. /// Кортеж. @@ -663,9 +634,8 @@ public static Tuple ReadBooleanTuple4(int count) return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } - /// - /// Читает 4 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Byte. /// /// Размер массива. /// Кортеж. @@ -674,9 +644,8 @@ public static Tuple ReadByteTuple4(int count) return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); } - /// - /// Читает 4 массива значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа SByte. /// /// Размер массива. /// Кортеж. @@ -685,9 +654,8 @@ public static Tuple ReadSByteTuple4(int coun return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); } - /// - /// Читает 4 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Char. /// /// Размер массива. /// Кортеж. @@ -696,9 +664,8 @@ public static Tuple ReadCharTuple4(int count) return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); } - /// - /// Читает 4 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Decimal. /// /// Размер массива. /// Кортеж. @@ -707,9 +674,8 @@ public static Tuple ReadDecimalTuple return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); } - /// - /// Читает 4 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Double. /// /// Размер массива. /// Кортеж. @@ -718,9 +684,8 @@ public static Tuple ReadDoubleTuple4(int return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); } - /// - /// Читает 4 массива значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Single. /// /// Размер массива. /// Кортеж. @@ -729,9 +694,8 @@ public static Tuple ReadSingleTuple4(int cou return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); } - /// - /// Читает 4 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Int32. /// /// Размер массива. /// Кортеж. @@ -740,9 +704,8 @@ public static Tuple ReadInt32Tuple4(int count) return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); } - /// - /// Читает 4 массива значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа UInt32. /// /// Размер массива. /// Кортеж. @@ -751,9 +714,8 @@ public static Tuple ReadUInt32Tuple4(int count) return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); } - /// - /// Читает 4 массива значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Int64. /// /// Размер массива. /// Кортеж. @@ -762,9 +724,8 @@ public static Tuple ReadInt64Tuple4(int count) return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); } - /// - /// Читает 4 массива значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа UInt64. /// /// Размер массива. /// Кортеж. @@ -773,9 +734,8 @@ public static Tuple ReadUInt64Tuple4(int cou return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); } - /// - /// Читает 4 массива значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Int16. /// /// Размер массива. /// Кортеж. @@ -784,9 +744,8 @@ public static Tuple ReadInt16Tuple4(int coun return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); } - /// - /// Читает 4 массива значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа UInt16. /// /// Размер массива. /// Кортеж. @@ -795,9 +754,8 @@ public static Tuple ReadUInt16Tuple4(int return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); } - /// - /// Читает 4 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа BigInteger. /// /// Размер массива. /// Кортеж. @@ -806,9 +764,8 @@ public static Tuple Read return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); } - /// - /// Читает 4 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа String. /// /// Размер массива. /// Кортеж. @@ -816,13 +773,13 @@ public static Tuple ReadStringTuple4(int { return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count)); } - - #endregion - - #region Read5 - + + #endregion four-arrays + + #region five-arrays + /// - /// Читает 5 массивов значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Boolean. /// /// Размер массива. /// Кортеж. @@ -831,9 +788,8 @@ public static Tuple ReadBooleanTuple5(in return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } - /// - /// Читает 5 массивов значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Byte. /// /// Размер массива. /// Кортеж. @@ -842,9 +798,8 @@ public static Tuple ReadByteTuple5(int c return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); } - /// - /// Читает 5 массивов значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа SByte. /// /// Размер массива. /// Кортеж. @@ -853,9 +808,8 @@ public static Tuple ReadSByteTuple5 return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); } - /// - /// Читает 5 массивов значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Char. /// /// Размер массива. /// Кортеж. @@ -864,9 +818,8 @@ public static Tuple ReadCharTuple5(int c return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); } - /// - /// Читает 5 массивов значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Decimal. /// /// Размер массива. /// Кортеж. @@ -875,9 +828,8 @@ public static Tuple ReadD return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); } - /// - /// Читает 5 массивов значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Double. /// /// Размер массива. /// Кортеж. @@ -886,9 +838,8 @@ public static Tuple ReadDouble return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); } - /// - /// Читает 5 массивов значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Single. /// /// Размер массива. /// Кортеж. @@ -897,9 +848,8 @@ public static Tuple ReadSingleTuple return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); } - /// - /// Читает 5 массивов значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Int32. /// /// Размер массива. /// Кортеж. @@ -908,9 +858,8 @@ public static Tuple ReadInt32Tuple5(int count return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); } - /// - /// Читает 5 массивов значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа UInt32. /// /// Размер массива. /// Кортеж. @@ -919,9 +868,8 @@ public static Tuple ReadUInt32Tuple5(int return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); } - /// - /// Читает 5 массивов значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Int64. /// /// Размер массива. /// Кортеж. @@ -930,9 +878,8 @@ public static Tuple ReadInt64Tuple5(int return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); } - /// - /// Читает 5 массивов значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа UInt64. /// /// Размер массива. /// Кортеж. @@ -941,9 +888,8 @@ public static Tuple ReadUInt64Tuple return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); } - /// - /// Читает 5 массивов значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Int16. /// /// Размер массива. /// Кортеж. @@ -952,9 +898,8 @@ public static Tuple ReadInt16Tuple5 return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); } - /// - /// Читает 5 массивов значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа UInt16. /// /// Размер массива. /// Кортеж. @@ -963,9 +908,8 @@ public static Tuple ReadUInt16 return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); } - /// - /// Читает 5 массивов значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа BigInteger. /// /// Размер массива. /// Кортеж. @@ -974,9 +918,8 @@ public static Tuple - /// Читает 5 массивов значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа String. /// /// Размер массива. /// Кортеж. @@ -984,13 +927,13 @@ public static Tuple ReadString { return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); } - - #endregion - - #region Read6 - + + #endregion five-arrays + + #region six-arrays + /// - /// Читает 6 массивов значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Boolean. /// /// Размер массива. /// Кортеж. @@ -999,9 +942,8 @@ public static Tuple ReadBooleanT return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } - /// - /// Читает 6 массивов значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Byte. /// /// Размер массива. /// Кортеж. @@ -1010,9 +952,8 @@ public static Tuple ReadByteTupl return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); } - /// - /// Читает 6 массивов значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа SByte. /// /// Размер массива. /// Кортеж. @@ -1021,9 +962,8 @@ public static Tuple ReadSB return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); } - /// - /// Читает 6 массивов значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Char. /// /// Размер массива. /// Кортеж. @@ -1032,9 +972,8 @@ public static Tuple ReadCharTupl return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); } - /// - /// Читает 6 массивов значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Decimal. /// /// Размер массива. /// Кортеж. @@ -1043,9 +982,8 @@ public static Tuple - /// Читает 6 массивов значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Double. /// /// Размер массива. /// Кортеж. @@ -1054,9 +992,8 @@ public static Tuple return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); } - /// - /// Читает 6 массивов значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Single. /// /// Размер массива. /// Кортеж. @@ -1065,9 +1002,8 @@ public static Tuple ReadSi return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); } - /// - /// Читает 6 массивов значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Int32. /// /// Размер массива. /// Кортеж. @@ -1076,9 +1012,8 @@ public static Tuple ReadInt32Tuple6(in return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); } - /// - /// Читает 6 массивов значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа UInt32. /// /// Размер массива. /// Кортеж. @@ -1087,9 +1022,8 @@ public static Tuple ReadUInt32Tu return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); } - /// - /// Читает 6 массивов значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Int64. /// /// Размер массива. /// Кортеж. @@ -1098,9 +1032,8 @@ public static Tuple ReadInt64Tup return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); } - /// - /// Читает 6 массивов значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа UInt64. /// /// Размер массива. /// Кортеж. @@ -1109,9 +1042,8 @@ public static Tuple ReadUI return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); } - /// - /// Читает 6 массивов значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Int16. /// /// Размер массива. /// Кортеж. @@ -1120,9 +1052,8 @@ public static Tuple ReadIn return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); } - /// - /// Читает 6 массивов значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа UInt16. /// /// Размер массива. /// Кортеж. @@ -1131,9 +1062,8 @@ public static Tuple return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); } - /// - /// Читает 6 массивов значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа BigInteger. /// /// Размер массива. /// Кортеж. @@ -1142,9 +1072,8 @@ public static Tuple - /// Читает 6 массивов значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа String. /// /// Размер массива. /// Кортеж. @@ -1152,13 +1081,13 @@ public static Tuple { return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); } - - #endregion - - #region Read7 - + + #endregion six-arrays + + #region seven-arrays + /// - /// Читает 7 массивов значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Boolean. /// /// Размер массива. /// Кортеж. @@ -1167,9 +1096,8 @@ public static Tuple Read return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } - /// - /// Читает 7 массивов значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Byte. /// /// Размер массива. /// Кортеж. @@ -1178,9 +1106,8 @@ public static Tuple Read return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); } - /// - /// Читает 7 массивов значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа SByte. /// /// Размер массива. /// Кортеж. @@ -1189,9 +1116,8 @@ public static Tuple - /// Читает 7 массивов значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Char. /// /// Размер массива. /// Кортеж. @@ -1200,9 +1126,8 @@ public static Tuple Read return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); } - /// - /// Читает 7 массивов значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Decimal. /// /// Размер массива. /// Кортеж. @@ -1211,9 +1136,8 @@ public static Tuple - /// Читает 7 массивов значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Double. /// /// Размер массива. /// Кортеж. @@ -1222,9 +1146,8 @@ public static Tuple - /// Читает 7 массивов значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Single. /// /// Размер массива. /// Кортеж. @@ -1233,9 +1156,8 @@ public static Tuple - /// Читает 7 массивов значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Int32. /// /// Размер массива. /// Кортеж. @@ -1244,9 +1166,8 @@ public static Tuple ReadInt32Tu return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); } - /// - /// Читает 7 массивов значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа UInt32. /// /// Размер массива. /// Кортеж. @@ -1255,9 +1176,8 @@ public static Tuple Read return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); } - /// - /// Читает 7 массивов значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Int64. /// /// Размер массива. /// Кортеж. @@ -1266,9 +1186,8 @@ public static Tuple Read return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); } - /// - /// Читает 7 массивов значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа UInt64. /// /// Размер массива. /// Кортеж. @@ -1277,9 +1196,8 @@ public static Tuple - /// Читает 7 массивов значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Int16. /// /// Размер массива. /// Кортеж. @@ -1288,9 +1206,8 @@ public static Tuple - /// Читает 7 массивов значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа UInt16. /// /// Размер массива. /// Кортеж. @@ -1299,9 +1216,8 @@ public static Tuple - /// Читает 7 массивов значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа BigInteger. /// /// Размер массива. /// Кортеж. @@ -1310,9 +1226,8 @@ public static Tuple - /// Читает 7 массивов значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа String. /// /// Размер массива. /// Кортеж. @@ -1320,10 +1235,9 @@ public static Tuple public static partial class Nullable { - #region public - - #region Read1 + + #region one-array /// - /// Читает массив значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Boolean?. /// /// Количество элементов. /// Приглашение к вводу. @@ -28,7 +27,7 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; bool?[] array = new bool?[count]; @@ -37,9 +36,9 @@ public static partial class Nullable return array; } - + /// - /// Читает массив значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Byte?. /// /// Количество элементов. /// Приглашение к вводу. @@ -48,7 +47,7 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; byte?[] array = new byte?[count]; @@ -57,9 +56,9 @@ public static partial class Nullable return array; } - + /// - /// Читает массив значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа SByte?. /// /// Количество элементов. /// Приглашение к вводу. @@ -68,7 +67,7 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; sbyte?[] array = new sbyte?[count]; @@ -77,9 +76,9 @@ public static partial class Nullable return array; } - + /// - /// Читает массив значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Char?. /// /// Количество элементов. /// Приглашение к вводу. @@ -88,7 +87,7 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; char?[] array = new char?[count]; @@ -97,9 +96,9 @@ public static partial class Nullable return array; } - + /// - /// Читает массив значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Decimal?. /// /// Количество элементов. /// Приглашение к вводу. @@ -108,7 +107,7 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; decimal?[] array = new decimal?[count]; @@ -117,9 +116,9 @@ public static partial class Nullable return array; } - + /// - /// Читает массив значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Double?. /// /// Количество элементов. /// Приглашение к вводу. @@ -128,7 +127,7 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; double?[] array = new double?[count]; @@ -137,9 +136,9 @@ public static partial class Nullable return array; } - + /// - /// Читает массив значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Single?. /// /// Количество элементов. /// Приглашение к вводу. @@ -148,7 +147,7 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; float?[] array = new float?[count]; @@ -157,9 +156,9 @@ public static partial class Nullable return array; } - + /// - /// Читает массив значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int32?. /// /// Количество элементов. /// Приглашение к вводу. @@ -168,7 +167,7 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; int?[] array = new int?[count]; @@ -177,9 +176,9 @@ public static partial class Nullable return array; } - + /// - /// Читает массив значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt32?. /// /// Количество элементов. /// Приглашение к вводу. @@ -188,7 +187,7 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; uint?[] array = new uint?[count]; @@ -197,9 +196,9 @@ public static partial class Nullable return array; } - + /// - /// Читает массив значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int64?. /// /// Количество элементов. /// Приглашение к вводу. @@ -208,7 +207,7 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; long?[] array = new long?[count]; @@ -217,9 +216,9 @@ public static partial class Nullable return array; } - + /// - /// Читает массив значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt64?. /// /// Количество элементов. /// Приглашение к вводу. @@ -228,7 +227,7 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; ulong?[] array = new ulong?[count]; @@ -237,9 +236,9 @@ public static partial class Nullable return array; } - + /// - /// Читает массив значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int16?. /// /// Количество элементов. /// Приглашение к вводу. @@ -248,7 +247,7 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; short?[] array = new short?[count]; @@ -257,9 +256,9 @@ public static partial class Nullable return array; } - + /// - /// Читает массив значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt16?. /// /// Количество элементов. /// Приглашение к вводу. @@ -268,7 +267,7 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; ushort?[] array = new ushort?[count]; @@ -277,9 +276,9 @@ public static partial class Nullable return array; } - + /// - /// Читает массив значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа BigInteger?. /// /// Количество элементов. /// Приглашение к вводу. @@ -288,7 +287,7 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; BigInteger?[] array = new BigInteger?[count]; @@ -298,874 +297,873 @@ public static partial class Nullable return array; } - #endregion - - #region Read2 - - /// - /// Читает 2 массива значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBooleanTuple2(int count) - { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count)); - } - - /// - /// Читает 2 массива значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadByteTuple2(int count) - { - return Tuple.Of(ReadByte(count), ReadByte(count)); - } - - /// - /// Читает 2 массива значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSByteTuple2(int count) - { - return Tuple.Of(ReadSByte(count), ReadSByte(count)); - } - - /// - /// Читает 2 массива значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadCharTuple2(int count) - { - return Tuple.Of(ReadChar(count), ReadChar(count)); - } - - /// - /// Читает 2 массива значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDecimalTuple2(int count) - { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count)); - } - - /// - /// Читает 2 массива значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDoubleTuple2(int count) - { - return Tuple.Of(ReadDouble(count), ReadDouble(count)); - } - - /// - /// Читает 2 массива значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSingleTuple2(int count) - { - return Tuple.Of(ReadSingle(count), ReadSingle(count)); - } - - /// - /// Читает 2 массива значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt32Tuple2(int count) - { - return Tuple.Of(ReadInt32(count), ReadInt32(count)); - } - - /// - /// Читает 2 массива значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt32Tuple2(int count) - { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count)); - } - - /// - /// Читает 2 массива значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt64Tuple2(int count) - { - return Tuple.Of(ReadInt64(count), ReadInt64(count)); - } - - /// - /// Читает 2 массива значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt64Tuple2(int count) - { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count)); - } - - /// - /// Читает 2 массива значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt16Tuple2(int count) - { - return Tuple.Of(ReadInt16(count), ReadInt16(count)); - } - - /// - /// Читает 2 массива значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt16Tuple2(int count) - { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count)); - } - - /// - /// Читает 2 массива значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBigIntegerTuple2(int count) - { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count)); - } - - #endregion - - #region Read3 - + #endregion one-array + + #region two-arrays + /// - /// Читает 3 массива значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBooleanTuple3(int count) - { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); - } - - /// - /// Читает 3 массива значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadByteTuple3(int count) - { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count)); - } - - /// - /// Читает 3 массива значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSByteTuple3(int count) - { - return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count)); - } - - /// - /// Читает 3 массива значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadCharTuple3(int count) - { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count)); - } - - /// - /// Читает 3 массива значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDecimalTuple3(int count) - { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); - } - - /// - /// Читает 3 массива значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDoubleTuple3(int count) - { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count)); - } - - /// - /// Читает 3 массива значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSingleTuple3(int count) - { - return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count)); - } - - /// - /// Читает 3 массива значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt32Tuple3(int count) - { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count)); - } - - /// - /// Читает 3 массива значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt32Tuple3(int count) - { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); - } - - /// - /// Читает 3 массива значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt64Tuple3(int count) - { - return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count)); - } - - /// - /// Читает 3 массива значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt64Tuple3(int count) - { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); - } - - /// - /// Читает 3 массива значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt16Tuple3(int count) - { - return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count)); - } - - /// - /// Читает 3 массива значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt16Tuple3(int count) - { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); - } - - /// - /// Читает 3 массива значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBigIntegerTuple3(int count) - { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); - } - - #endregion - - #region Read4 - + /// Читает 2 массива значений типа Boolean?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple2(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count)); + } + /// - /// Читает 4 массива значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBooleanTuple4(int count) - { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); - } - - /// - /// Читает 4 массива значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadByteTuple4(int count) - { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); - } - - /// - /// Читает 4 массива значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSByteTuple4(int count) - { - return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); - } - - /// - /// Читает 4 массива значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadCharTuple4(int count) - { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); - } - - /// - /// Читает 4 массива значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDecimalTuple4(int count) - { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); - } - - /// - /// Читает 4 массива значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDoubleTuple4(int count) - { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); - } - - /// - /// Читает 4 массива значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSingleTuple4(int count) - { - return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); - } - - /// - /// Читает 4 массива значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt32Tuple4(int count) - { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); - } - - /// - /// Читает 4 массива значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt32Tuple4(int count) - { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); - } - - /// - /// Читает 4 массива значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt64Tuple4(int count) - { - return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); - } - - /// - /// Читает 4 массива значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt64Tuple4(int count) - { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); - } - - /// - /// Читает 4 массива значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt16Tuple4(int count) - { - return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); - } - - /// - /// Читает 4 массива значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt16Tuple4(int count) - { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); - } - - /// - /// Читает 4 массива значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBigIntegerTuple4(int count) - { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); - } - - #endregion - - #region Read5 - + /// Читает 2 массива значений типа Byte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple2(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count)); + } + /// - /// Читает 5 массивов значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBooleanTuple5(int count) - { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); - } - - /// - /// Читает 5 массивов значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadByteTuple5(int count) - { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); - } - - /// - /// Читает 5 массивов значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSByteTuple5(int count) - { - return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); - } - - /// - /// Читает 5 массивов значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadCharTuple5(int count) - { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); - } - - /// - /// Читает 5 массивов значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDecimalTuple5(int count) - { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); - } - - /// - /// Читает 5 массивов значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDoubleTuple5(int count) - { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); - } - - /// - /// Читает 5 массивов значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSingleTuple5(int count) - { - return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); - } - - /// - /// Читает 5 массивов значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt32Tuple5(int count) - { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); - } - - /// - /// Читает 5 массивов значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt32Tuple5(int count) - { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); - } - - /// - /// Читает 5 массивов значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt64Tuple5(int count) - { - return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); - } - - /// - /// Читает 5 массивов значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt64Tuple5(int count) - { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); - } - - /// - /// Читает 5 массивов значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt16Tuple5(int count) - { - return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); - } - - /// - /// Читает 5 массивов значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt16Tuple5(int count) - { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); - } - - /// - /// Читает 5 массивов значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBigIntegerTuple5(int count) - { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); - } - - #endregion - - #region Read6 - + /// Читает 2 массива значений типа SByte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple2(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 2 массива значений типа Char?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple2(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 2 массива значений типа Decimal?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple2(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 2 массива значений типа Double?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple2(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 2 массива значений типа Single?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple2(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 2 массива значений типа Int32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple2(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 2 массива значений типа UInt32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple2(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 2 массива значений типа Int64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple2(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 2 массива значений типа UInt64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple2(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 2 массива значений типа Int16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple2(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 2 массива значений типа UInt16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple2(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 2 массива значений типа BigInteger?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple2(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion two-arrays + + #region three-arrays + + /// + /// Читает 3 массива значений типа Boolean?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple3(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Читает 3 массива значений типа Byte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple3(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Читает 3 массива значений типа SByte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple3(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 3 массива значений типа Char?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple3(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 3 массива значений типа Decimal?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple3(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 3 массива значений типа Double?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple3(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 3 массива значений типа Single?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple3(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 3 массива значений типа Int32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple3(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 3 массива значений типа UInt32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple3(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 3 массива значений типа Int64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple3(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 3 массива значений типа UInt64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple3(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 3 массива значений типа Int16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple3(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 3 массива значений типа UInt16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple3(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 3 массива значений типа BigInteger?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple3(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion three-arrays + + #region four-arrays + + /// + /// Читает 4 массива значений типа Boolean?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple4(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Читает 4 массива значений типа Byte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple4(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Читает 4 массива значений типа SByte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple4(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 4 массива значений типа Char?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple4(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 4 массива значений типа Decimal?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple4(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 4 массива значений типа Double?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple4(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 4 массива значений типа Single?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple4(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 4 массива значений типа Int32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple4(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 4 массива значений типа UInt32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple4(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 4 массива значений типа Int64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple4(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 4 массива значений типа UInt64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple4(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 4 массива значений типа Int16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple4(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 4 массива значений типа UInt16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple4(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 4 массива значений типа BigInteger?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple4(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion four-arrays + + #region five-arrays + + /// + /// Читает 5 массивов значений типа Boolean?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple5(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Читает 5 массивов значений типа Byte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple5(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Читает 5 массивов значений типа SByte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple5(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 5 массивов значений типа Char?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple5(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 5 массивов значений типа Decimal?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple5(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 5 массивов значений типа Double?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple5(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 5 массивов значений типа Single?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple5(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 5 массивов значений типа Int32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple5(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 5 массивов значений типа UInt32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple5(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 5 массивов значений типа Int64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple5(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 5 массивов значений типа UInt64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple5(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 5 массивов значений типа Int16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple5(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 5 массивов значений типа UInt16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple5(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 5 массивов значений типа BigInteger?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple5(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion five-arrays + + #region six-arrays + /// - /// Читает 6 массивов значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBooleanTuple6(int count) - { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); - } - - /// - /// Читает 6 массивов значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadByteTuple6(int count) - { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); - } - - /// - /// Читает 6 массивов значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSByteTuple6(int count) - { - return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); - } - - /// - /// Читает 6 массивов значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadCharTuple6(int count) - { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); - } - - /// - /// Читает 6 массивов значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDecimalTuple6(int count) - { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); - } - - /// - /// Читает 6 массивов значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDoubleTuple6(int count) - { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); - } - - /// - /// Читает 6 массивов значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSingleTuple6(int count) - { - return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); - } - - /// - /// Читает 6 массивов значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt32Tuple6(int count) - { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); - } - - /// - /// Читает 6 массивов значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt32Tuple6(int count) - { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); - } - - /// - /// Читает 6 массивов значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt64Tuple6(int count) - { - return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); - } - - /// - /// Читает 6 массивов значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt64Tuple6(int count) - { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); - } - - /// - /// Читает 6 массивов значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt16Tuple6(int count) - { - return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); - } - - /// - /// Читает 6 массивов значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt16Tuple6(int count) - { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); - } - - /// - /// Читает 6 массивов значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBigIntegerTuple6(int count) - { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); - } - - #endregion - - #region Read7 - + /// Читает 6 массивов значений типа Boolean?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple6(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + /// - /// Читает 7 массивов значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBooleanTuple7(int count) - { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); - } - - /// - /// Читает 7 массивов значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadByteTuple7(int count) - { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); - } - - /// - /// Читает 7 массивов значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSByteTuple7(int count) - { - return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); - } - - /// - /// Читает 7 массивов значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadCharTuple7(int count) - { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); - } - - /// - /// Читает 7 массивов значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDecimalTuple7(int count) - { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); - } - - /// - /// Читает 7 массивов значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDoubleTuple7(int count) - { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); - } - - /// - /// Читает 7 массивов значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSingleTuple7(int count) - { - return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); - } - - /// - /// Читает 7 массивов значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt32Tuple7(int count) - { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); - } - - /// - /// Читает 7 массивов значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt32Tuple7(int count) - { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); - } - - /// - /// Читает 7 массивов значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt64Tuple7(int count) - { - return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); - } - - /// - /// Читает 7 массивов значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt64Tuple7(int count) - { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); - } - - /// - /// Читает 7 массивов значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt16Tuple7(int count) - { - return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); - } - - /// - /// Читает 7 массивов значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt16Tuple7(int count) - { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); - } - - /// - /// Читает 7 массивов значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBigIntegerTuple7(int count) - { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); - } - - #endregion - + /// Читает 6 массивов значений типа Byte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple6(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Читает 6 массивов значений типа SByte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple6(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 6 массивов значений типа Char?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple6(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 6 массивов значений типа Decimal?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple6(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 6 массивов значений типа Double?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple6(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 6 массивов значений типа Single?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple6(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 6 массивов значений типа Int32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple6(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 6 массивов значений типа UInt32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple6(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 6 массивов значений типа Int64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple6(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 6 массивов значений типа UInt64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple6(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 6 массивов значений типа Int16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple6(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 6 массивов значений типа UInt16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple6(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 6 массивов значений типа BigInteger?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple6(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion six-arrays + + #region seven-arrays + + /// + /// Читает 7 массивов значений типа Boolean?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple7(int count) + { + return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Читает 7 массивов значений типа Byte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple7(int count) + { + return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Читает 7 массивов значений типа SByte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple7(int count) + { + return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 7 массивов значений типа Char?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple7(int count) + { + return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 7 массивов значений типа Decimal?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple7(int count) + { + return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 7 массивов значений типа Double?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple7(int count) + { + return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 7 массивов значений типа Single?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple7(int count) + { + return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 7 массивов значений типа Int32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple7(int count) + { + return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 7 массивов значений типа UInt32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple7(int count) + { + return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 7 массивов значений типа Int64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple7(int count) + { + return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 7 массивов значений типа UInt64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple7(int count) + { + return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 7 массивов значений типа Int16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple7(int count) + { + return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 7 массивов значений типа UInt16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple7(int count) + { + return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 7 массивов значений типа BigInteger?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple7(int count) + { + return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion seven-arrays + #endregion - } } } From 518272dd687bf6fc2891c2692172b20fcfad1400 Mon Sep 17 00:00:00 2001 From: Alvin Seville Date: Thu, 28 May 2020 21:18:10 +1000 Subject: [PATCH 081/102] closes #27 - missing public for #endregion --- NETMouse - .NET release/Utils/Array.Nullable.Input.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NETMouse - .NET release/Utils/Array.Nullable.Input.cs b/NETMouse - .NET release/Utils/Array.Nullable.Input.cs index ddacc4d..327b00c 100644 --- a/NETMouse - .NET release/Utils/Array.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/Array.Nullable.Input.cs @@ -1163,7 +1163,7 @@ public static partial class Nullable #endregion seven-arrays - #endregion + #endregion public } } } From f38f480f0a263e156d11eef9670bf8619ac2644a Mon Sep 17 00:00:00 2001 From: Alvin Seville Date: Thu, 28 May 2020 21:58:39 +1000 Subject: [PATCH 082/102] #115 - cleanup (formattng, regions naming) and refactoring (replacing code blocks with Array methods calls) --- .../Utils/Sequence.Generators.cs | 2 - .../Utils/Sequence.Input.cs | 360 +++++++----------- .../Utils/Sequence.Nullable.Input.cs | 158 ++------ 3 files changed, 171 insertions(+), 349 deletions(-) diff --git a/NETMouse - .NET release/Utils/Sequence.Generators.cs b/NETMouse - .NET release/Utils/Sequence.Generators.cs index 763cca8..5acea80 100644 --- a/NETMouse - .NET release/Utils/Sequence.Generators.cs +++ b/NETMouse - .NET release/Utils/Sequence.Generators.cs @@ -8,7 +8,6 @@ namespace ABCNET.Utils /// public static partial class Sequence { - #region public /// @@ -81,6 +80,5 @@ public static IEnumerable Fill(int count, T value) } #endregion public - } } \ No newline at end of file diff --git a/NETMouse - .NET release/Utils/Sequence.Input.cs b/NETMouse - .NET release/Utils/Sequence.Input.cs index 049db0b..0d543ef 100644 --- a/NETMouse - .NET release/Utils/Sequence.Input.cs +++ b/NETMouse - .NET release/Utils/Sequence.Input.cs @@ -4,15 +4,14 @@ namespace ABCNET.Utils { - /// - /// Description of Class1. - /// + /// + /// Предоставляет функционал для работы с последовательностями. + /// public static partial class Sequence { - #region public - #region Read1 + #region one-sequence /// /// Читает последовательность типа Boolean с клавиатуры. @@ -25,13 +24,7 @@ public static IEnumerable ReadBoolean(int count, string prompt = EmptyStri if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - bool[] result = new bool[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadBoolean(string.Format(prompt, i)); - - return result; + return Array.ReadBoolean(count, prompt); } /// @@ -45,13 +38,7 @@ public static IEnumerable ReadByte(int count, string prompt = EmptyStringH if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - byte[] result = new byte[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadByte(string.Format(prompt, i)); - - return result; + return Array.ReadByte(count, prompt); } /// @@ -65,13 +52,7 @@ public static IEnumerable ReadSByte(int count, string prompt = EmptyStrin if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - sbyte[] result = new sbyte[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadSByte(string.Format(prompt, i)); - - return result; + return Array.ReadSByte(count, prompt); } /// @@ -85,13 +66,7 @@ public static IEnumerable ReadChar(int count, string prompt = EmptyStringH if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - char[] result = new char[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadChar(string.Format(prompt, i)); - - return result; + return Array.ReadChar(count, prompt); } /// @@ -105,13 +80,7 @@ public static IEnumerable ReadDecimal(int count, string prompt = EmptyS if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - decimal[] result = new decimal[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadDecimal(string.Format(prompt, i)); - - return result; + return Array.ReadDecimal(count, prompt); } /// @@ -125,13 +94,7 @@ public static IEnumerable ReadDouble(int count, string prompt = EmptyStr if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - double[] result = new double[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadDouble(string.Format(prompt, i)); - - return result; + return Array.ReadDouble(count, prompt); } /// @@ -145,13 +108,7 @@ public static IEnumerable ReadSingle(int count, string prompt = EmptyStri if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - float[] result = new float[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadSingle(string.Format(prompt, i)); - - return result; + return Array.ReadSingle(count, prompt); } /// @@ -165,13 +122,7 @@ public static IEnumerable ReadInt32(int count, string prompt = EmptyStringH if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - int[] result = new int[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadInt32(string.Format(prompt, i)); - - return result; + return Array.ReadInt32(count, prompt); } /// @@ -185,13 +136,7 @@ public static IEnumerable ReadUInt32(int count, string prompt = EmptyStrin if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - uint[] result = new uint[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadUInt32(string.Format(prompt, i)); - - return result; + return Array.ReadUInt32(count, prompt); } /// @@ -205,13 +150,7 @@ public static IEnumerable ReadInt64(int count, string prompt = EmptyString if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - long[] result = new long[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadInt64(string.Format(prompt, i)); - - return result; + return Array.ReadInt64(count, prompt); } /// @@ -225,13 +164,7 @@ public static IEnumerable ReadUInt64(int count, string prompt = EmptyStri if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - ulong[] result = new ulong[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadUInt64(string.Format(prompt, i)); - - return result; + return Array.ReadUInt64(count, prompt); } /// @@ -245,13 +178,7 @@ public static IEnumerable ReadInt16(int count, string prompt = EmptyStrin if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - short[] result = new short[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadInt16(string.Format(prompt, i)); - - return result; + return Array.ReadInt16(count, prompt); } /// @@ -265,13 +192,7 @@ public static IEnumerable ReadUInt16(int count, string prompt = EmptyStr if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - ushort[] result = new ushort[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadUInt16(string.Format(prompt, i)); - - return result; + return Array.ReadUInt16(count, prompt); } /// @@ -285,13 +206,7 @@ public static IEnumerable ReadBigInteger(int count, string prompt = if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - BigInteger[] result = new BigInteger[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadBigInteger(string.Format(prompt, i)); - - return result; + return Array.ReadBigInteger(count, prompt); } /// @@ -305,18 +220,12 @@ public static IEnumerable ReadString(int count, string prompt = EmptyStr if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - string[] result = new string[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadString(string.Format(prompt, i)); - - return result; + return Array.ReadString(count, prompt); } - #endregion + #endregion one-sequence - #region Read2 + #region two-sequences /// /// Читает 2 последовательности типа Boolean с клавиатуры. @@ -331,7 +240,7 @@ public static Tuple, IEnumerable> ReadBooleanTuple2(int return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } - + /// /// Читает 2 последовательности типа Byte с клавиатуры. /// @@ -345,7 +254,7 @@ public static Tuple, IEnumerable> ReadByteTuple2(int cou return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt)); } - + /// /// Читает 2 последовательности типа SByte с клавиатуры. /// @@ -359,7 +268,7 @@ public static Tuple, IEnumerable> ReadSByteTuple2(int return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt)); } - + /// /// Читает 2 последовательности типа Char с клавиатуры. /// @@ -373,7 +282,7 @@ public static Tuple, IEnumerable> ReadCharTuple2(int cou return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt)); } - + /// /// Читает 2 последовательности типа Decimal с клавиатуры. /// @@ -387,7 +296,7 @@ public static Tuple, IEnumerable> ReadDecimalTuple return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt)); } - + /// /// Читает 2 последовательности типа Double с клавиатуры. /// @@ -401,7 +310,7 @@ public static Tuple, IEnumerable> ReadDoubleTuple2(i return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt)); } - + /// /// Читает 2 последовательности типа Single с клавиатуры. /// @@ -415,7 +324,7 @@ public static Tuple, IEnumerable> ReadSingleTuple2(int return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt)); } - + /// /// Читает 2 последовательности типа Int32 с клавиатуры. /// @@ -429,7 +338,7 @@ public static Tuple, IEnumerable> ReadInt32Tuple2(int coun return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt)); } - + /// /// Читает 2 последовательности типа UInt32 с клавиатуры. /// @@ -443,7 +352,7 @@ public static Tuple, IEnumerable> ReadUInt32Tuple2(int c return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } - + /// /// Читает 2 последовательности типа Int64 с клавиатуры. /// @@ -457,7 +366,7 @@ public static Tuple, IEnumerable> ReadInt64Tuple2(int co return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt)); } - + /// /// Читает 2 последовательности типа UInt64 с клавиатуры. /// @@ -471,7 +380,7 @@ public static Tuple, IEnumerable> ReadUInt64Tuple2(int return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } - + /// /// Читает 2 последовательности типа Int16 с клавиатуры. /// @@ -485,7 +394,7 @@ public static Tuple, IEnumerable> ReadInt16Tuple2(int return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt)); } - + /// /// Читает 2 последовательности типа UInt16 с клавиатуры. /// @@ -499,7 +408,7 @@ public static Tuple, IEnumerable> ReadUInt16Tuple2(i return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt)); } - + /// /// Читает 2 последовательности типа BigInteger с клавиатуры. /// @@ -513,7 +422,7 @@ public static Tuple, IEnumerable> ReadBigInt return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - + /// /// Читает 2 последовательности типа String с клавиатуры. /// @@ -527,11 +436,11 @@ public static Tuple, IEnumerable> ReadStringTuple2(i return Tuple.Of(ReadString(count, prompt), ReadString(count, prompt)); } - - #endregion - - #region Read3 - + + #endregion two-sequences + + #region three-sequences + /// /// Читает 3 последовательности типа Boolean с клавиатуры. /// @@ -545,7 +454,7 @@ public static Tuple, IEnumerable, IEnumerable> Rea return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } - + /// /// Читает 3 последовательности типа Byte с клавиатуры. /// @@ -559,7 +468,7 @@ public static Tuple, IEnumerable, IEnumerable> Rea return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); } - + /// /// Читает 3 последовательности типа SByte с клавиатуры. /// @@ -573,7 +482,7 @@ public static Tuple, IEnumerable, IEnumerable> return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); } - + /// /// Читает 3 последовательности типа Char с клавиатуры. /// @@ -587,7 +496,7 @@ public static Tuple, IEnumerable, IEnumerable> Rea return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); } - + /// /// Читает 3 последовательности типа Decimal с клавиатуры. /// @@ -601,7 +510,7 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 3 последовательности типа Double с клавиатуры. /// @@ -615,7 +524,7 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 3 последовательности типа Single с клавиатуры. /// @@ -629,7 +538,7 @@ public static Tuple, IEnumerable, IEnumerable> return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); } - + /// /// Читает 3 последовательности типа Int32 с клавиатуры. /// @@ -643,7 +552,7 @@ public static Tuple, IEnumerable, IEnumerable> ReadIn return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); } - + /// /// Читает 3 последовательности типа UInt32 с клавиатуры. /// @@ -657,7 +566,7 @@ public static Tuple, IEnumerable, IEnumerable> Rea return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } - + /// /// Читает 3 последовательности типа Int64 с клавиатуры. /// @@ -671,7 +580,7 @@ public static Tuple, IEnumerable, IEnumerable> Rea return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); } - + /// /// Читает 3 последовательности типа UInt64 с клавиатуры. /// @@ -685,7 +594,7 @@ public static Tuple, IEnumerable, IEnumerable> return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } - + /// /// Читает 3 последовательности типа Int16 с клавиатуры. /// @@ -699,7 +608,7 @@ public static Tuple, IEnumerable, IEnumerable> return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); } - + /// /// Читает 3 последовательности типа UInt16 с клавиатуры. /// @@ -713,7 +622,7 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 3 последовательности типа BigInteger с клавиатуры. /// @@ -727,7 +636,7 @@ public static Tuple, IEnumerable, IEnumerabl return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - + /// /// Читает 3 последовательности типа String с клавиатуры. /// @@ -741,11 +650,11 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 4 последовательности типа Boolean с клавиатуры. /// @@ -759,7 +668,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } - + /// /// Читает 4 последовательности типа Byte с клавиатуры. /// @@ -773,7 +682,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); } - + /// /// Читает 4 последовательности типа SByte с клавиатуры. /// @@ -787,7 +696,7 @@ public static Tuple, IEnumerable, IEnumerable, return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); } - + /// /// Читает 4 последовательности типа Char с клавиатуры. /// @@ -801,7 +710,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); } - + /// /// Читает 4 последовательности типа Decimal с клавиатуры. /// @@ -815,7 +724,7 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 4 последовательности типа Double с клавиатуры. /// @@ -829,7 +738,7 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 4 последовательности типа Single с клавиатуры. /// @@ -843,7 +752,7 @@ public static Tuple, IEnumerable, IEnumerable, return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); } - + /// /// Читает 4 последовательности типа Int32 с клавиатуры. /// @@ -857,7 +766,7 @@ public static Tuple, IEnumerable, IEnumerable, IEnume return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); } - + /// /// Читает 4 последовательности типа UInt32 с клавиатуры. /// @@ -871,7 +780,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } - + /// /// Читает 4 последовательности типа Int64 с клавиатуры. /// @@ -885,7 +794,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); } - + /// /// Читает 4 последовательности типа UInt64 с клавиатуры. /// @@ -899,7 +808,7 @@ public static Tuple, IEnumerable, IEnumerable, return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } - + /// /// Читает 4 последовательности типа Int16 с клавиатуры. /// @@ -913,7 +822,7 @@ public static Tuple, IEnumerable, IEnumerable, return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); } - + /// /// Читает 4 последовательности типа UInt16 с клавиатуры. /// @@ -927,7 +836,7 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 4 последовательности типа BigInteger с клавиатуры. /// @@ -941,7 +850,7 @@ public static Tuple, IEnumerable, IEnumerabl return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - + /// /// Читает 4 последовательности типа String с клавиатуры. /// @@ -955,11 +864,11 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 5 последовательностей типа Boolean с клавиатуры. /// @@ -973,7 +882,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } - + /// /// Читает 5 последовательностей типа Byte с клавиатуры. /// @@ -987,7 +896,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); } - + /// /// Читает 5 последовательностей типа SByte с клавиатуры. /// @@ -1001,7 +910,7 @@ public static Tuple, IEnumerable, IEnumerable, return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); } - + /// /// Читает 5 последовательностей типа Char с клавиатуры. /// @@ -1015,7 +924,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); } - + /// /// Читает 5 последовательностей типа Decimal с клавиатуры. /// @@ -1029,7 +938,7 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 5 последовательностей типа Double с клавиатуры. /// @@ -1043,7 +952,7 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 5 последовательностей типа Single с клавиатуры. /// @@ -1057,7 +966,7 @@ public static Tuple, IEnumerable, IEnumerable, return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); } - + /// /// Читает 5 последовательностей типа Int32 с клавиатуры. /// @@ -1071,7 +980,7 @@ public static Tuple, IEnumerable, IEnumerable, IEnume return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); } - + /// /// Читает 5 последовательностей типа UInt32 с клавиатуры. /// @@ -1085,7 +994,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } - + /// /// Читает 5 последовательностей типа Int64 с клавиатуры. /// @@ -1099,7 +1008,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); } - + /// /// Читает 5 последовательностей типа UInt64 с клавиатуры. /// @@ -1113,7 +1022,7 @@ public static Tuple, IEnumerable, IEnumerable, return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } - + /// /// Читает 5 последовательностей типа Int16 с клавиатуры. /// @@ -1127,7 +1036,7 @@ public static Tuple, IEnumerable, IEnumerable, return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); } - + /// /// Читает 5 последовательностей типа UInt16 с клавиатуры. /// @@ -1141,7 +1050,7 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 5 последовательностей типа BigInteger с клавиатуры. /// @@ -1155,7 +1064,7 @@ public static Tuple, IEnumerable, IEnumerabl return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - + /// /// Читает 5 последовательностей типа String с клавиатуры. /// @@ -1169,11 +1078,11 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 6 последовательностей типа Boolean с клавиатуры. /// @@ -1187,7 +1096,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } - + /// /// Читает 6 последовательностей типа Byte с клавиатуры. /// @@ -1201,7 +1110,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); } - + /// /// Читает 6 последовательностей типа SByte с клавиатуры. /// @@ -1215,7 +1124,7 @@ public static Tuple, IEnumerable, IEnumerable, return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); } - + /// /// Читает 6 последовательностей типа Char с клавиатуры. /// @@ -1229,7 +1138,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); } - + /// /// Читает 6 последовательностей типа Decimal с клавиатуры. /// @@ -1243,7 +1152,7 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 6 последовательностей типа Double с клавиатуры. /// @@ -1257,7 +1166,7 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 6 последовательностей типа Single с клавиатуры. /// @@ -1271,7 +1180,7 @@ public static Tuple, IEnumerable, IEnumerable, return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); } - + /// /// Читает 6 последовательностей типа Int32 с клавиатуры. /// @@ -1285,7 +1194,7 @@ public static Tuple, IEnumerable, IEnumerable, IEnume return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); } - + /// /// Читает 6 последовательностей типа UInt32 с клавиатуры. /// @@ -1299,7 +1208,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } - + /// /// Читает 6 последовательностей типа Int64 с клавиатуры. /// @@ -1313,7 +1222,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); } - + /// /// Читает 6 последовательностей типа UInt64 с клавиатуры. /// @@ -1327,7 +1236,7 @@ public static Tuple, IEnumerable, IEnumerable, return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } - + /// /// Читает 6 последовательностей типа Int16 с клавиатуры. /// @@ -1341,7 +1250,7 @@ public static Tuple, IEnumerable, IEnumerable, return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); } - + /// /// Читает 6 последовательностей типа UInt16 с клавиатуры. /// @@ -1355,7 +1264,7 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 6 последовательностей типа BigInteger с клавиатуры. /// @@ -1369,7 +1278,7 @@ public static Tuple, IEnumerable, IEnumerabl return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - + /// /// Читает 6 последовательностей типа String с клавиатуры. /// @@ -1383,11 +1292,11 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 7 последовательностей типа Boolean с клавиатуры. /// @@ -1401,7 +1310,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } - + /// /// Читает 7 последовательностей типа Byte с клавиатуры. /// @@ -1415,7 +1324,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); } - + /// /// Читает 7 последовательностей типа SByte с клавиатуры. /// @@ -1429,7 +1338,7 @@ public static Tuple, IEnumerable, IEnumerable, return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); } - + /// /// Читает 7 последовательностей типа Char с клавиатуры. /// @@ -1443,7 +1352,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); } - + /// /// Читает 7 последовательностей типа Decimal с клавиатуры. /// @@ -1457,7 +1366,7 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 7 последовательностей типа Double с клавиатуры. /// @@ -1471,7 +1380,7 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 7 последовательностей типа Single с клавиатуры. /// @@ -1485,7 +1394,7 @@ public static Tuple, IEnumerable, IEnumerable, return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); } - + /// /// Читает 7 последовательностей типа Int32 с клавиатуры. /// @@ -1499,7 +1408,7 @@ public static Tuple, IEnumerable, IEnumerable, IEnume return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); } - + /// /// Читает 7 последовательностей типа UInt32 с клавиатуры. /// @@ -1513,7 +1422,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } - + /// /// Читает 7 последовательностей типа Int64 с клавиатуры. /// @@ -1527,7 +1436,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); } - + /// /// Читает 7 последовательностей типа UInt64 с клавиатуры. /// @@ -1541,7 +1450,7 @@ public static Tuple, IEnumerable, IEnumerable, return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } - + /// /// Читает 7 последовательностей типа Int16 с клавиатуры. /// @@ -1555,7 +1464,7 @@ public static Tuple, IEnumerable, IEnumerable, return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); } - + /// /// Читает 7 последовательностей типа UInt16 с клавиатуры. /// @@ -1569,7 +1478,7 @@ public static Tuple, IEnumerable, IEnumerable /// Читает 7 последовательностей типа BigInteger с клавиатуры. /// @@ -1583,7 +1492,7 @@ public static Tuple, IEnumerable, IEnumerabl return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - + /// /// Читает 7 последовательностей типа String с клавиатуры. /// @@ -1597,10 +1506,9 @@ public static Tuple, IEnumerable, IEnumerable - /// Description of Sequence_Nullable_Input. - /// + /// + /// Предоставляет функционал для работы с последовательностями. + /// public static partial class Sequence { - - public static class Nullable + /// + /// Предоставляет функционал для работы с Nullable типами. + /// + public static partial class Nullable { - #region public - #region Read1 + #region one-sequence /// /// Читает последовательность типа Boolean? с клавиатуры. @@ -28,13 +29,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - bool?[] result = new bool?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadBoolean(string.Format(prompt, i)); - - return result; + return Array.Nullable.ReadBoolean(count, prompt); } /// @@ -48,13 +43,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - byte?[] result = new byte?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadByte(string.Format(prompt, i)); - - return result; + return Array.Nullable.ReadByte(count, prompt); } /// @@ -68,13 +57,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - sbyte?[] result = new sbyte?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadSByte(string.Format(prompt, i)); - - return result; + return Array.Nullable.ReadSByte(count, prompt); } /// @@ -88,13 +71,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - char?[] result = new char?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadChar(string.Format(prompt, i)); - - return result; + return Array.Nullable.ReadChar(count, prompt); } /// @@ -108,13 +85,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - decimal?[] result = new decimal?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadDecimal(string.Format(prompt, i)); - - return result; + return Array.Nullable.ReadDecimal(count, prompt); } /// @@ -128,13 +99,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - double?[] result = new double?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadDouble(string.Format(prompt, i)); - - return result; + return Array.Nullable.ReadDouble(count, prompt); } /// @@ -148,13 +113,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - float?[] result = new float?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadSingle(string.Format(prompt, i)); - - return result; + return Array.Nullable.ReadSingle(count, prompt); } /// @@ -168,13 +127,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - int?[] result = new int?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadInt32(string.Format(prompt, i)); - - return result; + return Array.Nullable.ReadInt32(count, prompt); } /// @@ -188,13 +141,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - uint?[] result = new uint?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadUInt32(string.Format(prompt, i)); - - return result; + return Array.Nullable.ReadUInt32(count, prompt); } /// @@ -208,13 +155,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - long?[] result = new long?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadInt64(string.Format(prompt, i)); - - return result; + return Array.Nullable.ReadInt64(count, prompt); } /// @@ -228,13 +169,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - ulong?[] result = new ulong?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadUInt64(string.Format(prompt, i)); - - return result; + return Array.Nullable.ReadUInt64(count, prompt); } /// @@ -248,13 +183,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - short?[] result = new short?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadInt16(string.Format(prompt, i)); - - return result; + return Array.Nullable.ReadInt16(count, prompt); } /// @@ -268,13 +197,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - ushort?[] result = new ushort?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadUInt16(string.Format(prompt, i)); - - return result; + return Array.Nullable.ReadUInt16(count, prompt); } /// @@ -288,18 +211,12 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - BigInteger?[] result = new BigInteger?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadBigInteger(string.Format(prompt, i)); - - return result; + return Array.Nullable.ReadBigInteger(count, prompt); } - #endregion + #endregion one-sequence - #region Read2 + #region two-sequences /// /// Читает 2 последовательности типа Boolean? с клавиатуры. @@ -497,9 +414,9 @@ public static class Nullable return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - #endregion + #endregion two-sequences - #region Read3 + #region three-sequences /// /// Читает 3 последовательности типа Boolean? с клавиатуры. @@ -697,9 +614,9 @@ public static class Nullable return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - #endregion + #endregion three-sequences - #region Read4 + #region four-sequences /// /// Читает 4 последовательности типа Boolean? с клавиатуры. @@ -897,9 +814,9 @@ public static class Nullable return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - #endregion + #endregion four-sequences - #region Read5 + #region five-sequences /// /// Читает 5 последовательностей типа Boolean? с клавиатуры. @@ -1097,9 +1014,9 @@ public static class Nullable return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - #endregion + #endregion five-sequences - #region Read6 + #region six-sequences /// /// Читает 6 последовательностей типа Boolean? с клавиатуры. @@ -1297,9 +1214,9 @@ public static class Nullable return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - #endregion + #endregion six-sequences - #region Read7 + #region seven-sequences /// /// Читает 7 последовательностей типа Boolean? с клавиатуры. @@ -1497,10 +1414,9 @@ public static class Nullable return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - #endregion - - #endregion + #endregion seven-sequences + #endregion public } - } + } } From 622612c9014297f407bf1bf334abc64c76697dbd Mon Sep 17 00:00:00 2001 From: Alvin Seville Date: Fri, 29 May 2020 09:20:08 +1000 Subject: [PATCH 083/102] #115 - cleanup (comment fixes) --- .../Utils/Sequence.Input.cs | 180 +++++++++--------- .../Utils/Sequence.Nullable.Input.cs | 168 ++++++++-------- 2 files changed, 174 insertions(+), 174 deletions(-) diff --git a/NETMouse - .NET release/Utils/Sequence.Input.cs b/NETMouse - .NET release/Utils/Sequence.Input.cs index 0d543ef..9662580 100644 --- a/NETMouse - .NET release/Utils/Sequence.Input.cs +++ b/NETMouse - .NET release/Utils/Sequence.Input.cs @@ -232,7 +232,7 @@ public static IEnumerable ReadString(int count, string prompt = EmptyStr /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadBooleanTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -246,7 +246,7 @@ public static Tuple, IEnumerable> ReadBooleanTuple2(int /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadByteTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -260,7 +260,7 @@ public static Tuple, IEnumerable> ReadByteTuple2(int cou /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadSByteTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -274,7 +274,7 @@ public static Tuple, IEnumerable> ReadSByteTuple2(int /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadCharTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -288,7 +288,7 @@ public static Tuple, IEnumerable> ReadCharTuple2(int cou /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadDecimalTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -302,7 +302,7 @@ public static Tuple, IEnumerable> ReadDecimalTuple /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadDoubleTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -316,7 +316,7 @@ public static Tuple, IEnumerable> ReadDoubleTuple2(i /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadSingleTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -330,7 +330,7 @@ public static Tuple, IEnumerable> ReadSingleTuple2(int /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadInt32Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -344,7 +344,7 @@ public static Tuple, IEnumerable> ReadInt32Tuple2(int coun /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadUInt32Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -358,7 +358,7 @@ public static Tuple, IEnumerable> ReadUInt32Tuple2(int c /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadInt64Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -372,7 +372,7 @@ public static Tuple, IEnumerable> ReadInt64Tuple2(int co /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadUInt64Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -386,7 +386,7 @@ public static Tuple, IEnumerable> ReadUInt64Tuple2(int /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadInt16Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -400,7 +400,7 @@ public static Tuple, IEnumerable> ReadInt16Tuple2(int /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadUInt16Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -414,7 +414,7 @@ public static Tuple, IEnumerable> ReadUInt16Tuple2(i /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadBigIntegerTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -428,7 +428,7 @@ public static Tuple, IEnumerable> ReadBigInt /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadStringTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -446,7 +446,7 @@ public static Tuple, IEnumerable> ReadStringTuple2(i /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadBooleanTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -460,7 +460,7 @@ public static Tuple, IEnumerable, IEnumerable> Rea /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadByteTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -474,7 +474,7 @@ public static Tuple, IEnumerable, IEnumerable> Rea /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadSByteTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -488,7 +488,7 @@ public static Tuple, IEnumerable, IEnumerable> /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadCharTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -502,7 +502,7 @@ public static Tuple, IEnumerable, IEnumerable> Rea /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadDecimalTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -516,7 +516,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadDoubleTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -530,7 +530,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadSingleTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -544,7 +544,7 @@ public static Tuple, IEnumerable, IEnumerable> /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadInt32Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -558,7 +558,7 @@ public static Tuple, IEnumerable, IEnumerable> ReadIn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadUInt32Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -572,7 +572,7 @@ public static Tuple, IEnumerable, IEnumerable> Rea /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadInt64Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -586,7 +586,7 @@ public static Tuple, IEnumerable, IEnumerable> Rea /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadUInt64Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -600,7 +600,7 @@ public static Tuple, IEnumerable, IEnumerable> /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadInt16Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -614,7 +614,7 @@ public static Tuple, IEnumerable, IEnumerable> /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadUInt16Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -628,7 +628,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadBigIntegerTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -642,7 +642,7 @@ public static Tuple, IEnumerable, IEnumerabl /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadStringTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -660,7 +660,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -674,7 +674,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -688,7 +688,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -702,7 +702,7 @@ public static Tuple, IEnumerable, IEnumerable, /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -716,7 +716,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -730,7 +730,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -744,7 +744,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -758,7 +758,7 @@ public static Tuple, IEnumerable, IEnumerable, /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -772,7 +772,7 @@ public static Tuple, IEnumerable, IEnumerable, IEnume /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -786,7 +786,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -800,7 +800,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -814,7 +814,7 @@ public static Tuple, IEnumerable, IEnumerable, /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -828,7 +828,7 @@ public static Tuple, IEnumerable, IEnumerable, /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -842,7 +842,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -856,7 +856,7 @@ public static Tuple, IEnumerable, IEnumerabl /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadStringTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -874,7 +874,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -888,7 +888,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -902,7 +902,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -916,7 +916,7 @@ public static Tuple, IEnumerable, IEnumerable, /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -930,7 +930,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -944,7 +944,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -958,7 +958,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -972,7 +972,7 @@ public static Tuple, IEnumerable, IEnumerable, /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -986,7 +986,7 @@ public static Tuple, IEnumerable, IEnumerable, IEnume /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1000,7 +1000,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1014,7 +1014,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1028,7 +1028,7 @@ public static Tuple, IEnumerable, IEnumerable, /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1042,7 +1042,7 @@ public static Tuple, IEnumerable, IEnumerable, /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1056,7 +1056,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1070,7 +1070,7 @@ public static Tuple, IEnumerable, IEnumerabl /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadStringTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1088,7 +1088,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1102,7 +1102,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1116,7 +1116,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1130,7 +1130,7 @@ public static Tuple, IEnumerable, IEnumerable, /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1144,7 +1144,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1158,7 +1158,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1172,7 +1172,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1186,7 +1186,7 @@ public static Tuple, IEnumerable, IEnumerable, /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1200,7 +1200,7 @@ public static Tuple, IEnumerable, IEnumerable, IEnume /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1214,7 +1214,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1228,7 +1228,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1242,7 +1242,7 @@ public static Tuple, IEnumerable, IEnumerable, /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1256,7 +1256,7 @@ public static Tuple, IEnumerable, IEnumerable, /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1270,7 +1270,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1284,7 +1284,7 @@ public static Tuple, IEnumerable, IEnumerabl /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadStringTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1302,7 +1302,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1316,7 +1316,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1330,7 +1330,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1344,7 +1344,7 @@ public static Tuple, IEnumerable, IEnumerable, /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1358,7 +1358,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1372,7 +1372,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1386,7 +1386,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1400,7 +1400,7 @@ public static Tuple, IEnumerable, IEnumerable, /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1414,7 +1414,7 @@ public static Tuple, IEnumerable, IEnumerable, IEnume /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1428,7 +1428,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1442,7 +1442,7 @@ public static Tuple, IEnumerable, IEnumerable, IEn /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1456,7 +1456,7 @@ public static Tuple, IEnumerable, IEnumerable, /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1470,7 +1470,7 @@ public static Tuple, IEnumerable, IEnumerable, /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1484,7 +1484,7 @@ public static Tuple, IEnumerable, IEnumerable /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1498,7 +1498,7 @@ public static Tuple, IEnumerable, IEnumerabl /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadStringTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) diff --git a/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs b/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs index 6182ef7..9c74ac2 100644 --- a/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs @@ -223,7 +223,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadBooleanTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -237,7 +237,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadByteTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -251,7 +251,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadSByteTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -265,7 +265,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadCharTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -279,7 +279,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadDecimalTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -293,7 +293,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadDoubleTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -307,7 +307,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadSingleTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -321,7 +321,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadInt32Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -335,7 +335,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadUInt32Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -349,7 +349,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadInt64Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -363,7 +363,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadUInt64Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -377,7 +377,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadInt16Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -391,7 +391,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadUInt16Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -405,7 +405,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadBigIntegerTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -423,7 +423,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadBooleanTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -437,7 +437,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadByteTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -451,7 +451,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadSByteTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -465,7 +465,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadCharTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -479,7 +479,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadDecimalTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -493,7 +493,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadDoubleTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -507,7 +507,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadSingleTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -521,7 +521,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadInt32Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -535,7 +535,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadUInt32Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -549,7 +549,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadInt64Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -563,7 +563,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadUInt64Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -577,7 +577,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadInt16Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -591,7 +591,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadUInt16Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -605,7 +605,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadBigIntegerTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -623,7 +623,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -637,7 +637,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -651,7 +651,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -665,7 +665,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -679,7 +679,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -693,7 +693,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -707,7 +707,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -721,7 +721,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -735,7 +735,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -749,7 +749,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -763,7 +763,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -777,7 +777,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -791,7 +791,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -805,7 +805,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -823,7 +823,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -837,7 +837,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -851,7 +851,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -865,7 +865,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -879,7 +879,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -893,7 +893,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -907,7 +907,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -921,7 +921,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -935,7 +935,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -949,7 +949,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -963,7 +963,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -977,7 +977,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -991,7 +991,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1005,7 +1005,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1023,7 +1023,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1037,7 +1037,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1051,7 +1051,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1065,7 +1065,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1079,7 +1079,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1093,7 +1093,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1107,7 +1107,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1121,7 +1121,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1135,7 +1135,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1149,7 +1149,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1163,7 +1163,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1177,7 +1177,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1191,7 +1191,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1205,7 +1205,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1223,7 +1223,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1237,7 +1237,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1251,7 +1251,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1265,7 +1265,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1279,7 +1279,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1293,7 +1293,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1307,7 +1307,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1321,7 +1321,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1335,7 +1335,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1349,7 +1349,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1363,7 +1363,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1377,7 +1377,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1391,7 +1391,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) @@ -1405,7 +1405,7 @@ public static partial class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) From 88efd62a2f74dc395a58a23066bf21cafa2211d2 Mon Sep 17 00:00:00 2001 From: Alvin Seville Date: Fri, 29 May 2020 11:43:12 +1000 Subject: [PATCH 084/102] #112 - cleanup - formatting - comments --- NETMouse - .NET release/Utils/Base.Input.cs | 44 +++++++++---------- .../Utils/Base.Nullable.Input.cs | 31 ++++++------- NETMouse - .NET release/Utils/Base.Other.cs | 2 - 3 files changed, 35 insertions(+), 42 deletions(-) diff --git a/NETMouse - .NET release/Utils/Base.Input.cs b/NETMouse - .NET release/Utils/Base.Input.cs index 3c9673b..c1437b1 100644 --- a/NETMouse - .NET release/Utils/Base.Input.cs +++ b/NETMouse - .NET release/Utils/Base.Input.cs @@ -9,11 +9,10 @@ namespace ABCNET.Utils /// public static partial class Base { - #region public /// - /// Boolean. [ IDE PascalABC.NET.] + /// Boolean. /// /// . /// . @@ -30,7 +29,7 @@ public static bool ReadBoolean(string prompt = EmptyStringHelper.Empty) } /// - /// Byte. [ IDE PascalABC.NET.] + /// Byte. /// /// . /// . @@ -47,7 +46,7 @@ public static byte ReadByte(string prompt = EmptyStringHelper.Empty) } /// - /// SByte. [ IDE PascalABC.NET.] + /// SByte. /// /// . /// . @@ -64,7 +63,7 @@ public static sbyte ReadSByte(string prompt = EmptyStringHelper.Empty) } /// - /// Char. [ IDE PascalABC.NET.] + /// Char. /// /// . /// . @@ -75,7 +74,7 @@ public static char ReadChar(string prompt = EmptyStringHelper.Empty) } /// - /// Decimal. [ IDE PascalABC.NET.] + /// Decimal. /// /// . /// . @@ -92,7 +91,7 @@ public static decimal ReadDecimal(string prompt = EmptyStringHelper.Empty) } /// - /// Double. [ IDE PascalABC.NET.] + /// Double. /// /// . /// . @@ -109,7 +108,7 @@ public static double ReadDouble(string prompt = EmptyStringHelper.Empty) } /// - /// Single. [ IDE PascalABC.NET.] + /// Single. /// /// . /// . @@ -126,7 +125,7 @@ public static float ReadSingle(string prompt = EmptyStringHelper.Empty) } /// - /// Int32. [ IDE PascalABC.NET.] + /// Int32. /// /// . /// . @@ -143,7 +142,7 @@ public static int ReadInt32(string prompt = EmptyStringHelper.Empty) } /// - /// UInt32. [ IDE PascalABC.NET.] + /// UInt32. /// /// . /// . @@ -160,7 +159,7 @@ public static uint ReadUInt32(string prompt = EmptyStringHelper.Empty) } /// - /// Int64. [ IDE PascalABC.NET.] + /// Int64. /// /// . /// . @@ -177,7 +176,7 @@ public static long ReadInt64(string prompt = EmptyStringHelper.Empty) } /// - /// UInt64. [ IDE PascalABC.NET.] + /// UInt64. /// /// . /// . @@ -194,7 +193,7 @@ public static ulong ReadUInt64(string prompt = EmptyStringHelper.Empty) } /// - /// Int16. [ IDE PascalABC.NET.] + /// Int16. /// /// . /// . @@ -211,7 +210,7 @@ public static short ReadInt16(string prompt = EmptyStringHelper.Empty) } /// - /// UInt16. [ IDE PascalABC.NET.] + /// UInt16. /// /// . /// . @@ -228,7 +227,7 @@ public static ushort ReadUInt16(string prompt = EmptyStringHelper.Empty) } /// - /// String. [ IDE PascalABC.NET.] + /// String. /// /// . /// . @@ -239,7 +238,7 @@ public static string ReadString(string prompt = EmptyStringHelper.Empty) } /// - /// BigInteger. [ IDE PascalABC.NET.] + /// BigInteger. /// /// . /// . @@ -255,18 +254,18 @@ public static BigInteger ReadBigInteger(string prompt = EmptyStringHelper.Empty) return result; } - /// - /// [0;1). - /// + /// + /// [0;1). + /// /// . public static double Random() { return RandomHelper.Random.NextDouble(); } - /// - /// [0;1). - /// + /// + /// [0;1). + /// /// . [Obsolete(ObsoletePABCSystemStyleHelper.Message + "Base.Random.")] public static double Rand() @@ -333,6 +332,5 @@ public static double Rand(double low, double high) } #endregion public - } } \ No newline at end of file diff --git a/NETMouse - .NET release/Utils/Base.Nullable.Input.cs b/NETMouse - .NET release/Utils/Base.Nullable.Input.cs index 702e8c5..94298d4 100644 --- a/NETMouse - .NET release/Utils/Base.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/Base.Nullable.Input.cs @@ -1,5 +1,4 @@ using System.Numerics; -using System; using ABCNET.Extensions; namespace ABCNET.Utils @@ -14,11 +13,10 @@ public static partial class Base /// public static partial class Nullable { - #region public /// - /// Читает значение типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Boolean?. /// /// Приглашение к вводу. /// Значение. @@ -37,7 +35,7 @@ public static partial class Nullable } /// - /// Читает значение типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Byte?. /// /// Приглашение к вводу. /// Значение. @@ -56,7 +54,7 @@ public static partial class Nullable } /// - /// Читает значение типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа SByte?. /// /// Приглашение к вводу. /// Значение. @@ -75,7 +73,7 @@ public static partial class Nullable } /// - /// Читает значение типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Char?. /// /// Приглашение к вводу. /// Значение. @@ -86,7 +84,7 @@ public static partial class Nullable } /// - /// Читает значение типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Decimal?. /// /// Приглашение к вводу. /// Значение. @@ -105,7 +103,7 @@ public static partial class Nullable } /// - /// Читает значение типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Double?. /// /// Приглашение к вводу. /// Значение. @@ -124,7 +122,7 @@ public static partial class Nullable } /// - /// Читает значение типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Single?. /// /// Приглашение к вводу. /// Значение. @@ -143,7 +141,7 @@ public static partial class Nullable } /// - /// Читает значение типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Int32?. /// /// Приглашение к вводу. /// Значение. @@ -162,7 +160,7 @@ public static partial class Nullable } /// - /// Читает значение типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа UInt32?. /// /// Приглашение к вводу. /// Значение. @@ -181,7 +179,7 @@ public static partial class Nullable } /// - /// Читает значение типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Int64?. /// /// Приглашение к вводу. /// Значение. @@ -200,7 +198,7 @@ public static partial class Nullable } /// - /// Читает значение типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа UInt64?. /// /// Приглашение к вводу. /// Значение. @@ -219,7 +217,7 @@ public static partial class Nullable } /// - /// Читает значение типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Int16?. /// /// Приглашение к вводу. /// Значение. @@ -238,7 +236,7 @@ public static partial class Nullable } /// - /// Читает значение типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа UInt16?. /// /// Приглашение к вводу. /// Значение. @@ -257,7 +255,7 @@ public static partial class Nullable } /// - /// Читает значение типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа BigInteger?. /// /// Приглашение к вводу. /// Значение. @@ -285,7 +283,6 @@ private static string InternalReadTrimmedString(string prompt) } #endregion private - } } } diff --git a/NETMouse - .NET release/Utils/Base.Other.cs b/NETMouse - .NET release/Utils/Base.Other.cs index 44053c5..0cf4987 100644 --- a/NETMouse - .NET release/Utils/Base.Other.cs +++ b/NETMouse - .NET release/Utils/Base.Other.cs @@ -5,7 +5,6 @@ /// public static partial class Base { - #region public /// @@ -21,6 +20,5 @@ public static void Swap(ref T x, ref T y) } #endregion public - } } From b1c43e85dd90919841a1007838b7fd34e1b0e4d4 Mon Sep 17 00:00:00 2001 From: Alvin Seville Date: Fri, 29 May 2020 12:38:36 +1000 Subject: [PATCH 085/102] #30 - cleanup - cleanup: - formatting - comments - refactoring --- .../Utils/Tuple.Generators.cs | 18 - NETMouse - .NET release/Utils/Tuple.Input.cs | 868 ++++++++-------- .../Utils/Tuple.Nullable.Input.cs | 927 ++++++++---------- 3 files changed, 836 insertions(+), 977 deletions(-) diff --git a/NETMouse - .NET release/Utils/Tuple.Generators.cs b/NETMouse - .NET release/Utils/Tuple.Generators.cs index b51b660..e303489 100644 --- a/NETMouse - .NET release/Utils/Tuple.Generators.cs +++ b/NETMouse - .NET release/Utils/Tuple.Generators.cs @@ -7,11 +7,8 @@ namespace ABCNET.Utils /// public static partial class Tuple { - #region public - #region Of - /// /// 2 . /// @@ -298,10 +295,6 @@ public static Tuple By7(T first, Func next) return Of(item1, item2, item3, item4, item5, item6, item7); } - #endregion - - #region RandomInt - /// /// Int32. /// @@ -373,10 +366,6 @@ public static Tuple Random7(int low = Int32Bo Base.Random(low, high)); } - #endregion - - #region RandomDouble - /// /// Double. /// @@ -448,10 +437,6 @@ public static Tuple Rand Base.Random(low, high)); } - #endregion - - #region Fill - /// /// , . /// @@ -517,9 +502,6 @@ public static Tuple Fill7(T value) value); } - #endregion - #endregion public - } } \ No newline at end of file diff --git a/NETMouse - .NET release/Utils/Tuple.Input.cs b/NETMouse - .NET release/Utils/Tuple.Input.cs index b646d7a..c2e01c7 100644 --- a/NETMouse - .NET release/Utils/Tuple.Input.cs +++ b/NETMouse - .NET release/Utils/Tuple.Input.cs @@ -8,13 +8,97 @@ namespace ABCNET.Utils /// public static partial class Tuple { - #region public - #region ReadBoolean + /// + /// Читает кортеж из двух значений типа BigInteger. + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple2(string prompt = null) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Of(Base.ReadBigInteger(string.Format(prompt, 0)), + Base.ReadBigInteger(string.Format(prompt, 1))); + } + + /// + /// Читает кортеж из трёх значений типа BigInteger. + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple3(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Of(Base.ReadBigInteger(string.Format(prompt, 0)), + Base.ReadBigInteger(string.Format(prompt, 1)), + Base.ReadBigInteger(string.Format(prompt, 2))); + } + + /// + /// Читает кортеж из четырёх значений типа BigInteger. + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple4(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Of(Base.ReadBigInteger(string.Format(prompt, 0)), + Base.ReadBigInteger(string.Format(prompt, 1)), + Base.ReadBigInteger(string.Format(prompt, 2)), + Base.ReadBigInteger(string.Format(prompt, 3))); + } + + /// + /// Читает кортеж из пяти значений типа BigInteger. + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple5(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Of(Base.ReadBigInteger(string.Format(prompt, 0)), + Base.ReadBigInteger(string.Format(prompt, 1)), + Base.ReadBigInteger(string.Format(prompt, 2)), + Base.ReadBigInteger(string.Format(prompt, 3)), + Base.ReadBigInteger(string.Format(prompt, 4))); + } + + /// + /// Читает кортеж из шести значений типа BigInteger. + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple6(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Of(Base.ReadBigInteger(string.Format(prompt, 0)), + Base.ReadBigInteger(string.Format(prompt, 1)), + Base.ReadBigInteger(string.Format(prompt, 2)), + Base.ReadBigInteger(string.Format(prompt, 3)), + Base.ReadBigInteger(string.Format(prompt, 4)), + Base.ReadBigInteger(string.Format(prompt, 5))); + } + + /// + /// Читает кортеж из семи значений типа BigInteger. + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple7(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Of(Base.ReadBigInteger(string.Format(prompt, 0)), + Base.ReadBigInteger(string.Format(prompt, 1)), + Base.ReadBigInteger(string.Format(prompt, 2)), + Base.ReadBigInteger(string.Format(prompt, 3)), + Base.ReadBigInteger(string.Format(prompt, 4)), + Base.ReadBigInteger(string.Format(prompt, 5)), + Base.ReadBigInteger(string.Format(prompt, 6))); + } /// - /// Читает кортеж из двух значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Boolean. /// /// Кортеж. public static Tuple ReadBooleanTuple2(string prompt = null) @@ -26,7 +110,7 @@ public static Tuple ReadBooleanTuple2(string prompt = null) } /// - /// Читает кортеж из трёх значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Boolean. /// /// Кортеж. public static Tuple ReadBooleanTuple3(string prompt = EmptyStringHelper.Empty) @@ -39,7 +123,7 @@ public static Tuple ReadBooleanTuple3(string prompt = EmptyStr } /// - /// Читает кортеж из четырёх значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Boolean. /// /// Кортеж. public static Tuple ReadBooleanTuple4(string prompt = EmptyStringHelper.Empty) @@ -53,7 +137,7 @@ public static Tuple ReadBooleanTuple4(string prompt = Em } /// - /// Читает кортеж из пяти значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Boolean. /// /// Кортеж. public static Tuple ReadBooleanTuple5(string prompt = EmptyStringHelper.Empty) @@ -68,7 +152,7 @@ public static Tuple ReadBooleanTuple5(string promp } /// - /// Читает кортеж из шести значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Boolean. /// /// Кортеж. public static Tuple ReadBooleanTuple6(string prompt = EmptyStringHelper.Empty) @@ -84,7 +168,7 @@ public static Tuple ReadBooleanTuple6(string } /// - /// Читает кортеж из семи значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Boolean. /// /// Кортеж. public static Tuple ReadBooleanTuple7(string prompt = EmptyStringHelper.Empty) @@ -100,12 +184,8 @@ public static Tuple ReadBooleanTuple7( Base.ReadBoolean(string.Format(prompt, 6))); } - #endregion - - #region ReadByte - /// - /// Читает кортеж из двух значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Byte. /// /// Кортеж. public static Tuple ReadByteTuple2(string prompt = null) @@ -117,7 +197,7 @@ public static Tuple ReadByteTuple2(string prompt = null) } /// - /// Читает кортеж из трёх значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Byte. /// /// Кортеж. public static Tuple ReadByteTuple3(string prompt = EmptyStringHelper.Empty) @@ -130,7 +210,7 @@ public static Tuple ReadByteTuple3(string prompt = EmptyString } /// - /// Читает кортеж из четырёх значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Byte. /// /// Кортеж. public static Tuple ReadByteTuple4(string prompt = EmptyStringHelper.Empty) @@ -144,7 +224,7 @@ public static Tuple ReadByteTuple4(string prompt = Empty } /// - /// Читает кортеж из пяти значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Byte. /// /// Кортеж. public static Tuple ReadByteTuple5(string prompt = EmptyStringHelper.Empty) @@ -159,7 +239,7 @@ public static Tuple ReadByteTuple5(string prompt = } /// - /// Читает кортеж из шести значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Byte. /// /// Кортеж. public static Tuple ReadByteTuple6(string prompt = EmptyStringHelper.Empty) @@ -175,7 +255,7 @@ public static Tuple ReadByteTuple6(string pr } /// - /// Читает кортеж из семи значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Byte. /// /// Кортеж. public static Tuple ReadByteTuple7(string prompt = EmptyStringHelper.Empty) @@ -191,103 +271,8 @@ public static Tuple ReadByteTuple7(str Base.ReadByte(string.Format(prompt, 6))); } - #endregion - - #region ReadSByte - - /// - /// Читает кортеж из двух значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Кортеж. - public static Tuple ReadSByteTuple2(string prompt = null) - { - prompt = prompt ?? EmptyStringHelper.Empty; - - return Of(Base.ReadSByte(string.Format(prompt, 0)), - Base.ReadSByte(string.Format(prompt, 1))); - } - - /// - /// Читает кортеж из трёх значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Кортеж. - public static Tuple ReadSByteTuple3(string prompt = EmptyStringHelper.Empty) - { - prompt = prompt ?? EmptyStringHelper.Empty; - - return Of(Base.ReadSByte(string.Format(prompt, 0)), - Base.ReadSByte(string.Format(prompt, 1)), - Base.ReadSByte(string.Format(prompt, 2))); - } - - /// - /// Читает кортеж из четырёх значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Кортеж. - public static Tuple ReadSByteTuple4(string prompt = EmptyStringHelper.Empty) - { - prompt = prompt ?? EmptyStringHelper.Empty; - - return Of(Base.ReadSByte(string.Format(prompt, 0)), - Base.ReadSByte(string.Format(prompt, 1)), - Base.ReadSByte(string.Format(prompt, 2)), - Base.ReadSByte(string.Format(prompt, 3))); - } - - /// - /// Читает кортеж из пяти значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Кортеж. - public static Tuple ReadSByteTuple5(string prompt = EmptyStringHelper.Empty) - { - prompt = prompt ?? EmptyStringHelper.Empty; - - return Of(Base.ReadSByte(string.Format(prompt, 0)), - Base.ReadSByte(string.Format(prompt, 1)), - Base.ReadSByte(string.Format(prompt, 2)), - Base.ReadSByte(string.Format(prompt, 3)), - Base.ReadSByte(string.Format(prompt, 4))); - } - - /// - /// Читает кортеж из шести значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Кортеж. - public static Tuple ReadSByteTuple6(string prompt = EmptyStringHelper.Empty) - { - prompt = prompt ?? EmptyStringHelper.Empty; - - return Of(Base.ReadSByte(string.Format(prompt, 0)), - Base.ReadSByte(string.Format(prompt, 1)), - Base.ReadSByte(string.Format(prompt, 2)), - Base.ReadSByte(string.Format(prompt, 3)), - Base.ReadSByte(string.Format(prompt, 4)), - Base.ReadSByte(string.Format(prompt, 5))); - } - - /// - /// Читает кортеж из семи значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Кортеж. - public static Tuple ReadSByteTuple7(string prompt = EmptyStringHelper.Empty) - { - prompt = prompt ?? EmptyStringHelper.Empty; - - return Of(Base.ReadSByte(string.Format(prompt, 0)), - Base.ReadSByte(string.Format(prompt, 1)), - Base.ReadSByte(string.Format(prompt, 2)), - Base.ReadSByte(string.Format(prompt, 3)), - Base.ReadSByte(string.Format(prompt, 4)), - Base.ReadSByte(string.Format(prompt, 5)), - Base.ReadSByte(string.Format(prompt, 6))); - } - - #endregion - - #region ReadChar - /// - /// Читает кортеж из двух значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Char. /// /// Кортеж. public static Tuple ReadCharTuple2(string prompt = null) @@ -299,7 +284,7 @@ public static Tuple ReadCharTuple2(string prompt = null) } /// - /// Читает кортеж из трёх значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Char. /// /// Кортеж. public static Tuple ReadCharTuple3(string prompt = EmptyStringHelper.Empty) @@ -312,7 +297,7 @@ public static Tuple ReadCharTuple3(string prompt = EmptyString } /// - /// Читает кортеж из четырёх значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Char. /// /// Кортеж. public static Tuple ReadCharTuple4(string prompt = EmptyStringHelper.Empty) @@ -326,7 +311,7 @@ public static Tuple ReadCharTuple4(string prompt = Empty } /// - /// Читает кортеж из пяти значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Char. /// /// Кортеж. public static Tuple ReadCharTuple5(string prompt = EmptyStringHelper.Empty) @@ -341,7 +326,7 @@ public static Tuple ReadCharTuple5(string prompt = } /// - /// Читает кортеж из шести значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Char. /// /// Кортеж. public static Tuple ReadCharTuple6(string prompt = EmptyStringHelper.Empty) @@ -357,7 +342,7 @@ public static Tuple ReadCharTuple6(string pr } /// - /// Читает кортеж из семи значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Char. /// /// Кортеж. public static Tuple ReadCharTuple7(string prompt = EmptyStringHelper.Empty) @@ -373,12 +358,8 @@ public static Tuple ReadCharTuple7(str Base.ReadChar(string.Format(prompt, 6))); } - #endregion - - #region ReadDecimal - /// - /// Читает кортеж из двух значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Decimal. /// /// Кортеж. public static Tuple ReadDecimalTuple2(string prompt = null) @@ -390,7 +371,7 @@ public static Tuple ReadDecimalTuple2(string prompt = null) } /// - /// Читает кортеж из трёх значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Decimal. /// /// Кортеж. public static Tuple ReadDecimalTuple3(string prompt = EmptyStringHelper.Empty) @@ -403,7 +384,7 @@ public static Tuple ReadDecimalTuple3(string prompt = } /// - /// Читает кортеж из четырёх значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Decimal. /// /// Кортеж. public static Tuple ReadDecimalTuple4(string prompt = EmptyStringHelper.Empty) @@ -417,7 +398,7 @@ public static Tuple ReadDecimalTuple4(string } /// - /// Читает кортеж из пяти значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Decimal. /// /// Кортеж. public static Tuple ReadDecimalTuple5(string prompt = EmptyStringHelper.Empty) @@ -432,7 +413,7 @@ public static Tuple ReadDecimalTupl } /// - /// Читает кортеж из шести значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Decimal. /// /// Кортеж. public static Tuple ReadDecimalTuple6(string prompt = EmptyStringHelper.Empty) @@ -448,7 +429,7 @@ public static Tuple ReadDe } /// - /// Читает кортеж из семи значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Decimal. /// /// Кортеж. public static Tuple ReadDecimalTuple7(string prompt = EmptyStringHelper.Empty) @@ -464,12 +445,8 @@ public static Tuple - /// Читает кортеж из двух значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Double. /// /// Кортеж. public static Tuple ReadDoubleTuple2(string prompt = null) @@ -481,7 +458,7 @@ public static Tuple ReadDoubleTuple2(string prompt = null) } /// - /// Читает кортеж из трёх значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Double. /// /// Кортеж. public static Tuple ReadDoubleTuple3(string prompt = EmptyStringHelper.Empty) @@ -494,7 +471,7 @@ public static Tuple ReadDoubleTuple3(string prompt = Emp } /// - /// Читает кортеж из четырёх значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Double. /// /// Кортеж. public static Tuple ReadDoubleTuple4(string prompt = EmptyStringHelper.Empty) @@ -508,7 +485,7 @@ public static Tuple ReadDoubleTuple4(string prom } /// - /// Читает кортеж из пяти значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Double. /// /// Кортеж. public static Tuple ReadDoubleTuple5(string prompt = EmptyStringHelper.Empty) @@ -523,7 +500,7 @@ public static Tuple ReadDoubleTuple5(str } /// - /// Читает кортеж из шести значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Double. /// /// Кортеж. public static Tuple ReadDoubleTuple6(string prompt = EmptyStringHelper.Empty) @@ -539,7 +516,7 @@ public static Tuple ReadDoubleTu } /// - /// Читает кортеж из семи значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Double. /// /// Кортеж. public static Tuple ReadDoubleTuple7(string prompt = EmptyStringHelper.Empty) @@ -555,103 +532,95 @@ public static Tuple Read Base.ReadDouble(string.Format(prompt, 6))); } - #endregion - - #region ReadSingle - /// - /// Читает кортеж из двух значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Int16. /// /// Кортеж. - public static Tuple ReadSingleTuple2(string prompt = null) + public static Tuple ReadInt16Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSingle(string.Format(prompt, 0)), - Base.ReadSingle(string.Format(prompt, 1))); + return Of(Base.ReadInt16(string.Format(prompt, 0)), + Base.ReadInt16(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Int16. /// /// Кортеж. - public static Tuple ReadSingleTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSingle(string.Format(prompt, 0)), - Base.ReadSingle(string.Format(prompt, 1)), - Base.ReadSingle(string.Format(prompt, 2))); + return Of(Base.ReadInt16(string.Format(prompt, 0)), + Base.ReadInt16(string.Format(prompt, 1)), + Base.ReadInt16(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Int16. /// /// Кортеж. - public static Tuple ReadSingleTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSingle(string.Format(prompt, 0)), - Base.ReadSingle(string.Format(prompt, 1)), - Base.ReadSingle(string.Format(prompt, 2)), - Base.ReadSingle(string.Format(prompt, 3))); + return Of(Base.ReadInt16(string.Format(prompt, 0)), + Base.ReadInt16(string.Format(prompt, 1)), + Base.ReadInt16(string.Format(prompt, 2)), + Base.ReadInt16(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Int16. /// /// Кортеж. - public static Tuple ReadSingleTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSingle(string.Format(prompt, 0)), - Base.ReadSingle(string.Format(prompt, 1)), - Base.ReadSingle(string.Format(prompt, 2)), - Base.ReadSingle(string.Format(prompt, 3)), - Base.ReadSingle(string.Format(prompt, 4))); + return Of(Base.ReadInt16(string.Format(prompt, 0)), + Base.ReadInt16(string.Format(prompt, 1)), + Base.ReadInt16(string.Format(prompt, 2)), + Base.ReadInt16(string.Format(prompt, 3)), + Base.ReadInt16(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Int16. /// /// Кортеж. - public static Tuple ReadSingleTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSingle(string.Format(prompt, 0)), - Base.ReadSingle(string.Format(prompt, 1)), - Base.ReadSingle(string.Format(prompt, 2)), - Base.ReadSingle(string.Format(prompt, 3)), - Base.ReadSingle(string.Format(prompt, 4)), - Base.ReadSingle(string.Format(prompt, 5))); + return Of(Base.ReadInt16(string.Format(prompt, 0)), + Base.ReadInt16(string.Format(prompt, 1)), + Base.ReadInt16(string.Format(prompt, 2)), + Base.ReadInt16(string.Format(prompt, 3)), + Base.ReadInt16(string.Format(prompt, 4)), + Base.ReadInt16(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Int16. /// /// Кортеж. - public static Tuple ReadSingleTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSingle(string.Format(prompt, 0)), - Base.ReadSingle(string.Format(prompt, 1)), - Base.ReadSingle(string.Format(prompt, 2)), - Base.ReadSingle(string.Format(prompt, 3)), - Base.ReadSingle(string.Format(prompt, 4)), - Base.ReadSingle(string.Format(prompt, 5)), - Base.ReadSingle(string.Format(prompt, 6))); + return Of(Base.ReadInt16(string.Format(prompt, 0)), + Base.ReadInt16(string.Format(prompt, 1)), + Base.ReadInt16(string.Format(prompt, 2)), + Base.ReadInt16(string.Format(prompt, 3)), + Base.ReadInt16(string.Format(prompt, 4)), + Base.ReadInt16(string.Format(prompt, 5)), + Base.ReadInt16(string.Format(prompt, 6))); } - #endregion - - #region ReadInt32 - /// - /// Читает кортеж из двух значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Int32. /// /// Кортеж. public static Tuple ReadInt32Tuple2(string prompt = null) @@ -663,7 +632,7 @@ public static Tuple ReadInt32Tuple2(string prompt = null) } /// - /// Читает кортеж из трёх значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Int32. /// /// Кортеж. public static Tuple ReadInt32Tuple3(string prompt = EmptyStringHelper.Empty) @@ -676,7 +645,7 @@ public static Tuple ReadInt32Tuple3(string prompt = EmptyStringHe } /// - /// Читает кортеж из четырёх значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Int32. /// /// Кортеж. public static Tuple ReadInt32Tuple4(string prompt = EmptyStringHelper.Empty) @@ -690,7 +659,7 @@ public static Tuple ReadInt32Tuple4(string prompt = EmptyStr } /// - /// Читает кортеж из пяти значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Int32. /// /// Кортеж. public static Tuple ReadInt32Tuple5(string prompt = EmptyStringHelper.Empty) @@ -705,7 +674,7 @@ public static Tuple ReadInt32Tuple5(string prompt = Emp } /// - /// Читает кортеж из шести значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Int32. /// /// Кортеж. public static Tuple ReadInt32Tuple6(string prompt = EmptyStringHelper.Empty) @@ -721,7 +690,7 @@ public static Tuple ReadInt32Tuple6(string prompt } /// - /// Читает кортеж из семи значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Int32. /// /// Кортеж. public static Tuple ReadInt32Tuple7(string prompt = EmptyStringHelper.Empty) @@ -737,376 +706,356 @@ public static Tuple ReadInt32Tuple7(string pr Base.ReadInt32(string.Format(prompt, 6))); } - #endregion - - #region ReadUInt32 - /// - /// Читает кортеж из двух значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Int64. /// /// Кортеж. - public static Tuple ReadUInt32Tuple2(string prompt = null) + public static Tuple ReadInt64Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt32(string.Format(prompt, 0)), - Base.ReadUInt32(string.Format(prompt, 1))); + return Of(Base.ReadInt64(string.Format(prompt, 0)), + Base.ReadInt64(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Int64. /// /// Кортеж. - public static Tuple ReadUInt32Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt32(string.Format(prompt, 0)), - Base.ReadUInt32(string.Format(prompt, 1)), - Base.ReadUInt32(string.Format(prompt, 2))); - } + return Of(Base.ReadInt64(string.Format(prompt, 0)), + Base.ReadInt64(string.Format(prompt, 1)), + Base.ReadInt64(string.Format(prompt, 2))); + } /// - /// Читает кортеж из четырёх значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Int64. /// /// Кортеж. - public static Tuple ReadUInt32Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt32(string.Format(prompt, 0)), - Base.ReadUInt32(string.Format(prompt, 1)), - Base.ReadUInt32(string.Format(prompt, 2)), - Base.ReadUInt32(string.Format(prompt, 3))); + return Of(Base.ReadInt64(string.Format(prompt, 0)), + Base.ReadInt64(string.Format(prompt, 1)), + Base.ReadInt64(string.Format(prompt, 2)), + Base.ReadInt64(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Int64. /// /// Кортеж. - public static Tuple ReadUInt32Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt32(string.Format(prompt, 0)), - Base.ReadUInt32(string.Format(prompt, 1)), - Base.ReadUInt32(string.Format(prompt, 2)), - Base.ReadUInt32(string.Format(prompt, 3)), - Base.ReadUInt32(string.Format(prompt, 4))); + return Of(Base.ReadInt64(string.Format(prompt, 0)), + Base.ReadInt64(string.Format(prompt, 1)), + Base.ReadInt64(string.Format(prompt, 2)), + Base.ReadInt64(string.Format(prompt, 3)), + Base.ReadInt64(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Int64. /// /// Кортеж. - public static Tuple ReadUInt32Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt32(string.Format(prompt, 0)), - Base.ReadUInt32(string.Format(prompt, 1)), - Base.ReadUInt32(string.Format(prompt, 2)), - Base.ReadUInt32(string.Format(prompt, 3)), - Base.ReadUInt32(string.Format(prompt, 4)), - Base.ReadUInt32(string.Format(prompt, 5))); + return Of(Base.ReadInt64(string.Format(prompt, 0)), + Base.ReadInt64(string.Format(prompt, 1)), + Base.ReadInt64(string.Format(prompt, 2)), + Base.ReadInt64(string.Format(prompt, 3)), + Base.ReadInt64(string.Format(prompt, 4)), + Base.ReadInt64(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Int64. /// /// Кортеж. - public static Tuple ReadUInt32Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt32(string.Format(prompt, 0)), - Base.ReadUInt32(string.Format(prompt, 1)), - Base.ReadUInt32(string.Format(prompt, 2)), - Base.ReadUInt32(string.Format(prompt, 3)), - Base.ReadUInt32(string.Format(prompt, 4)), - Base.ReadUInt32(string.Format(prompt, 5)), - Base.ReadUInt32(string.Format(prompt, 6))); + return Of(Base.ReadInt64(string.Format(prompt, 0)), + Base.ReadInt64(string.Format(prompt, 1)), + Base.ReadInt64(string.Format(prompt, 2)), + Base.ReadInt64(string.Format(prompt, 3)), + Base.ReadInt64(string.Format(prompt, 4)), + Base.ReadInt64(string.Format(prompt, 5)), + Base.ReadInt64(string.Format(prompt, 6))); } - #endregion - - #region ReadInt64 - /// - /// Читает кортеж из двух значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа SByte. /// /// Кортеж. - public static Tuple ReadInt64Tuple2(string prompt = null) + public static Tuple ReadSByteTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt64(string.Format(prompt, 0)), - Base.ReadInt64(string.Format(prompt, 1))); + return Of(Base.ReadSByte(string.Format(prompt, 0)), + Base.ReadSByte(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа SByte. /// /// Кортеж. - public static Tuple ReadInt64Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt64(string.Format(prompt, 0)), - Base.ReadInt64(string.Format(prompt, 1)), - Base.ReadInt64(string.Format(prompt, 2))); + return Of(Base.ReadSByte(string.Format(prompt, 0)), + Base.ReadSByte(string.Format(prompt, 1)), + Base.ReadSByte(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа SByte. /// /// Кортеж. - public static Tuple ReadInt64Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt64(string.Format(prompt, 0)), - Base.ReadInt64(string.Format(prompt, 1)), - Base.ReadInt64(string.Format(prompt, 2)), - Base.ReadInt64(string.Format(prompt, 3))); + return Of(Base.ReadSByte(string.Format(prompt, 0)), + Base.ReadSByte(string.Format(prompt, 1)), + Base.ReadSByte(string.Format(prompt, 2)), + Base.ReadSByte(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа SByte. /// /// Кортеж. - public static Tuple ReadInt64Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt64(string.Format(prompt, 0)), - Base.ReadInt64(string.Format(prompt, 1)), - Base.ReadInt64(string.Format(prompt, 2)), - Base.ReadInt64(string.Format(prompt, 3)), - Base.ReadInt64(string.Format(prompt, 4))); + return Of(Base.ReadSByte(string.Format(prompt, 0)), + Base.ReadSByte(string.Format(prompt, 1)), + Base.ReadSByte(string.Format(prompt, 2)), + Base.ReadSByte(string.Format(prompt, 3)), + Base.ReadSByte(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа SByte. /// /// Кортеж. - public static Tuple ReadInt64Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt64(string.Format(prompt, 0)), - Base.ReadInt64(string.Format(prompt, 1)), - Base.ReadInt64(string.Format(prompt, 2)), - Base.ReadInt64(string.Format(prompt, 3)), - Base.ReadInt64(string.Format(prompt, 4)), - Base.ReadInt64(string.Format(prompt, 5))); + return Of(Base.ReadSByte(string.Format(prompt, 0)), + Base.ReadSByte(string.Format(prompt, 1)), + Base.ReadSByte(string.Format(prompt, 2)), + Base.ReadSByte(string.Format(prompt, 3)), + Base.ReadSByte(string.Format(prompt, 4)), + Base.ReadSByte(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа SByte. /// /// Кортеж. - public static Tuple ReadInt64Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt64(string.Format(prompt, 0)), - Base.ReadInt64(string.Format(prompt, 1)), - Base.ReadInt64(string.Format(prompt, 2)), - Base.ReadInt64(string.Format(prompt, 3)), - Base.ReadInt64(string.Format(prompt, 4)), - Base.ReadInt64(string.Format(prompt, 5)), - Base.ReadInt64(string.Format(prompt, 6))); + return Of(Base.ReadSByte(string.Format(prompt, 0)), + Base.ReadSByte(string.Format(prompt, 1)), + Base.ReadSByte(string.Format(prompt, 2)), + Base.ReadSByte(string.Format(prompt, 3)), + Base.ReadSByte(string.Format(prompt, 4)), + Base.ReadSByte(string.Format(prompt, 5)), + Base.ReadSByte(string.Format(prompt, 6))); } - #endregion - - #region ReadUInt64 - /// - /// Читает кортеж из двух значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Single. /// /// Кортеж. - public static Tuple ReadUInt64Tuple2(string prompt = null) + public static Tuple ReadSingleTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt64(string.Format(prompt, 0)), - Base.ReadUInt64(string.Format(prompt, 1))); + return Of(Base.ReadSingle(string.Format(prompt, 0)), + Base.ReadSingle(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Single. /// /// Кортеж. - public static Tuple ReadUInt64Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt64(string.Format(prompt, 0)), - Base.ReadUInt64(string.Format(prompt, 1)), - Base.ReadUInt64(string.Format(prompt, 2))); + return Of(Base.ReadSingle(string.Format(prompt, 0)), + Base.ReadSingle(string.Format(prompt, 1)), + Base.ReadSingle(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Single. /// /// Кортеж. - public static Tuple ReadUInt64Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt64(string.Format(prompt, 0)), - Base.ReadUInt64(string.Format(prompt, 1)), - Base.ReadUInt64(string.Format(prompt, 2)), - Base.ReadUInt64(string.Format(prompt, 3))); + return Of(Base.ReadSingle(string.Format(prompt, 0)), + Base.ReadSingle(string.Format(prompt, 1)), + Base.ReadSingle(string.Format(prompt, 2)), + Base.ReadSingle(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Single. /// /// Кортеж. - public static Tuple ReadUInt64Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt64(string.Format(prompt, 0)), - Base.ReadUInt64(string.Format(prompt, 1)), - Base.ReadUInt64(string.Format(prompt, 2)), - Base.ReadUInt64(string.Format(prompt, 3)), - Base.ReadUInt64(string.Format(prompt, 4))); + return Of(Base.ReadSingle(string.Format(prompt, 0)), + Base.ReadSingle(string.Format(prompt, 1)), + Base.ReadSingle(string.Format(prompt, 2)), + Base.ReadSingle(string.Format(prompt, 3)), + Base.ReadSingle(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Single. /// /// Кортеж. - public static Tuple ReadUInt64Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt64(string.Format(prompt, 0)), - Base.ReadUInt64(string.Format(prompt, 1)), - Base.ReadUInt64(string.Format(prompt, 2)), - Base.ReadUInt64(string.Format(prompt, 3)), - Base.ReadUInt64(string.Format(prompt, 4)), - Base.ReadUInt64(string.Format(prompt, 5))); + return Of(Base.ReadSingle(string.Format(prompt, 0)), + Base.ReadSingle(string.Format(prompt, 1)), + Base.ReadSingle(string.Format(prompt, 2)), + Base.ReadSingle(string.Format(prompt, 3)), + Base.ReadSingle(string.Format(prompt, 4)), + Base.ReadSingle(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Single. /// /// Кортеж. - public static Tuple ReadUInt64Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt64(string.Format(prompt, 0)), - Base.ReadUInt64(string.Format(prompt, 1)), - Base.ReadUInt64(string.Format(prompt, 2)), - Base.ReadUInt64(string.Format(prompt, 3)), - Base.ReadUInt64(string.Format(prompt, 4)), - Base.ReadUInt64(string.Format(prompt, 5)), - Base.ReadUInt64(string.Format(prompt, 6))); + return Of(Base.ReadSingle(string.Format(prompt, 0)), + Base.ReadSingle(string.Format(prompt, 1)), + Base.ReadSingle(string.Format(prompt, 2)), + Base.ReadSingle(string.Format(prompt, 3)), + Base.ReadSingle(string.Format(prompt, 4)), + Base.ReadSingle(string.Format(prompt, 5)), + Base.ReadSingle(string.Format(prompt, 6))); } - #endregion - - #region ReadInt16 - /// - /// Читает кортеж из двух значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа String. /// /// Кортеж. - public static Tuple ReadInt16Tuple2(string prompt = null) + public static Tuple ReadStringTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt16(string.Format(prompt, 0)), - Base.ReadInt16(string.Format(prompt, 1))); + return Of(Base.ReadString(string.Format(prompt, 0)), + Base.ReadString(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа String. /// /// Кортеж. - public static Tuple ReadInt16Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadStringTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt16(string.Format(prompt, 0)), - Base.ReadInt16(string.Format(prompt, 1)), - Base.ReadInt16(string.Format(prompt, 2))); + return Of(Base.ReadString(string.Format(prompt, 0)), + Base.ReadString(string.Format(prompt, 1)), + Base.ReadString(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа String. /// /// Кортеж. - public static Tuple ReadInt16Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadStringTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt16(string.Format(prompt, 0)), - Base.ReadInt16(string.Format(prompt, 1)), - Base.ReadInt16(string.Format(prompt, 2)), - Base.ReadInt16(string.Format(prompt, 3))); + return Of(Base.ReadString(string.Format(prompt, 0)), + Base.ReadString(string.Format(prompt, 1)), + Base.ReadString(string.Format(prompt, 2)), + Base.ReadString(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа String. /// /// Кортеж. - public static Tuple ReadInt16Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadStringTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt16(string.Format(prompt, 0)), - Base.ReadInt16(string.Format(prompt, 1)), - Base.ReadInt16(string.Format(prompt, 2)), - Base.ReadInt16(string.Format(prompt, 3)), - Base.ReadInt16(string.Format(prompt, 4))); + return Of(Base.ReadString(string.Format(prompt, 0)), + Base.ReadString(string.Format(prompt, 1)), + Base.ReadString(string.Format(prompt, 2)), + Base.ReadString(string.Format(prompt, 3)), + Base.ReadString(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа String. /// /// Кортеж. - public static Tuple ReadInt16Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadStringTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt16(string.Format(prompt, 0)), - Base.ReadInt16(string.Format(prompt, 1)), - Base.ReadInt16(string.Format(prompt, 2)), - Base.ReadInt16(string.Format(prompt, 3)), - Base.ReadInt16(string.Format(prompt, 4)), - Base.ReadInt16(string.Format(prompt, 5))); + return Of(Base.ReadString(string.Format(prompt, 0)), + Base.ReadString(string.Format(prompt, 1)), + Base.ReadString(string.Format(prompt, 2)), + Base.ReadString(string.Format(prompt, 3)), + Base.ReadString(string.Format(prompt, 4)), + Base.ReadString(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа String. /// /// Кортеж. - public static Tuple ReadInt16Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadStringTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt16(string.Format(prompt, 0)), - Base.ReadInt16(string.Format(prompt, 1)), - Base.ReadInt16(string.Format(prompt, 2)), - Base.ReadInt16(string.Format(prompt, 3)), - Base.ReadInt16(string.Format(prompt, 4)), - Base.ReadInt16(string.Format(prompt, 5)), - Base.ReadInt16(string.Format(prompt, 6))); + return Of(Base.ReadString(string.Format(prompt, 0)), + Base.ReadString(string.Format(prompt, 1)), + Base.ReadString(string.Format(prompt, 2)), + Base.ReadString(string.Format(prompt, 3)), + Base.ReadString(string.Format(prompt, 4)), + Base.ReadString(string.Format(prompt, 5)), + Base.ReadString(string.Format(prompt, 6))); } - #endregion - - #region ReadUInt16 - /// - /// Читает кортеж из двух значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа UInt16. /// /// Кортеж. public static Tuple ReadUInt16Tuple2(string prompt = null) @@ -1118,7 +1067,7 @@ public static Tuple ReadUInt16Tuple2(string prompt = null) } /// - /// Читает кортеж из трёх значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа UInt16. /// /// Кортеж. public static Tuple ReadUInt16Tuple3(string prompt = EmptyStringHelper.Empty) @@ -1131,7 +1080,7 @@ public static Tuple ReadUInt16Tuple3(string prompt = Emp } /// - /// Читает кортеж из четырёх значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа UInt16. /// /// Кортеж. public static Tuple ReadUInt16Tuple4(string prompt = EmptyStringHelper.Empty) @@ -1145,7 +1094,7 @@ public static Tuple ReadUInt16Tuple4(string prom } /// - /// Читает кортеж из пяти значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа UInt16. /// /// Кортеж. public static Tuple ReadUInt16Tuple5(string prompt = EmptyStringHelper.Empty) @@ -1160,7 +1109,7 @@ public static Tuple ReadUInt16Tuple5(str } /// - /// Читает кортеж из шести значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа UInt16. /// /// Кортеж. public static Tuple ReadUInt16Tuple6(string prompt = EmptyStringHelper.Empty) @@ -1176,7 +1125,7 @@ public static Tuple ReadUInt16Tu } /// - /// Читает кортеж из семи значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа UInt16. /// /// Кортеж. public static Tuple ReadUInt16Tuple7(string prompt = EmptyStringHelper.Empty) @@ -1192,191 +1141,180 @@ public static Tuple Read Base.ReadUInt16(string.Format(prompt, 6))); } - #endregion - - #region ReadBigInteger - /// - /// Читает кортеж из двух значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа UInt32. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple2(string prompt = null) + public static Tuple ReadUInt32Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBigInteger(string.Format(prompt, 0)), - Base.ReadBigInteger(string.Format(prompt, 1))); + return Of(Base.ReadUInt32(string.Format(prompt, 0)), + Base.ReadUInt32(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа UInt32. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBigInteger(string.Format(prompt, 0)), - Base.ReadBigInteger(string.Format(prompt, 1)), - Base.ReadBigInteger(string.Format(prompt, 2))); + return Of(Base.ReadUInt32(string.Format(prompt, 0)), + Base.ReadUInt32(string.Format(prompt, 1)), + Base.ReadUInt32(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа UInt32. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBigInteger(string.Format(prompt, 0)), - Base.ReadBigInteger(string.Format(prompt, 1)), - Base.ReadBigInteger(string.Format(prompt, 2)), - Base.ReadBigInteger(string.Format(prompt, 3))); + return Of(Base.ReadUInt32(string.Format(prompt, 0)), + Base.ReadUInt32(string.Format(prompt, 1)), + Base.ReadUInt32(string.Format(prompt, 2)), + Base.ReadUInt32(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа UInt32. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBigInteger(string.Format(prompt, 0)), - Base.ReadBigInteger(string.Format(prompt, 1)), - Base.ReadBigInteger(string.Format(prompt, 2)), - Base.ReadBigInteger(string.Format(prompt, 3)), - Base.ReadBigInteger(string.Format(prompt, 4))); + return Of(Base.ReadUInt32(string.Format(prompt, 0)), + Base.ReadUInt32(string.Format(prompt, 1)), + Base.ReadUInt32(string.Format(prompt, 2)), + Base.ReadUInt32(string.Format(prompt, 3)), + Base.ReadUInt32(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа UInt32. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBigInteger(string.Format(prompt, 0)), - Base.ReadBigInteger(string.Format(prompt, 1)), - Base.ReadBigInteger(string.Format(prompt, 2)), - Base.ReadBigInteger(string.Format(prompt, 3)), - Base.ReadBigInteger(string.Format(prompt, 4)), - Base.ReadBigInteger(string.Format(prompt, 5))); + return Of(Base.ReadUInt32(string.Format(prompt, 0)), + Base.ReadUInt32(string.Format(prompt, 1)), + Base.ReadUInt32(string.Format(prompt, 2)), + Base.ReadUInt32(string.Format(prompt, 3)), + Base.ReadUInt32(string.Format(prompt, 4)), + Base.ReadUInt32(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа UInt32. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBigInteger(string.Format(prompt, 0)), - Base.ReadBigInteger(string.Format(prompt, 1)), - Base.ReadBigInteger(string.Format(prompt, 2)), - Base.ReadBigInteger(string.Format(prompt, 3)), - Base.ReadBigInteger(string.Format(prompt, 4)), - Base.ReadBigInteger(string.Format(prompt, 5)), - Base.ReadBigInteger(string.Format(prompt, 6))); + return Of(Base.ReadUInt32(string.Format(prompt, 0)), + Base.ReadUInt32(string.Format(prompt, 1)), + Base.ReadUInt32(string.Format(prompt, 2)), + Base.ReadUInt32(string.Format(prompt, 3)), + Base.ReadUInt32(string.Format(prompt, 4)), + Base.ReadUInt32(string.Format(prompt, 5)), + Base.ReadUInt32(string.Format(prompt, 6))); } - #endregion - - #region ReadString - /// - /// Читает кортеж из двух значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа UInt64. /// /// Кортеж. - public static Tuple ReadStringTuple2(string prompt = null) + public static Tuple ReadUInt64Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadString(string.Format(prompt, 0)), - Base.ReadString(string.Format(prompt, 1))); + return Of(Base.ReadUInt64(string.Format(prompt, 0)), + Base.ReadUInt64(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа UInt64. /// /// Кортеж. - public static Tuple ReadStringTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadString(string.Format(prompt, 0)), - Base.ReadString(string.Format(prompt, 1)), - Base.ReadString(string.Format(prompt, 2))); + return Of(Base.ReadUInt64(string.Format(prompt, 0)), + Base.ReadUInt64(string.Format(prompt, 1)), + Base.ReadUInt64(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа UInt64. /// /// Кортеж. - public static Tuple ReadStringTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadString(string.Format(prompt, 0)), - Base.ReadString(string.Format(prompt, 1)), - Base.ReadString(string.Format(prompt, 2)), - Base.ReadString(string.Format(prompt, 3))); + return Of(Base.ReadUInt64(string.Format(prompt, 0)), + Base.ReadUInt64(string.Format(prompt, 1)), + Base.ReadUInt64(string.Format(prompt, 2)), + Base.ReadUInt64(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа UInt64. /// /// Кортеж. - public static Tuple ReadStringTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadString(string.Format(prompt, 0)), - Base.ReadString(string.Format(prompt, 1)), - Base.ReadString(string.Format(prompt, 2)), - Base.ReadString(string.Format(prompt, 3)), - Base.ReadString(string.Format(prompt, 4))); + return Of(Base.ReadUInt64(string.Format(prompt, 0)), + Base.ReadUInt64(string.Format(prompt, 1)), + Base.ReadUInt64(string.Format(prompt, 2)), + Base.ReadUInt64(string.Format(prompt, 3)), + Base.ReadUInt64(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа UInt64. /// /// Кортеж. - public static Tuple ReadStringTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadString(string.Format(prompt, 0)), - Base.ReadString(string.Format(prompt, 1)), - Base.ReadString(string.Format(prompt, 2)), - Base.ReadString(string.Format(prompt, 3)), - Base.ReadString(string.Format(prompt, 4)), - Base.ReadString(string.Format(prompt, 5))); + return Of(Base.ReadUInt64(string.Format(prompt, 0)), + Base.ReadUInt64(string.Format(prompt, 1)), + Base.ReadUInt64(string.Format(prompt, 2)), + Base.ReadUInt64(string.Format(prompt, 3)), + Base.ReadUInt64(string.Format(prompt, 4)), + Base.ReadUInt64(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа UInt64. /// /// Кортеж. - public static Tuple ReadStringTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadString(string.Format(prompt, 0)), - Base.ReadString(string.Format(prompt, 1)), - Base.ReadString(string.Format(prompt, 2)), - Base.ReadString(string.Format(prompt, 3)), - Base.ReadString(string.Format(prompt, 4)), - Base.ReadString(string.Format(prompt, 5)), - Base.ReadString(string.Format(prompt, 6))); + return Of(Base.ReadUInt64(string.Format(prompt, 0)), + Base.ReadUInt64(string.Format(prompt, 1)), + Base.ReadUInt64(string.Format(prompt, 2)), + Base.ReadUInt64(string.Format(prompt, 3)), + Base.ReadUInt64(string.Format(prompt, 4)), + Base.ReadUInt64(string.Format(prompt, 5)), + Base.ReadUInt64(string.Format(prompt, 6))); } - #endregion - #endregion public - } -} +} \ No newline at end of file diff --git a/NETMouse - .NET release/Utils/Tuple.Nullable.Input.cs b/NETMouse - .NET release/Utils/Tuple.Nullable.Input.cs index be7cccb..7395e8c 100644 --- a/NETMouse - .NET release/Utils/Tuple.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/Tuple.Nullable.Input.cs @@ -4,9 +4,9 @@ namespace ABCNET.Utils { /// - /// Предоставляет функционал для работы с базовыми типами. + /// Предоставляет функционал для работы с ссылочными кортежами. /// - public static partial class Base + public static partial class Tuple { /// /// Предоставляет функционал для работы с Nullable типами. @@ -14,58 +14,141 @@ public static partial class Base public static partial class Nullable { - #region public + /// + /// Читает кортеж из двух значений типа BigInteger?. + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple2(string prompt = null) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 1))); + } + + /// + /// Читает кортеж из трёх значений типа BigInteger?. + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple3(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 2))); + } + + /// + /// Читает кортеж из четырёх значений типа BigInteger?. + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple4(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 2)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 3))); + } + + /// + /// Читает кортеж из пяти значений типа BigInteger?. + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple5(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 2)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 3)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 4))); + } + + /// + /// Читает кортеж из шести значений типа BigInteger?. + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple6(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; + + return Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 2)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 3)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 4)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 5))); + } + + /// + /// Читает кортеж из семи значений типа BigInteger?. + /// + /// Кортеж. + public static Tuple ReadBigIntegerTuple7(string prompt = EmptyStringHelper.Empty) + { + prompt = prompt ?? EmptyStringHelper.Empty; - #region ReadBoolean? + return Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 2)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 3)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 4)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 5)), + Base.Nullable.ReadBigInteger(string.Format(prompt, 6))); + } /// - /// Читает кортеж из двух значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Boolean?. /// /// Кортеж. public static Tuple ReadBooleanTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), Base.Nullable.ReadBoolean(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Boolean?. /// /// Кортеж. public static Tuple ReadBooleanTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), Base.Nullable.ReadBoolean(string.Format(prompt, 1)), Base.Nullable.ReadBoolean(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Boolean?. /// /// Кортеж. public static Tuple ReadBooleanTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), Base.Nullable.ReadBoolean(string.Format(prompt, 1)), Base.Nullable.ReadBoolean(string.Format(prompt, 2)), Base.Nullable.ReadBoolean(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Boolean?. /// /// Кортеж. public static Tuple ReadBooleanTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), Base.Nullable.ReadBoolean(string.Format(prompt, 1)), Base.Nullable.ReadBoolean(string.Format(prompt, 2)), Base.Nullable.ReadBoolean(string.Format(prompt, 3)), @@ -73,14 +156,14 @@ public static partial class Nullable } /// - /// Читает кортеж из шести значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Boolean?. /// /// Кортеж. public static Tuple ReadBooleanTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), Base.Nullable.ReadBoolean(string.Format(prompt, 1)), Base.Nullable.ReadBoolean(string.Format(prompt, 2)), Base.Nullable.ReadBoolean(string.Format(prompt, 3)), @@ -89,14 +172,14 @@ public static partial class Nullable } /// - /// Читает кортеж из семи значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Boolean?. /// /// Кортеж. public static Tuple ReadBooleanTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), Base.Nullable.ReadBoolean(string.Format(prompt, 1)), Base.Nullable.ReadBoolean(string.Format(prompt, 2)), Base.Nullable.ReadBoolean(string.Format(prompt, 3)), @@ -105,58 +188,54 @@ public static partial class Nullable Base.Nullable.ReadBoolean(string.Format(prompt, 6))); } - #endregion - - #region ReadByte? - /// - /// Читает кортеж из двух значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Byte?. /// /// Кортеж. public static Tuple ReadByteTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), Base.Nullable.ReadByte(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Byte?. /// /// Кортеж. public static Tuple ReadByteTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), Base.Nullable.ReadByte(string.Format(prompt, 1)), Base.Nullable.ReadByte(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Byte?. /// /// Кортеж. public static Tuple ReadByteTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), Base.Nullable.ReadByte(string.Format(prompt, 1)), Base.Nullable.ReadByte(string.Format(prompt, 2)), Base.Nullable.ReadByte(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Byte?. /// /// Кортеж. public static Tuple ReadByteTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), Base.Nullable.ReadByte(string.Format(prompt, 1)), Base.Nullable.ReadByte(string.Format(prompt, 2)), Base.Nullable.ReadByte(string.Format(prompt, 3)), @@ -164,14 +243,14 @@ public static partial class Nullable } /// - /// Читает кортеж из шести значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Byte?. /// /// Кортеж. public static Tuple ReadByteTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), Base.Nullable.ReadByte(string.Format(prompt, 1)), Base.Nullable.ReadByte(string.Format(prompt, 2)), Base.Nullable.ReadByte(string.Format(prompt, 3)), @@ -180,14 +259,14 @@ public static partial class Nullable } /// - /// Читает кортеж из семи значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Byte?. /// /// Кортеж. public static Tuple ReadByteTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), Base.Nullable.ReadByte(string.Format(prompt, 1)), Base.Nullable.ReadByte(string.Format(prompt, 2)), Base.Nullable.ReadByte(string.Format(prompt, 3)), @@ -196,149 +275,54 @@ public static partial class Nullable Base.Nullable.ReadByte(string.Format(prompt, 6))); } - #endregion - - #region ReadSByte? - - /// - /// Читает кортеж из двух значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Кортеж. - public static Tuple ReadSByteTuple2(string prompt = null) - { - prompt = prompt ?? EmptyStringHelper.Empty; - - return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), - Base.Nullable.ReadSByte(string.Format(prompt, 1))); - } - - /// - /// Читает кортеж из трёх значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Кортеж. - public static Tuple ReadSByteTuple3(string prompt = EmptyStringHelper.Empty) - { - prompt = prompt ?? EmptyStringHelper.Empty; - - return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), - Base.Nullable.ReadSByte(string.Format(prompt, 1)), - Base.Nullable.ReadSByte(string.Format(prompt, 2))); - } - - /// - /// Читает кортеж из четырёх значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Кортеж. - public static Tuple ReadSByteTuple4(string prompt = EmptyStringHelper.Empty) - { - prompt = prompt ?? EmptyStringHelper.Empty; - - return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), - Base.Nullable.ReadSByte(string.Format(prompt, 1)), - Base.Nullable.ReadSByte(string.Format(prompt, 2)), - Base.Nullable.ReadSByte(string.Format(prompt, 3))); - } - - /// - /// Читает кортеж из пяти значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Кортеж. - public static Tuple ReadSByteTuple5(string prompt = EmptyStringHelper.Empty) - { - prompt = prompt ?? EmptyStringHelper.Empty; - - return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), - Base.Nullable.ReadSByte(string.Format(prompt, 1)), - Base.Nullable.ReadSByte(string.Format(prompt, 2)), - Base.Nullable.ReadSByte(string.Format(prompt, 3)), - Base.Nullable.ReadSByte(string.Format(prompt, 4))); - } - - /// - /// Читает кортеж из шести значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Кортеж. - public static Tuple ReadSByteTuple6(string prompt = EmptyStringHelper.Empty) - { - prompt = prompt ?? EmptyStringHelper.Empty; - - return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), - Base.Nullable.ReadSByte(string.Format(prompt, 1)), - Base.Nullable.ReadSByte(string.Format(prompt, 2)), - Base.Nullable.ReadSByte(string.Format(prompt, 3)), - Base.Nullable.ReadSByte(string.Format(prompt, 4)), - Base.Nullable.ReadSByte(string.Format(prompt, 5))); - } - - /// - /// Читает кортеж из семи значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Кортеж. - public static Tuple ReadSByteTuple7(string prompt = EmptyStringHelper.Empty) - { - prompt = prompt ?? EmptyStringHelper.Empty; - - return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), - Base.Nullable.ReadSByte(string.Format(prompt, 1)), - Base.Nullable.ReadSByte(string.Format(prompt, 2)), - Base.Nullable.ReadSByte(string.Format(prompt, 3)), - Base.Nullable.ReadSByte(string.Format(prompt, 4)), - Base.Nullable.ReadSByte(string.Format(prompt, 5)), - Base.Nullable.ReadSByte(string.Format(prompt, 6))); - } - - #endregion - - #region ReadChar? - /// - /// Читает кортеж из двух значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Char?. /// /// Кортеж. public static Tuple ReadCharTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), Base.Nullable.ReadChar(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Char?. /// /// Кортеж. public static Tuple ReadCharTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), Base.Nullable.ReadChar(string.Format(prompt, 1)), Base.Nullable.ReadChar(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Char?. /// /// Кортеж. public static Tuple ReadCharTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), Base.Nullable.ReadChar(string.Format(prompt, 1)), Base.Nullable.ReadChar(string.Format(prompt, 2)), Base.Nullable.ReadChar(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Char?. /// /// Кортеж. public static Tuple ReadCharTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), Base.Nullable.ReadChar(string.Format(prompt, 1)), Base.Nullable.ReadChar(string.Format(prompt, 2)), Base.Nullable.ReadChar(string.Format(prompt, 3)), @@ -346,14 +330,14 @@ public static partial class Nullable } /// - /// Читает кортеж из шести значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Char?. /// /// Кортеж. public static Tuple ReadCharTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), Base.Nullable.ReadChar(string.Format(prompt, 1)), Base.Nullable.ReadChar(string.Format(prompt, 2)), Base.Nullable.ReadChar(string.Format(prompt, 3)), @@ -362,14 +346,14 @@ public static partial class Nullable } /// - /// Читает кортеж из семи значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Char?. /// /// Кортеж. public static Tuple ReadCharTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), Base.Nullable.ReadChar(string.Format(prompt, 1)), Base.Nullable.ReadChar(string.Format(prompt, 2)), Base.Nullable.ReadChar(string.Format(prompt, 3)), @@ -378,58 +362,54 @@ public static partial class Nullable Base.Nullable.ReadChar(string.Format(prompt, 6))); } - #endregion - - #region ReadDecimal? - /// - /// Читает кортеж из двух значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Decimal?. /// /// Кортеж. public static Tuple ReadDecimalTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), Base.Nullable.ReadDecimal(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Decimal?. /// /// Кортеж. public static Tuple ReadDecimalTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), Base.Nullable.ReadDecimal(string.Format(prompt, 1)), Base.Nullable.ReadDecimal(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Decimal?. /// /// Кортеж. public static Tuple ReadDecimalTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), Base.Nullable.ReadDecimal(string.Format(prompt, 1)), Base.Nullable.ReadDecimal(string.Format(prompt, 2)), Base.Nullable.ReadDecimal(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Decimal?. /// /// Кортеж. public static Tuple ReadDecimalTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), Base.Nullable.ReadDecimal(string.Format(prompt, 1)), Base.Nullable.ReadDecimal(string.Format(prompt, 2)), Base.Nullable.ReadDecimal(string.Format(prompt, 3)), @@ -437,14 +417,14 @@ public static partial class Nullable } /// - /// Читает кортеж из шести значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Decimal?. /// /// Кортеж. public static Tuple ReadDecimalTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), Base.Nullable.ReadDecimal(string.Format(prompt, 1)), Base.Nullable.ReadDecimal(string.Format(prompt, 2)), Base.Nullable.ReadDecimal(string.Format(prompt, 3)), @@ -453,14 +433,14 @@ public static partial class Nullable } /// - /// Читает кортеж из семи значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Decimal?. /// /// Кортеж. public static Tuple ReadDecimalTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), Base.Nullable.ReadDecimal(string.Format(prompt, 1)), Base.Nullable.ReadDecimal(string.Format(prompt, 2)), Base.Nullable.ReadDecimal(string.Format(prompt, 3)), @@ -469,58 +449,54 @@ public static partial class Nullable Base.Nullable.ReadDecimal(string.Format(prompt, 6))); } - #endregion - - #region ReadDouble? - /// - /// Читает кортеж из двух значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Double?. /// /// Кортеж. public static Tuple ReadDoubleTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), Base.Nullable.ReadDouble(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Double?. /// /// Кортеж. public static Tuple ReadDoubleTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), Base.Nullable.ReadDouble(string.Format(prompt, 1)), Base.Nullable.ReadDouble(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Double?. /// /// Кортеж. public static Tuple ReadDoubleTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), Base.Nullable.ReadDouble(string.Format(prompt, 1)), Base.Nullable.ReadDouble(string.Format(prompt, 2)), Base.Nullable.ReadDouble(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Double?. /// /// Кортеж. public static Tuple ReadDoubleTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), Base.Nullable.ReadDouble(string.Format(prompt, 1)), Base.Nullable.ReadDouble(string.Format(prompt, 2)), Base.Nullable.ReadDouble(string.Format(prompt, 3)), @@ -528,14 +504,14 @@ public static partial class Nullable } /// - /// Читает кортеж из шести значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Double?. /// /// Кортеж. public static Tuple ReadDoubleTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), Base.Nullable.ReadDouble(string.Format(prompt, 1)), Base.Nullable.ReadDouble(string.Format(prompt, 2)), Base.Nullable.ReadDouble(string.Format(prompt, 3)), @@ -544,14 +520,14 @@ public static partial class Nullable } /// - /// Читает кортеж из семи значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Double?. /// /// Кортеж. public static Tuple ReadDoubleTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), Base.Nullable.ReadDouble(string.Format(prompt, 1)), Base.Nullable.ReadDouble(string.Format(prompt, 2)), Base.Nullable.ReadDouble(string.Format(prompt, 3)), @@ -560,149 +536,141 @@ public static partial class Nullable Base.Nullable.ReadDouble(string.Format(prompt, 6))); } - #endregion - - #region ReadSingle? - /// - /// Читает кортеж из двух значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Int16?. /// /// Кортеж. - public static Tuple ReadSingleTuple2(string prompt = null) + public static Tuple ReadInt16Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), - Base.Nullable.ReadSingle(string.Format(prompt, 1))); + return Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), + Base.Nullable.ReadInt16(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Int16?. /// /// Кортеж. - public static Tuple ReadSingleTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), - Base.Nullable.ReadSingle(string.Format(prompt, 1)), - Base.Nullable.ReadSingle(string.Format(prompt, 2))); + return Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), + Base.Nullable.ReadInt16(string.Format(prompt, 1)), + Base.Nullable.ReadInt16(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Int16?. /// /// Кортеж. - public static Tuple ReadSingleTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), - Base.Nullable.ReadSingle(string.Format(prompt, 1)), - Base.Nullable.ReadSingle(string.Format(prompt, 2)), - Base.Nullable.ReadSingle(string.Format(prompt, 3))); + return Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), + Base.Nullable.ReadInt16(string.Format(prompt, 1)), + Base.Nullable.ReadInt16(string.Format(prompt, 2)), + Base.Nullable.ReadInt16(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Int16?. /// /// Кортеж. - public static Tuple ReadSingleTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), - Base.Nullable.ReadSingle(string.Format(prompt, 1)), - Base.Nullable.ReadSingle(string.Format(prompt, 2)), - Base.Nullable.ReadSingle(string.Format(prompt, 3)), - Base.Nullable.ReadSingle(string.Format(prompt, 4))); + return Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), + Base.Nullable.ReadInt16(string.Format(prompt, 1)), + Base.Nullable.ReadInt16(string.Format(prompt, 2)), + Base.Nullable.ReadInt16(string.Format(prompt, 3)), + Base.Nullable.ReadInt16(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Int16?. /// /// Кортеж. - public static Tuple ReadSingleTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), - Base.Nullable.ReadSingle(string.Format(prompt, 1)), - Base.Nullable.ReadSingle(string.Format(prompt, 2)), - Base.Nullable.ReadSingle(string.Format(prompt, 3)), - Base.Nullable.ReadSingle(string.Format(prompt, 4)), - Base.Nullable.ReadSingle(string.Format(prompt, 5))); + return Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), + Base.Nullable.ReadInt16(string.Format(prompt, 1)), + Base.Nullable.ReadInt16(string.Format(prompt, 2)), + Base.Nullable.ReadInt16(string.Format(prompt, 3)), + Base.Nullable.ReadInt16(string.Format(prompt, 4)), + Base.Nullable.ReadInt16(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Int16?. /// /// Кортеж. - public static Tuple ReadSingleTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), - Base.Nullable.ReadSingle(string.Format(prompt, 1)), - Base.Nullable.ReadSingle(string.Format(prompt, 2)), - Base.Nullable.ReadSingle(string.Format(prompt, 3)), - Base.Nullable.ReadSingle(string.Format(prompt, 4)), - Base.Nullable.ReadSingle(string.Format(prompt, 5)), - Base.Nullable.ReadSingle(string.Format(prompt, 6))); + return Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), + Base.Nullable.ReadInt16(string.Format(prompt, 1)), + Base.Nullable.ReadInt16(string.Format(prompt, 2)), + Base.Nullable.ReadInt16(string.Format(prompt, 3)), + Base.Nullable.ReadInt16(string.Format(prompt, 4)), + Base.Nullable.ReadInt16(string.Format(prompt, 5)), + Base.Nullable.ReadInt16(string.Format(prompt, 6))); } - #endregion - - #region ReadInt32? - /// - /// Читает кортеж из двух значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Int32?. /// /// Кортеж. public static Tuple ReadInt32Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), Base.Nullable.ReadInt32(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Int32?. /// /// Кортеж. public static Tuple ReadInt32Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), Base.Nullable.ReadInt32(string.Format(prompt, 1)), Base.Nullable.ReadInt32(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Int32?. /// /// Кортеж. public static Tuple ReadInt32Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), Base.Nullable.ReadInt32(string.Format(prompt, 1)), Base.Nullable.ReadInt32(string.Format(prompt, 2)), Base.Nullable.ReadInt32(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Int32?. /// /// Кортеж. public static Tuple ReadInt32Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), Base.Nullable.ReadInt32(string.Format(prompt, 1)), Base.Nullable.ReadInt32(string.Format(prompt, 2)), Base.Nullable.ReadInt32(string.Format(prompt, 3)), @@ -710,14 +678,14 @@ public static partial class Nullable } /// - /// Читает кортеж из шести значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Int32?. /// /// Кортеж. public static Tuple ReadInt32Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), Base.Nullable.ReadInt32(string.Format(prompt, 1)), Base.Nullable.ReadInt32(string.Format(prompt, 2)), Base.Nullable.ReadInt32(string.Format(prompt, 3)), @@ -726,14 +694,14 @@ public static partial class Nullable } /// - /// Читает кортеж из семи значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Int32?. /// /// Кортеж. public static Tuple ReadInt32Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), + return Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), Base.Nullable.ReadInt32(string.Format(prompt, 1)), Base.Nullable.ReadInt32(string.Format(prompt, 2)), Base.Nullable.ReadInt32(string.Format(prompt, 3)), @@ -742,556 +710,527 @@ public static partial class Nullable Base.Nullable.ReadInt32(string.Format(prompt, 6))); } - #endregion - - #region ReadUInt32? - /// - /// Читает кортеж из двух значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Int64?. /// /// Кортеж. - public static Tuple ReadUInt32Tuple2(string prompt = null) + public static Tuple ReadInt64Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), - Base.Nullable.ReadUInt32(string.Format(prompt, 1))); + return Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), + Base.Nullable.ReadInt64(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Int64?. /// /// Кортеж. - public static Tuple ReadUInt32Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), - Base.Nullable.ReadUInt32(string.Format(prompt, 1)), - Base.Nullable.ReadUInt32(string.Format(prompt, 2))); + return Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), + Base.Nullable.ReadInt64(string.Format(prompt, 1)), + Base.Nullable.ReadInt64(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Int64?. /// /// Кортеж. - public static Tuple ReadUInt32Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), - Base.Nullable.ReadUInt32(string.Format(prompt, 1)), - Base.Nullable.ReadUInt32(string.Format(prompt, 2)), - Base.Nullable.ReadUInt32(string.Format(prompt, 3))); + return Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), + Base.Nullable.ReadInt64(string.Format(prompt, 1)), + Base.Nullable.ReadInt64(string.Format(prompt, 2)), + Base.Nullable.ReadInt64(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Int64?. /// /// Кортеж. - public static Tuple ReadUInt32Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), - Base.Nullable.ReadUInt32(string.Format(prompt, 1)), - Base.Nullable.ReadUInt32(string.Format(prompt, 2)), - Base.Nullable.ReadUInt32(string.Format(prompt, 3)), - Base.Nullable.ReadUInt32(string.Format(prompt, 4))); + return Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), + Base.Nullable.ReadInt64(string.Format(prompt, 1)), + Base.Nullable.ReadInt64(string.Format(prompt, 2)), + Base.Nullable.ReadInt64(string.Format(prompt, 3)), + Base.Nullable.ReadInt64(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Int64?. /// /// Кортеж. - public static Tuple ReadUInt32Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), - Base.Nullable.ReadUInt32(string.Format(prompt, 1)), - Base.Nullable.ReadUInt32(string.Format(prompt, 2)), - Base.Nullable.ReadUInt32(string.Format(prompt, 3)), - Base.Nullable.ReadUInt32(string.Format(prompt, 4)), - Base.Nullable.ReadUInt32(string.Format(prompt, 5))); + return Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), + Base.Nullable.ReadInt64(string.Format(prompt, 1)), + Base.Nullable.ReadInt64(string.Format(prompt, 2)), + Base.Nullable.ReadInt64(string.Format(prompt, 3)), + Base.Nullable.ReadInt64(string.Format(prompt, 4)), + Base.Nullable.ReadInt64(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Int64?. /// /// Кортеж. - public static Tuple ReadUInt32Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), - Base.Nullable.ReadUInt32(string.Format(prompt, 1)), - Base.Nullable.ReadUInt32(string.Format(prompt, 2)), - Base.Nullable.ReadUInt32(string.Format(prompt, 3)), - Base.Nullable.ReadUInt32(string.Format(prompt, 4)), - Base.Nullable.ReadUInt32(string.Format(prompt, 5)), - Base.Nullable.ReadUInt32(string.Format(prompt, 6))); + return Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), + Base.Nullable.ReadInt64(string.Format(prompt, 1)), + Base.Nullable.ReadInt64(string.Format(prompt, 2)), + Base.Nullable.ReadInt64(string.Format(prompt, 3)), + Base.Nullable.ReadInt64(string.Format(prompt, 4)), + Base.Nullable.ReadInt64(string.Format(prompt, 5)), + Base.Nullable.ReadInt64(string.Format(prompt, 6))); } - #endregion - - #region ReadInt64? - /// - /// Читает кортеж из двух значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа SByte?. /// /// Кортеж. - public static Tuple ReadInt64Tuple2(string prompt = null) + public static Tuple ReadSByteTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), - Base.Nullable.ReadInt64(string.Format(prompt, 1))); + return Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), + Base.Nullable.ReadSByte(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа SByte?. /// /// Кортеж. - public static Tuple ReadInt64Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), - Base.Nullable.ReadInt64(string.Format(prompt, 1)), - Base.Nullable.ReadInt64(string.Format(prompt, 2))); + return Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), + Base.Nullable.ReadSByte(string.Format(prompt, 1)), + Base.Nullable.ReadSByte(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа SByte?. /// /// Кортеж. - public static Tuple ReadInt64Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), - Base.Nullable.ReadInt64(string.Format(prompt, 1)), - Base.Nullable.ReadInt64(string.Format(prompt, 2)), - Base.Nullable.ReadInt64(string.Format(prompt, 3))); + return Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), + Base.Nullable.ReadSByte(string.Format(prompt, 1)), + Base.Nullable.ReadSByte(string.Format(prompt, 2)), + Base.Nullable.ReadSByte(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа SByte?. /// /// Кортеж. - public static Tuple ReadInt64Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), - Base.Nullable.ReadInt64(string.Format(prompt, 1)), - Base.Nullable.ReadInt64(string.Format(prompt, 2)), - Base.Nullable.ReadInt64(string.Format(prompt, 3)), - Base.Nullable.ReadInt64(string.Format(prompt, 4))); + return Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), + Base.Nullable.ReadSByte(string.Format(prompt, 1)), + Base.Nullable.ReadSByte(string.Format(prompt, 2)), + Base.Nullable.ReadSByte(string.Format(prompt, 3)), + Base.Nullable.ReadSByte(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа SByte?. /// /// Кортеж. - public static Tuple ReadInt64Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), - Base.Nullable.ReadInt64(string.Format(prompt, 1)), - Base.Nullable.ReadInt64(string.Format(prompt, 2)), - Base.Nullable.ReadInt64(string.Format(prompt, 3)), - Base.Nullable.ReadInt64(string.Format(prompt, 4)), - Base.Nullable.ReadInt64(string.Format(prompt, 5))); + return Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), + Base.Nullable.ReadSByte(string.Format(prompt, 1)), + Base.Nullable.ReadSByte(string.Format(prompt, 2)), + Base.Nullable.ReadSByte(string.Format(prompt, 3)), + Base.Nullable.ReadSByte(string.Format(prompt, 4)), + Base.Nullable.ReadSByte(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа SByte?. /// /// Кортеж. - public static Tuple ReadInt64Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), - Base.Nullable.ReadInt64(string.Format(prompt, 1)), - Base.Nullable.ReadInt64(string.Format(prompt, 2)), - Base.Nullable.ReadInt64(string.Format(prompt, 3)), - Base.Nullable.ReadInt64(string.Format(prompt, 4)), - Base.Nullable.ReadInt64(string.Format(prompt, 5)), - Base.Nullable.ReadInt64(string.Format(prompt, 6))); + return Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), + Base.Nullable.ReadSByte(string.Format(prompt, 1)), + Base.Nullable.ReadSByte(string.Format(prompt, 2)), + Base.Nullable.ReadSByte(string.Format(prompt, 3)), + Base.Nullable.ReadSByte(string.Format(prompt, 4)), + Base.Nullable.ReadSByte(string.Format(prompt, 5)), + Base.Nullable.ReadSByte(string.Format(prompt, 6))); } - #endregion - - #region ReadUInt64? - /// - /// Читает кортеж из двух значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Single?. /// /// Кортеж. - public static Tuple ReadUInt64Tuple2(string prompt = null) + public static Tuple ReadSingleTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), - Base.Nullable.ReadUInt64(string.Format(prompt, 1))); + return Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), + Base.Nullable.ReadSingle(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Single?. /// /// Кортеж. - public static Tuple ReadUInt64Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), - Base.Nullable.ReadUInt64(string.Format(prompt, 1)), - Base.Nullable.ReadUInt64(string.Format(prompt, 2))); + return Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), + Base.Nullable.ReadSingle(string.Format(prompt, 1)), + Base.Nullable.ReadSingle(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Single?. /// /// Кортеж. - public static Tuple ReadUInt64Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), - Base.Nullable.ReadUInt64(string.Format(prompt, 1)), - Base.Nullable.ReadUInt64(string.Format(prompt, 2)), - Base.Nullable.ReadUInt64(string.Format(prompt, 3))); + return Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), + Base.Nullable.ReadSingle(string.Format(prompt, 1)), + Base.Nullable.ReadSingle(string.Format(prompt, 2)), + Base.Nullable.ReadSingle(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Single?. /// /// Кортеж. - public static Tuple ReadUInt64Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), - Base.Nullable.ReadUInt64(string.Format(prompt, 1)), - Base.Nullable.ReadUInt64(string.Format(prompt, 2)), - Base.Nullable.ReadUInt64(string.Format(prompt, 3)), - Base.Nullable.ReadUInt64(string.Format(prompt, 4))); + return Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), + Base.Nullable.ReadSingle(string.Format(prompt, 1)), + Base.Nullable.ReadSingle(string.Format(prompt, 2)), + Base.Nullable.ReadSingle(string.Format(prompt, 3)), + Base.Nullable.ReadSingle(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Single?. /// /// Кортеж. - public static Tuple ReadUInt64Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), - Base.Nullable.ReadUInt64(string.Format(prompt, 1)), - Base.Nullable.ReadUInt64(string.Format(prompt, 2)), - Base.Nullable.ReadUInt64(string.Format(prompt, 3)), - Base.Nullable.ReadUInt64(string.Format(prompt, 4)), - Base.Nullable.ReadUInt64(string.Format(prompt, 5))); + return Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), + Base.Nullable.ReadSingle(string.Format(prompt, 1)), + Base.Nullable.ReadSingle(string.Format(prompt, 2)), + Base.Nullable.ReadSingle(string.Format(prompt, 3)), + Base.Nullable.ReadSingle(string.Format(prompt, 4)), + Base.Nullable.ReadSingle(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Single?. /// /// Кортеж. - public static Tuple ReadUInt64Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), - Base.Nullable.ReadUInt64(string.Format(prompt, 1)), - Base.Nullable.ReadUInt64(string.Format(prompt, 2)), - Base.Nullable.ReadUInt64(string.Format(prompt, 3)), - Base.Nullable.ReadUInt64(string.Format(prompt, 4)), - Base.Nullable.ReadUInt64(string.Format(prompt, 5)), - Base.Nullable.ReadUInt64(string.Format(prompt, 6))); + return Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), + Base.Nullable.ReadSingle(string.Format(prompt, 1)), + Base.Nullable.ReadSingle(string.Format(prompt, 2)), + Base.Nullable.ReadSingle(string.Format(prompt, 3)), + Base.Nullable.ReadSingle(string.Format(prompt, 4)), + Base.Nullable.ReadSingle(string.Format(prompt, 5)), + Base.Nullable.ReadSingle(string.Format(prompt, 6))); } - #endregion - - #region ReadInt16? - /// - /// Читает кортеж из двух значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа UInt16?. /// /// Кортеж. - public static Tuple ReadInt16Tuple2(string prompt = null) + public static Tuple ReadUInt16Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), - Base.Nullable.ReadInt16(string.Format(prompt, 1))); + return Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), + Base.Nullable.ReadUInt16(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа UInt16?. /// /// Кортеж. - public static Tuple ReadInt16Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt16Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), - Base.Nullable.ReadInt16(string.Format(prompt, 1)), - Base.Nullable.ReadInt16(string.Format(prompt, 2))); + return Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), + Base.Nullable.ReadUInt16(string.Format(prompt, 1)), + Base.Nullable.ReadUInt16(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа UInt16?. /// /// Кортеж. - public static Tuple ReadInt16Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt16Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), - Base.Nullable.ReadInt16(string.Format(prompt, 1)), - Base.Nullable.ReadInt16(string.Format(prompt, 2)), - Base.Nullable.ReadInt16(string.Format(prompt, 3))); + return Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), + Base.Nullable.ReadUInt16(string.Format(prompt, 1)), + Base.Nullable.ReadUInt16(string.Format(prompt, 2)), + Base.Nullable.ReadUInt16(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа UInt16?. /// /// Кортеж. - public static Tuple ReadInt16Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt16Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), - Base.Nullable.ReadInt16(string.Format(prompt, 1)), - Base.Nullable.ReadInt16(string.Format(prompt, 2)), - Base.Nullable.ReadInt16(string.Format(prompt, 3)), - Base.Nullable.ReadInt16(string.Format(prompt, 4))); + return Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), + Base.Nullable.ReadUInt16(string.Format(prompt, 1)), + Base.Nullable.ReadUInt16(string.Format(prompt, 2)), + Base.Nullable.ReadUInt16(string.Format(prompt, 3)), + Base.Nullable.ReadUInt16(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа UInt16?. /// /// Кортеж. - public static Tuple ReadInt16Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt16Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), - Base.Nullable.ReadInt16(string.Format(prompt, 1)), - Base.Nullable.ReadInt16(string.Format(prompt, 2)), - Base.Nullable.ReadInt16(string.Format(prompt, 3)), - Base.Nullable.ReadInt16(string.Format(prompt, 4)), - Base.Nullable.ReadInt16(string.Format(prompt, 5))); + return Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), + Base.Nullable.ReadUInt16(string.Format(prompt, 1)), + Base.Nullable.ReadUInt16(string.Format(prompt, 2)), + Base.Nullable.ReadUInt16(string.Format(prompt, 3)), + Base.Nullable.ReadUInt16(string.Format(prompt, 4)), + Base.Nullable.ReadUInt16(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа UInt16?. /// /// Кортеж. - public static Tuple ReadInt16Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt16Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), - Base.Nullable.ReadInt16(string.Format(prompt, 1)), - Base.Nullable.ReadInt16(string.Format(prompt, 2)), - Base.Nullable.ReadInt16(string.Format(prompt, 3)), - Base.Nullable.ReadInt16(string.Format(prompt, 4)), - Base.Nullable.ReadInt16(string.Format(prompt, 5)), - Base.Nullable.ReadInt16(string.Format(prompt, 6))); + return Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), + Base.Nullable.ReadUInt16(string.Format(prompt, 1)), + Base.Nullable.ReadUInt16(string.Format(prompt, 2)), + Base.Nullable.ReadUInt16(string.Format(prompt, 3)), + Base.Nullable.ReadUInt16(string.Format(prompt, 4)), + Base.Nullable.ReadUInt16(string.Format(prompt, 5)), + Base.Nullable.ReadUInt16(string.Format(prompt, 6))); } - #endregion - - #region ReadUInt16? - /// - /// Читает кортеж из двух значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа UInt32?. /// /// Кортеж. - public static Tuple ReadUInt16Tuple2(string prompt = null) + public static Tuple ReadUInt32Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), - Base.Nullable.ReadUInt16(string.Format(prompt, 1))); + return Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), + Base.Nullable.ReadUInt32(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа UInt32?. /// /// Кортеж. - public static Tuple ReadUInt16Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), - Base.Nullable.ReadUInt16(string.Format(prompt, 1)), - Base.Nullable.ReadUInt16(string.Format(prompt, 2))); + return Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), + Base.Nullable.ReadUInt32(string.Format(prompt, 1)), + Base.Nullable.ReadUInt32(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа UInt32?. /// /// Кортеж. - public static Tuple ReadUInt16Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), - Base.Nullable.ReadUInt16(string.Format(prompt, 1)), - Base.Nullable.ReadUInt16(string.Format(prompt, 2)), - Base.Nullable.ReadUInt16(string.Format(prompt, 3))); + return Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), + Base.Nullable.ReadUInt32(string.Format(prompt, 1)), + Base.Nullable.ReadUInt32(string.Format(prompt, 2)), + Base.Nullable.ReadUInt32(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа UInt32?. /// /// Кортеж. - public static Tuple ReadUInt16Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), - Base.Nullable.ReadUInt16(string.Format(prompt, 1)), - Base.Nullable.ReadUInt16(string.Format(prompt, 2)), - Base.Nullable.ReadUInt16(string.Format(prompt, 3)), - Base.Nullable.ReadUInt16(string.Format(prompt, 4))); + return Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), + Base.Nullable.ReadUInt32(string.Format(prompt, 1)), + Base.Nullable.ReadUInt32(string.Format(prompt, 2)), + Base.Nullable.ReadUInt32(string.Format(prompt, 3)), + Base.Nullable.ReadUInt32(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа UInt32?. /// /// Кортеж. - public static Tuple ReadUInt16Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), - Base.Nullable.ReadUInt16(string.Format(prompt, 1)), - Base.Nullable.ReadUInt16(string.Format(prompt, 2)), - Base.Nullable.ReadUInt16(string.Format(prompt, 3)), - Base.Nullable.ReadUInt16(string.Format(prompt, 4)), - Base.Nullable.ReadUInt16(string.Format(prompt, 5))); + return Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), + Base.Nullable.ReadUInt32(string.Format(prompt, 1)), + Base.Nullable.ReadUInt32(string.Format(prompt, 2)), + Base.Nullable.ReadUInt32(string.Format(prompt, 3)), + Base.Nullable.ReadUInt32(string.Format(prompt, 4)), + Base.Nullable.ReadUInt32(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа UInt32?. /// /// Кортеж. - public static Tuple ReadUInt16Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), - Base.Nullable.ReadUInt16(string.Format(prompt, 1)), - Base.Nullable.ReadUInt16(string.Format(prompt, 2)), - Base.Nullable.ReadUInt16(string.Format(prompt, 3)), - Base.Nullable.ReadUInt16(string.Format(prompt, 4)), - Base.Nullable.ReadUInt16(string.Format(prompt, 5)), - Base.Nullable.ReadUInt16(string.Format(prompt, 6))); + return Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), + Base.Nullable.ReadUInt32(string.Format(prompt, 1)), + Base.Nullable.ReadUInt32(string.Format(prompt, 2)), + Base.Nullable.ReadUInt32(string.Format(prompt, 3)), + Base.Nullable.ReadUInt32(string.Format(prompt, 4)), + Base.Nullable.ReadUInt32(string.Format(prompt, 5)), + Base.Nullable.ReadUInt32(string.Format(prompt, 6))); } - #endregion - - #region ReadBigInteger? - /// - /// Читает кортеж из двух значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа UInt64?. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple2(string prompt = null) + public static Tuple ReadUInt64Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 1))); + return Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), + Base.Nullable.ReadUInt64(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа UInt64?. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 2))); + return Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), + Base.Nullable.ReadUInt64(string.Format(prompt, 1)), + Base.Nullable.ReadUInt64(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа UInt64?. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 2)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 3))); + return Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), + Base.Nullable.ReadUInt64(string.Format(prompt, 1)), + Base.Nullable.ReadUInt64(string.Format(prompt, 2)), + Base.Nullable.ReadUInt64(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа UInt64?. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 2)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 3)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 4))); + return Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), + Base.Nullable.ReadUInt64(string.Format(prompt, 1)), + Base.Nullable.ReadUInt64(string.Format(prompt, 2)), + Base.Nullable.ReadUInt64(string.Format(prompt, 3)), + Base.Nullable.ReadUInt64(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа UInt64?. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 2)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 3)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 4)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 5))); + return Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), + Base.Nullable.ReadUInt64(string.Format(prompt, 1)), + Base.Nullable.ReadUInt64(string.Format(prompt, 2)), + Base.Nullable.ReadUInt64(string.Format(prompt, 3)), + Base.Nullable.ReadUInt64(string.Format(prompt, 4)), + Base.Nullable.ReadUInt64(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа UInt64?. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 2)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 3)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 4)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 5)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 6))); + return Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), + Base.Nullable.ReadUInt64(string.Format(prompt, 1)), + Base.Nullable.ReadUInt64(string.Format(prompt, 2)), + Base.Nullable.ReadUInt64(string.Format(prompt, 3)), + Base.Nullable.ReadUInt64(string.Format(prompt, 4)), + Base.Nullable.ReadUInt64(string.Format(prompt, 5)), + Base.Nullable.ReadUInt64(string.Format(prompt, 6))); } - - #endregion - - #endregion - } } -} +} \ No newline at end of file From 16c07a954781624f8536272b366adec616f54d1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Wed, 10 Jun 2020 13:16:13 +0700 Subject: [PATCH 086/102] Utils classes rename: adding "U" to "Array" --- .../Utils/{Array.Generators.cs => ArrayU.Generators.cs} | 4 ++-- .../Utils/{Array.Input.cs => ArrayU.Input.cs} | 2 +- .../{Array.Nullable.Input.cs => ArrayU.Nullable.Input.cs} | 2 +- NETMouse - .NET release/Utils/{Array.cs => ArrayU.cs} | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename NETMouse - .NET release/Utils/{Array.Generators.cs => ArrayU.Generators.cs} (99%) rename NETMouse - .NET release/Utils/{Array.Input.cs => ArrayU.Input.cs} (99%) rename NETMouse - .NET release/Utils/{Array.Nullable.Input.cs => ArrayU.Nullable.Input.cs} (99%) rename NETMouse - .NET release/Utils/{Array.cs => ArrayU.cs} (100%) diff --git a/NETMouse - .NET release/Utils/Array.Generators.cs b/NETMouse - .NET release/Utils/ArrayU.Generators.cs similarity index 99% rename from NETMouse - .NET release/Utils/Array.Generators.cs rename to NETMouse - .NET release/Utils/ArrayU.Generators.cs index e8d3101..8e29c57 100644 --- a/NETMouse - .NET release/Utils/Array.Generators.cs +++ b/NETMouse - .NET release/Utils/ArrayU.Generators.cs @@ -5,7 +5,7 @@ namespace ABCNET.Utils /// /// Предоставляет функционал для работы с массивами. /// - public static partial class Array + public static partial class ArrayU { #region public @@ -129,4 +129,4 @@ public static T[] Fill(int count, T value) #endregion public } -} +} \ No newline at end of file diff --git a/NETMouse - .NET release/Utils/Array.Input.cs b/NETMouse - .NET release/Utils/ArrayU.Input.cs similarity index 99% rename from NETMouse - .NET release/Utils/Array.Input.cs rename to NETMouse - .NET release/Utils/ArrayU.Input.cs index 16586f9..6038ad5 100644 --- a/NETMouse - .NET release/Utils/Array.Input.cs +++ b/NETMouse - .NET release/Utils/ArrayU.Input.cs @@ -6,7 +6,7 @@ namespace ABCNET.Utils /// /// Предоставляет функционал для работы с массивами. /// - public static partial class Array + public static partial class ArrayU { #region public diff --git a/NETMouse - .NET release/Utils/Array.Nullable.Input.cs b/NETMouse - .NET release/Utils/ArrayU.Nullable.Input.cs similarity index 99% rename from NETMouse - .NET release/Utils/Array.Nullable.Input.cs rename to NETMouse - .NET release/Utils/ArrayU.Nullable.Input.cs index 7c10f3c..7691fe8 100644 --- a/NETMouse - .NET release/Utils/Array.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/ArrayU.Nullable.Input.cs @@ -6,7 +6,7 @@ namespace ABCNET.Utils /// /// Предоставляет функционал для работы с массивами. /// - public static partial class Array + public static partial class ArrayU { /// /// Предоставляет функционал для работы с Nullable типами. diff --git a/NETMouse - .NET release/Utils/Array.cs b/NETMouse - .NET release/Utils/ArrayU.cs similarity index 100% rename from NETMouse - .NET release/Utils/Array.cs rename to NETMouse - .NET release/Utils/ArrayU.cs From 4800e595ac3ee2c7ce53a844893f6f743cba024c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Wed, 10 Jun 2020 13:16:30 +0700 Subject: [PATCH 087/102] Utils classes rename: adding "U" to "Base" --- NETMouse - .NET release/Utils/{Base.Input.cs => BaseU.Input.cs} | 2 +- .../Utils/{Base.Nullable.Input.cs => BaseU.Nullable.Input.cs} | 2 +- NETMouse - .NET release/Utils/{Base.Other.cs => BaseU.Other.cs} | 2 +- NETMouse - .NET release/Utils/{Base.cs => BaseU.cs} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename NETMouse - .NET release/Utils/{Base.Input.cs => BaseU.Input.cs} (99%) rename NETMouse - .NET release/Utils/{Base.Nullable.Input.cs => BaseU.Nullable.Input.cs} (99%) rename NETMouse - .NET release/Utils/{Base.Other.cs => BaseU.Other.cs} (94%) rename NETMouse - .NET release/Utils/{Base.cs => BaseU.cs} (100%) diff --git a/NETMouse - .NET release/Utils/Base.Input.cs b/NETMouse - .NET release/Utils/BaseU.Input.cs similarity index 99% rename from NETMouse - .NET release/Utils/Base.Input.cs rename to NETMouse - .NET release/Utils/BaseU.Input.cs index 3c9673b..e248cf2 100644 --- a/NETMouse - .NET release/Utils/Base.Input.cs +++ b/NETMouse - .NET release/Utils/BaseU.Input.cs @@ -7,7 +7,7 @@ namespace ABCNET.Utils /// /// . /// - public static partial class Base + public static partial class BaseU { #region public diff --git a/NETMouse - .NET release/Utils/Base.Nullable.Input.cs b/NETMouse - .NET release/Utils/BaseU.Nullable.Input.cs similarity index 99% rename from NETMouse - .NET release/Utils/Base.Nullable.Input.cs rename to NETMouse - .NET release/Utils/BaseU.Nullable.Input.cs index 702e8c5..3a14770 100644 --- a/NETMouse - .NET release/Utils/Base.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/BaseU.Nullable.Input.cs @@ -7,7 +7,7 @@ namespace ABCNET.Utils /// /// Предоставляет функционал для работы с базовыми типами. /// - public static partial class Base + public static partial class BaseU { /// /// Предоставляет функционал для работы с Nullable типами. diff --git a/NETMouse - .NET release/Utils/Base.Other.cs b/NETMouse - .NET release/Utils/BaseU.Other.cs similarity index 94% rename from NETMouse - .NET release/Utils/Base.Other.cs rename to NETMouse - .NET release/Utils/BaseU.Other.cs index 44053c5..fa8b7f5 100644 --- a/NETMouse - .NET release/Utils/Base.Other.cs +++ b/NETMouse - .NET release/Utils/BaseU.Other.cs @@ -3,7 +3,7 @@ /// /// Предоставляет функционал для работы с базовыми типами. /// - public static partial class Base + public static partial class BaseU { #region public diff --git a/NETMouse - .NET release/Utils/Base.cs b/NETMouse - .NET release/Utils/BaseU.cs similarity index 100% rename from NETMouse - .NET release/Utils/Base.cs rename to NETMouse - .NET release/Utils/BaseU.cs From 094a5fadda36534c3648f33cc552a63aa5a3bdbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Wed, 10 Jun 2020 13:16:51 +0700 Subject: [PATCH 088/102] Utils classes rename: adding "U" to "Matrix" --- .../Utils/{Matrix.Generators.cs => MatrixU.Generators.cs} | 2 +- .../Utils/{Matrix.Input.cs => MatrixU.Input.cs} | 2 +- .../{Matrix.Nullable.Input.cs => MatrixU.Nullable.Input.cs} | 2 +- NETMouse - .NET release/Utils/{Matrix.cs => MatrixU.cs} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename NETMouse - .NET release/Utils/{Matrix.Generators.cs => MatrixU.Generators.cs} (99%) rename NETMouse - .NET release/Utils/{Matrix.Input.cs => MatrixU.Input.cs} (99%) rename NETMouse - .NET release/Utils/{Matrix.Nullable.Input.cs => MatrixU.Nullable.Input.cs} (99%) rename NETMouse - .NET release/Utils/{Matrix.cs => MatrixU.cs} (100%) diff --git a/NETMouse - .NET release/Utils/Matrix.Generators.cs b/NETMouse - .NET release/Utils/MatrixU.Generators.cs similarity index 99% rename from NETMouse - .NET release/Utils/Matrix.Generators.cs rename to NETMouse - .NET release/Utils/MatrixU.Generators.cs index 0aa78fc..d5f3471 100644 --- a/NETMouse - .NET release/Utils/Matrix.Generators.cs +++ b/NETMouse - .NET release/Utils/MatrixU.Generators.cs @@ -5,7 +5,7 @@ namespace ABCNET.Utils /// /// . /// - public static partial class Matrix + public static partial class MatrixU { #region public diff --git a/NETMouse - .NET release/Utils/Matrix.Input.cs b/NETMouse - .NET release/Utils/MatrixU.Input.cs similarity index 99% rename from NETMouse - .NET release/Utils/Matrix.Input.cs rename to NETMouse - .NET release/Utils/MatrixU.Input.cs index 129b361..2db9b16 100644 --- a/NETMouse - .NET release/Utils/Matrix.Input.cs +++ b/NETMouse - .NET release/Utils/MatrixU.Input.cs @@ -6,7 +6,7 @@ namespace ABCNET.Utils /// /// Предоставляет функционал для работы с матрицами. /// - public static partial class Matrix + public static partial class MatrixU { #region public diff --git a/NETMouse - .NET release/Utils/Matrix.Nullable.Input.cs b/NETMouse - .NET release/Utils/MatrixU.Nullable.Input.cs similarity index 99% rename from NETMouse - .NET release/Utils/Matrix.Nullable.Input.cs rename to NETMouse - .NET release/Utils/MatrixU.Nullable.Input.cs index 89f5ee1..4147890 100644 --- a/NETMouse - .NET release/Utils/Matrix.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/MatrixU.Nullable.Input.cs @@ -6,7 +6,7 @@ namespace ABCNET.Utils /// /// Предоставляет функционал для работы с матрицами. /// - public static partial class Matrix + public static partial class MatrixU { /// /// Предоставляет функционал для работы с Nullable типами. diff --git a/NETMouse - .NET release/Utils/Matrix.cs b/NETMouse - .NET release/Utils/MatrixU.cs similarity index 100% rename from NETMouse - .NET release/Utils/Matrix.cs rename to NETMouse - .NET release/Utils/MatrixU.cs From 1110ebbb47b8cc218f9dfa659f338f61fb815b2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Wed, 10 Jun 2020 13:17:08 +0700 Subject: [PATCH 089/102] Utils classes rename: adding "U" to "Sequence" --- .../Utils/{Sequence.Generators.cs => SequenceU.Generators.cs} | 2 +- .../Utils/{Sequence.Input.cs => SequenceU.Input.cs} | 2 +- .../{Sequence.Nullable.Input.cs => SequenceU.Nullable.Input.cs} | 2 +- NETMouse - .NET release/Utils/{Sequence.cs => SequenceU.cs} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename NETMouse - .NET release/Utils/{Sequence.Generators.cs => SequenceU.Generators.cs} (98%) rename NETMouse - .NET release/Utils/{Sequence.Input.cs => SequenceU.Input.cs} (99%) rename NETMouse - .NET release/Utils/{Sequence.Nullable.Input.cs => SequenceU.Nullable.Input.cs} (99%) rename NETMouse - .NET release/Utils/{Sequence.cs => SequenceU.cs} (100%) diff --git a/NETMouse - .NET release/Utils/Sequence.Generators.cs b/NETMouse - .NET release/Utils/SequenceU.Generators.cs similarity index 98% rename from NETMouse - .NET release/Utils/Sequence.Generators.cs rename to NETMouse - .NET release/Utils/SequenceU.Generators.cs index 763cca8..f923612 100644 --- a/NETMouse - .NET release/Utils/Sequence.Generators.cs +++ b/NETMouse - .NET release/Utils/SequenceU.Generators.cs @@ -6,7 +6,7 @@ namespace ABCNET.Utils /// /// . /// - public static partial class Sequence + public static partial class SequenceU { #region public diff --git a/NETMouse - .NET release/Utils/Sequence.Input.cs b/NETMouse - .NET release/Utils/SequenceU.Input.cs similarity index 99% rename from NETMouse - .NET release/Utils/Sequence.Input.cs rename to NETMouse - .NET release/Utils/SequenceU.Input.cs index 049db0b..706c36a 100644 --- a/NETMouse - .NET release/Utils/Sequence.Input.cs +++ b/NETMouse - .NET release/Utils/SequenceU.Input.cs @@ -7,7 +7,7 @@ namespace ABCNET.Utils /// /// Description of Class1. /// - public static partial class Sequence + public static partial class SequenceU { #region public diff --git a/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs b/NETMouse - .NET release/Utils/SequenceU.Nullable.Input.cs similarity index 99% rename from NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs rename to NETMouse - .NET release/Utils/SequenceU.Nullable.Input.cs index bfca47a..6de8ee0 100644 --- a/NETMouse - .NET release/Utils/Sequence.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/SequenceU.Nullable.Input.cs @@ -7,7 +7,7 @@ namespace ABCNET.Utils /// /// Description of Sequence_Nullable_Input. /// - public static partial class Sequence + public static partial class SequenceU { public static class Nullable diff --git a/NETMouse - .NET release/Utils/Sequence.cs b/NETMouse - .NET release/Utils/SequenceU.cs similarity index 100% rename from NETMouse - .NET release/Utils/Sequence.cs rename to NETMouse - .NET release/Utils/SequenceU.cs From 8c777c1ce1273d4809f51e1d34253aa6ea796646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Wed, 10 Jun 2020 13:17:24 +0700 Subject: [PATCH 090/102] Utils classes rename: adding "U" to "Tuple" --- NETMouse - .NET release/ABCNET.csproj | 70 +++++++++---------- ...ple.Generators.cs => TupleU.Generators.cs} | 2 +- .../Utils/{Tuple.Input.cs => TupleU.Input.cs} | 2 +- ...able.Input.cs => TupleU.Nullable.Input.cs} | 2 +- .../Utils/{Tuple.cs => TupleU.cs} | 0 5 files changed, 38 insertions(+), 38 deletions(-) rename NETMouse - .NET release/Utils/{Tuple.Generators.cs => TupleU.Generators.cs} (99%) rename NETMouse - .NET release/Utils/{Tuple.Input.cs => TupleU.Input.cs} (99%) rename NETMouse - .NET release/Utils/{Tuple.Nullable.Input.cs => TupleU.Nullable.Input.cs} (99%) rename NETMouse - .NET release/Utils/{Tuple.cs => TupleU.cs} (100%) diff --git a/NETMouse - .NET release/ABCNET.csproj b/NETMouse - .NET release/ABCNET.csproj index f1fb15b..25695fa 100644 --- a/NETMouse - .NET release/ABCNET.csproj +++ b/NETMouse - .NET release/ABCNET.csproj @@ -102,55 +102,55 @@ TupleE.cs - - - Array.cs + + ArrayU.cs - - Array.cs + + ArrayU.cs - - Array.cs + + + ArrayU.cs - - - Base.cs + + + BaseU.cs - - Base.cs + + BaseU.cs - - Base.cs + + BaseU.cs - - Sequence.cs + + MatrixU.cs - - - Matrix.cs + + MatrixU.cs - - Matrix.cs + + MatrixU.cs - - Matrix.cs + + + + SequenceU.cs - - - Sequence.cs + + SequenceU.cs - - Sequence.cs + + SequenceU.cs - - Tuple.cs + + + TupleU.cs - - - Tuple.cs + + TupleU.cs - - Tuple.cs + + TupleU.cs diff --git a/NETMouse - .NET release/Utils/Tuple.Generators.cs b/NETMouse - .NET release/Utils/TupleU.Generators.cs similarity index 99% rename from NETMouse - .NET release/Utils/Tuple.Generators.cs rename to NETMouse - .NET release/Utils/TupleU.Generators.cs index b51b660..94662a8 100644 --- a/NETMouse - .NET release/Utils/Tuple.Generators.cs +++ b/NETMouse - .NET release/Utils/TupleU.Generators.cs @@ -5,7 +5,7 @@ namespace ABCNET.Utils /// /// . /// - public static partial class Tuple + public static partial class TupleU { #region public diff --git a/NETMouse - .NET release/Utils/Tuple.Input.cs b/NETMouse - .NET release/Utils/TupleU.Input.cs similarity index 99% rename from NETMouse - .NET release/Utils/Tuple.Input.cs rename to NETMouse - .NET release/Utils/TupleU.Input.cs index b646d7a..b0d19f7 100644 --- a/NETMouse - .NET release/Utils/Tuple.Input.cs +++ b/NETMouse - .NET release/Utils/TupleU.Input.cs @@ -6,7 +6,7 @@ namespace ABCNET.Utils /// /// Предоставляет функционал для работы с ссылочными кортежами. /// - public static partial class Tuple + public static partial class TupleU { #region public diff --git a/NETMouse - .NET release/Utils/Tuple.Nullable.Input.cs b/NETMouse - .NET release/Utils/TupleU.Nullable.Input.cs similarity index 99% rename from NETMouse - .NET release/Utils/Tuple.Nullable.Input.cs rename to NETMouse - .NET release/Utils/TupleU.Nullable.Input.cs index be7cccb..4076821 100644 --- a/NETMouse - .NET release/Utils/Tuple.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/TupleU.Nullable.Input.cs @@ -6,7 +6,7 @@ namespace ABCNET.Utils /// /// Предоставляет функционал для работы с базовыми типами. /// - public static partial class Base + public static partial class TupleU { /// /// Предоставляет функционал для работы с Nullable типами. diff --git a/NETMouse - .NET release/Utils/Tuple.cs b/NETMouse - .NET release/Utils/TupleU.cs similarity index 100% rename from NETMouse - .NET release/Utils/Tuple.cs rename to NETMouse - .NET release/Utils/TupleU.cs From a39bc2378e8187a9108f6da34515c3724064242f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Wed, 10 Jun 2020 14:03:51 +0700 Subject: [PATCH 091/102] Adding "U" to utils classes in ArrayE code --- .../Extensions/ArrayE.Generators.cs | 6 ++-- .../Extensions/ArrayE.Input.cs | 32 ++++++++++--------- .../Extensions/ArrayE.Nullable.Input.cs | 28 ++++++++-------- 3 files changed, 35 insertions(+), 31 deletions(-) diff --git a/NETMouse - .NET release/Extensions/ArrayE.Generators.cs b/NETMouse - .NET release/Extensions/ArrayE.Generators.cs index 73911aa..44a3a0b 100644 --- a/NETMouse - .NET release/Extensions/ArrayE.Generators.cs +++ b/NETMouse - .NET release/Extensions/ArrayE.Generators.cs @@ -8,6 +8,7 @@ namespace ABCNET.Extensions /// public static partial class ArrayE { + #region public /// @@ -59,7 +60,7 @@ public static void Random(this int[] array, int low = Int32BordersHelper.Low, in throw new ArgumentException(nameof(low)); for (int i = 0; i < array.Length; i++) - array[i] = Base.Random(low, high); + array[i] = BaseU.Random(low, high); } /// @@ -76,7 +77,7 @@ public static void Random(this double[] array, double low = DoubleBordersHelper. throw new ArgumentException(nameof(low)); for (int i = 0; i < array.Length; i++) - array[i] = Base.Random(low, high); + array[i] = BaseU.Random(low, high); } /// @@ -94,5 +95,6 @@ public static void Fill(this T[] array, T value) } #endregion public + } } diff --git a/NETMouse - .NET release/Extensions/ArrayE.Input.cs b/NETMouse - .NET release/Extensions/ArrayE.Input.cs index a61950a..f906c07 100644 --- a/NETMouse - .NET release/Extensions/ArrayE.Input.cs +++ b/NETMouse - .NET release/Extensions/ArrayE.Input.cs @@ -9,6 +9,7 @@ namespace ABCNET.Extensions /// public static partial class ArrayE { + #region public /// @@ -26,7 +27,7 @@ public static void Read(this bool[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.ReadBoolean(string.Format(prompt, i)); + array[i] = BaseU.ReadBoolean(string.Format(prompt, i)); i++; } } @@ -46,7 +47,7 @@ public static void Read(this byte[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.ReadByte(string.Format(prompt, i)); + array[i] = BaseU.ReadByte(string.Format(prompt, i)); i++; } } @@ -66,7 +67,7 @@ public static void Read(this sbyte[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.ReadSByte(string.Format(prompt, i)); + array[i] = BaseU.ReadSByte(string.Format(prompt, i)); i++; } } @@ -86,7 +87,7 @@ public static void Read(this char[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.ReadChar(string.Format(prompt, i)); + array[i] = BaseU.ReadChar(string.Format(prompt, i)); i++; } } @@ -106,7 +107,7 @@ public static void Read(this decimal[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.ReadDecimal(string.Format(prompt, i)); + array[i] = BaseU.ReadDecimal(string.Format(prompt, i)); i++; } } @@ -126,7 +127,7 @@ public static void Read(this double[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.ReadDouble(string.Format(prompt, i)); + array[i] = BaseU.ReadDouble(string.Format(prompt, i)); i++; } } @@ -146,7 +147,7 @@ public static void Read(this float[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.ReadSingle(string.Format(prompt, i)); + array[i] = BaseU.ReadSingle(string.Format(prompt, i)); i++; } } @@ -166,7 +167,7 @@ public static void Read(this int[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.ReadInt32(string.Format(prompt, i)); + array[i] = BaseU.ReadInt32(string.Format(prompt, i)); i++; } } @@ -186,7 +187,7 @@ public static void Read(this uint[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.ReadUInt32(string.Format(prompt, i)); + array[i] = BaseU.ReadUInt32(string.Format(prompt, i)); i++; } } @@ -206,7 +207,7 @@ public static void Read(this long[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.ReadInt64(string.Format(prompt, i)); + array[i] = BaseU.ReadInt64(string.Format(prompt, i)); i++; } } @@ -226,7 +227,7 @@ public static void Read(this ulong[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.ReadUInt64(string.Format(prompt, i)); + array[i] = BaseU.ReadUInt64(string.Format(prompt, i)); i++; } } @@ -246,7 +247,7 @@ public static void Read(this short[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.ReadInt16(string.Format(prompt, i)); + array[i] = BaseU.ReadInt16(string.Format(prompt, i)); i++; } } @@ -266,7 +267,7 @@ public static void Read(this ushort[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.ReadUInt16(string.Format(prompt, i)); + array[i] = BaseU.ReadUInt16(string.Format(prompt, i)); i++; } } @@ -286,7 +287,7 @@ public static void Read(this BigInteger[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.ReadBigInteger(string.Format(prompt, i)); + array[i] = BaseU.ReadBigInteger(string.Format(prompt, i)); i++; } } @@ -306,11 +307,12 @@ public static void Read(this string[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.ReadString(string.Format(prompt, i)); + array[i] = BaseU.ReadString(string.Format(prompt, i)); i++; } } #endregion public + } } diff --git a/NETMouse - .NET release/Extensions/ArrayE.Nullable.Input.cs b/NETMouse - .NET release/Extensions/ArrayE.Nullable.Input.cs index 174932d..74a7412 100644 --- a/NETMouse - .NET release/Extensions/ArrayE.Nullable.Input.cs +++ b/NETMouse - .NET release/Extensions/ArrayE.Nullable.Input.cs @@ -30,7 +30,7 @@ public static void Read(this bool?[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.Nullable.ReadBoolean(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadBoolean(string.Format(prompt, i)); i++; } } @@ -50,7 +50,7 @@ public static void Read(this byte?[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.Nullable.ReadByte(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadByte(string.Format(prompt, i)); i++; } } @@ -70,7 +70,7 @@ public static void Read(this sbyte?[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.Nullable.ReadSByte(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadSByte(string.Format(prompt, i)); i++; } } @@ -90,7 +90,7 @@ public static void Read(this char?[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.Nullable.ReadChar(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadChar(string.Format(prompt, i)); i++; } } @@ -110,7 +110,7 @@ public static void Read(this decimal?[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.Nullable.ReadDecimal(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadDecimal(string.Format(prompt, i)); i++; } } @@ -130,7 +130,7 @@ public static void Read(this double?[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.Nullable.ReadDouble(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadDouble(string.Format(prompt, i)); i++; } } @@ -150,7 +150,7 @@ public static void Read(this float?[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.Nullable.ReadSingle(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadSingle(string.Format(prompt, i)); i++; } } @@ -170,7 +170,7 @@ public static void Read(this int?[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.Nullable.ReadInt32(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadInt32(string.Format(prompt, i)); i++; } } @@ -190,7 +190,7 @@ public static void Read(this uint?[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.Nullable.ReadUInt32(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadUInt32(string.Format(prompt, i)); i++; } } @@ -210,7 +210,7 @@ public static void Read(this long?[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.Nullable.ReadInt64(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadInt64(string.Format(prompt, i)); i++; } } @@ -230,7 +230,7 @@ public static void Read(this ulong?[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.Nullable.ReadUInt64(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadUInt64(string.Format(prompt, i)); i++; } } @@ -250,7 +250,7 @@ public static void Read(this short?[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.Nullable.ReadInt16(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadInt16(string.Format(prompt, i)); i++; } } @@ -270,7 +270,7 @@ public static void Read(this ushort?[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.Nullable.ReadUInt16(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadUInt16(string.Format(prompt, i)); i++; } } @@ -290,7 +290,7 @@ public static void Read(this BigInteger?[] array, string prompt = null) int i = 0; while (i < array.Length) { - array[i] = Base.Nullable.ReadBigInteger(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadBigInteger(string.Format(prompt, i)); i++; } } From 18e5b28e44d2db0f008f829abd8a2d14de383701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Wed, 10 Jun 2020 14:04:13 +0700 Subject: [PATCH 092/102] Adding "U" to utils classes in BaseE code --- NETMouse - .NET release/Extensions/BaseE.Generators.cs | 2 ++ NETMouse - .NET release/Extensions/BaseE.Other.cs | 4 +++- NETMouse - .NET release/Extensions/BaseE.Output.cs | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NETMouse - .NET release/Extensions/BaseE.Generators.cs b/NETMouse - .NET release/Extensions/BaseE.Generators.cs index c207215..18f3a4c 100644 --- a/NETMouse - .NET release/Extensions/BaseE.Generators.cs +++ b/NETMouse - .NET release/Extensions/BaseE.Generators.cs @@ -7,6 +7,7 @@ namespace ABCNET.Extensions /// public static partial class BaseE { + #region public /// @@ -53,5 +54,6 @@ public static IEnumerable Step(this int from, int step) } #endregion public + } } diff --git a/NETMouse - .NET release/Extensions/BaseE.Other.cs b/NETMouse - .NET release/Extensions/BaseE.Other.cs index fa95bbe..ff64e4b 100644 --- a/NETMouse - .NET release/Extensions/BaseE.Other.cs +++ b/NETMouse - .NET release/Extensions/BaseE.Other.cs @@ -5,6 +5,7 @@ /// public static partial class BaseE { + #region public /// @@ -17,10 +18,11 @@ public static partial class BaseE public static bool IsBetween(this int target, int firstBorder, int secondBorder) { if (firstBorder > secondBorder) - Utils.Base.Swap(ref firstBorder, ref secondBorder); + Utils.BaseU.Swap(ref firstBorder, ref secondBorder); return (target >= firstBorder) && (target <= secondBorder); } #endregion public + } } diff --git a/NETMouse - .NET release/Extensions/BaseE.Output.cs b/NETMouse - .NET release/Extensions/BaseE.Output.cs index 220354f..5fd321e 100644 --- a/NETMouse - .NET release/Extensions/BaseE.Output.cs +++ b/NETMouse - .NET release/Extensions/BaseE.Output.cs @@ -7,6 +7,7 @@ namespace ABCNET.Extensions /// public static partial class BaseE { + #region public /// @@ -186,5 +187,6 @@ public static int PrintLine(this int item) } #endregion public + } } \ No newline at end of file From 03ab2bf580c1b6d76d1f9dd46869ae83496c83b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Wed, 10 Jun 2020 14:04:31 +0700 Subject: [PATCH 093/102] Adding "U" to utils classes in MatrixE code --- .../Extensions/MatrixE.Generators.cs | 4 +-- .../Extensions/MatrixE.Getters.cs | 8 ++--- .../Extensions/MatrixE.Input.cs | 32 ++++++++++--------- .../Extensions/MatrixE.Nullable.Input.cs | 28 ++++++++-------- 4 files changed, 37 insertions(+), 35 deletions(-) diff --git a/NETMouse - .NET release/Extensions/MatrixE.Generators.cs b/NETMouse - .NET release/Extensions/MatrixE.Generators.cs index 72dd21e..7ca4459 100644 --- a/NETMouse - .NET release/Extensions/MatrixE.Generators.cs +++ b/NETMouse - .NET release/Extensions/MatrixE.Generators.cs @@ -45,7 +45,7 @@ public static void Random(this int[,] matrix, int low = Int32BordersHelper.Low, for (int i = 0; i < matrix.GetLength(0); i++) for (int j = 0; j < matrix.GetLength(1); j++) - matrix[i, j] = Base.Random(low, high); + matrix[i, j] = BaseU.Random(low, high); } /// @@ -63,7 +63,7 @@ public static void Random(this double[,] matrix, double low = DoubleBordersHelpe for (int i = 0; i < matrix.GetLength(0); i++) for (int j = 0; j < matrix.GetLength(1); j++) - matrix[i, j] = Base.Random(low, high); + matrix[i, j] = BaseU.Random(low, high); } /// diff --git a/NETMouse - .NET release/Extensions/MatrixE.Getters.cs b/NETMouse - .NET release/Extensions/MatrixE.Getters.cs index 119bb4f..4a0ba28 100644 --- a/NETMouse - .NET release/Extensions/MatrixE.Getters.cs +++ b/NETMouse - .NET release/Extensions/MatrixE.Getters.cs @@ -285,7 +285,7 @@ private static TOutput[] InternalGetRow(this T[,] matrix, int index, int columnsCount = newMatrix.GetLength(1); for (int j = 0; j < columnsCount; j++) - Base.Swap(ref newMatrix[firstIndex, j], ref newMatrix[secondIndex, j]); + BaseU.Swap(ref newMatrix[firstIndex, j], ref newMatrix[secondIndex, j]); return newMatrix; } @@ -304,7 +304,7 @@ private static TOutput[] InternalGetRow(this T[,] matrix, int index, { newMatrix[firstIndex, j] = selector(newMatrix[firstIndex, j]); newMatrix[secondIndex, j] = selector(newMatrix[secondIndex, j]); - Base.Swap(ref newMatrix[firstIndex, j], ref newMatrix[secondIndex, j]); + BaseU.Swap(ref newMatrix[firstIndex, j], ref newMatrix[secondIndex, j]); } return newMatrix; @@ -322,7 +322,7 @@ private static TOutput[] InternalGetRow(this T[,] matrix, int index, int rowsCount = newMatrix.GetLength(0); for (int i = 0; i < rowsCount; i++) - Base.Swap(ref newMatrix[i, firstIndex], ref newMatrix[i, secondIndex]); + BaseU.Swap(ref newMatrix[i, firstIndex], ref newMatrix[i, secondIndex]); return newMatrix; } @@ -341,7 +341,7 @@ private static TOutput[] InternalGetRow(this T[,] matrix, int index, { newMatrix[i, firstIndex] = selector(newMatrix[i, firstIndex]); newMatrix[i, secondIndex] = selector(newMatrix[i, secondIndex]); - Base.Swap(ref newMatrix[i, firstIndex], ref newMatrix[i, secondIndex]); + BaseU.Swap(ref newMatrix[i, firstIndex], ref newMatrix[i, secondIndex]); } return newMatrix; diff --git a/NETMouse - .NET release/Extensions/MatrixE.Input.cs b/NETMouse - .NET release/Extensions/MatrixE.Input.cs index a641497..60d8aa8 100644 --- a/NETMouse - .NET release/Extensions/MatrixE.Input.cs +++ b/NETMouse - .NET release/Extensions/MatrixE.Input.cs @@ -10,6 +10,7 @@ namespace ABCNET.Extensions /// public static partial class MatrixE { + #region public /// @@ -28,7 +29,7 @@ public static void Read(this bool[,] matrix, string prompt = EmptyStringHelper.E { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.ReadBoolean(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.ReadBoolean(string.Format(prompt, i, j)); } } } @@ -49,7 +50,7 @@ public static void Read(this byte[,] matrix, string prompt = EmptyStringHelper.E { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.ReadByte(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.ReadByte(string.Format(prompt, i, j)); } } } @@ -70,7 +71,7 @@ public static void Read(this sbyte[,] matrix, string prompt = EmptyStringHelper. { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.ReadSByte(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.ReadSByte(string.Format(prompt, i, j)); } } } @@ -91,7 +92,7 @@ public static void Read(this char[,] matrix, string prompt = EmptyStringHelper.E { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.ReadChar(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.ReadChar(string.Format(prompt, i, j)); } } } @@ -112,7 +113,7 @@ public static void Read(this decimal[,] matrix, string prompt = EmptyStringHelpe { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.ReadDecimal(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.ReadDecimal(string.Format(prompt, i, j)); } } } @@ -133,7 +134,7 @@ public static void Read(this double[,] matrix, string prompt = EmptyStringHelper { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.ReadDouble(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.ReadDouble(string.Format(prompt, i, j)); } } } @@ -154,7 +155,7 @@ public static void Read(this float[,] matrix, string prompt = EmptyStringHelper. { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.ReadSingle(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.ReadSingle(string.Format(prompt, i, j)); } } } @@ -175,7 +176,7 @@ public static void Read(this int[,] matrix, string prompt = EmptyStringHelper.Em { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.ReadInt32(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.ReadInt32(string.Format(prompt, i, j)); } } } @@ -196,7 +197,7 @@ public static void Read(this uint[,] matrix, string prompt = EmptyStringHelper.E { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.ReadUInt32(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.ReadUInt32(string.Format(prompt, i, j)); } } } @@ -217,7 +218,7 @@ public static void Read(this long[,] matrix, string prompt = EmptyStringHelper.E { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.ReadInt64(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.ReadInt64(string.Format(prompt, i, j)); } } } @@ -238,7 +239,7 @@ public static void Read(this ulong[,] matrix, string prompt = EmptyStringHelper. { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.ReadUInt64(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.ReadUInt64(string.Format(prompt, i, j)); } } } @@ -259,7 +260,7 @@ public static void Read(this short[,] matrix, string prompt = EmptyStringHelper. { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.ReadInt16(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.ReadInt16(string.Format(prompt, i, j)); } } } @@ -280,7 +281,7 @@ public static void Read(this ushort[,] matrix, string prompt = EmptyStringHelper { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.ReadUInt16(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.ReadUInt16(string.Format(prompt, i, j)); } } } @@ -301,7 +302,7 @@ public static void Read(this BigInteger[,] matrix, string prompt = EmptyStringHe { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.ReadBigInteger(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.ReadBigInteger(string.Format(prompt, i, j)); } } } @@ -322,11 +323,12 @@ public static void Read(this string[,] matrix, string prompt = EmptyStringHelper { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.ReadString(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.ReadString(string.Format(prompt, i, j)); } } } #endregion public + } } diff --git a/NETMouse - .NET release/Extensions/MatrixE.Nullable.Input.cs b/NETMouse - .NET release/Extensions/MatrixE.Nullable.Input.cs index dac5bd6..08d4796 100644 --- a/NETMouse - .NET release/Extensions/MatrixE.Nullable.Input.cs +++ b/NETMouse - .NET release/Extensions/MatrixE.Nullable.Input.cs @@ -31,7 +31,7 @@ public static void Read(this bool?[,] matrix, string prompt = EmptyStringHelper. { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.Nullable.ReadBoolean(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.Nullable.ReadBoolean(string.Format(prompt, i, j)); } } } @@ -52,7 +52,7 @@ public static void Read(this byte?[,] matrix, string prompt = EmptyStringHelper. { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.Nullable.ReadByte(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.Nullable.ReadByte(string.Format(prompt, i, j)); } } } @@ -73,7 +73,7 @@ public static void Read(this sbyte?[,] matrix, string prompt = EmptyStringHelper { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.Nullable.ReadSByte(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.Nullable.ReadSByte(string.Format(prompt, i, j)); } } } @@ -94,7 +94,7 @@ public static void Read(this char?[,] matrix, string prompt = EmptyStringHelper. { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.Nullable.ReadChar(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.Nullable.ReadChar(string.Format(prompt, i, j)); } } } @@ -115,7 +115,7 @@ public static void Read(this decimal?[,] matrix, string prompt = EmptyStringHelp { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.Nullable.ReadDecimal(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.Nullable.ReadDecimal(string.Format(prompt, i, j)); } } } @@ -136,7 +136,7 @@ public static void Read(this double?[,] matrix, string prompt = EmptyStringHelpe { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.Nullable.ReadDouble(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.Nullable.ReadDouble(string.Format(prompt, i, j)); } } } @@ -157,7 +157,7 @@ public static void Read(this float?[,] matrix, string prompt = EmptyStringHelper { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.Nullable.ReadSingle(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.Nullable.ReadSingle(string.Format(prompt, i, j)); } } } @@ -178,7 +178,7 @@ public static void Read(this int?[,] matrix, string prompt = EmptyStringHelper.E { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.Nullable.ReadInt32(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.Nullable.ReadInt32(string.Format(prompt, i, j)); } } } @@ -199,7 +199,7 @@ public static void Read(this uint?[,] matrix, string prompt = EmptyStringHelper. { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.Nullable.ReadUInt32(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.Nullable.ReadUInt32(string.Format(prompt, i, j)); } } } @@ -220,7 +220,7 @@ public static void Read(this long?[,] matrix, string prompt = EmptyStringHelper. { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.Nullable.ReadInt64(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.Nullable.ReadInt64(string.Format(prompt, i, j)); } } } @@ -241,7 +241,7 @@ public static void Read(this ulong?[,] matrix, string prompt = EmptyStringHelper { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.Nullable.ReadUInt64(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.Nullable.ReadUInt64(string.Format(prompt, i, j)); } } } @@ -262,7 +262,7 @@ public static void Read(this short?[,] matrix, string prompt = EmptyStringHelper { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.Nullable.ReadInt16(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.Nullable.ReadInt16(string.Format(prompt, i, j)); } } } @@ -283,7 +283,7 @@ public static void Read(this ushort?[,] matrix, string prompt = EmptyStringHelpe { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.Nullable.ReadUInt16(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.Nullable.ReadUInt16(string.Format(prompt, i, j)); } } } @@ -304,7 +304,7 @@ public static void Read(this BigInteger?[,] matrix, string prompt = EmptyStringH { for (int j = 0; j < matrix.GetLength(1); j++) { - matrix[i, j] = Base.Nullable.ReadBigInteger(string.Format(prompt, i, j)); + matrix[i, j] = BaseU.Nullable.ReadBigInteger(string.Format(prompt, i, j)); } } } From f5bde83e90147902f3244dc320c453f290bf2e80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Wed, 10 Jun 2020 14:05:54 +0700 Subject: [PATCH 094/102] Adding "U" to utils classes in SequenceE code --- .../Extensions/SequenceE.Getters.cs | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/NETMouse - .NET release/Extensions/SequenceE.Getters.cs b/NETMouse - .NET release/Extensions/SequenceE.Getters.cs index 1b6b69c..cc29c33 100644 --- a/NETMouse - .NET release/Extensions/SequenceE.Getters.cs +++ b/NETMouse - .NET release/Extensions/SequenceE.Getters.cs @@ -1,4 +1,5 @@ -using System; +using ABCNET.Utils; +using System; using System.Collections.Generic; using System.Linq; @@ -31,7 +32,7 @@ public static Tuple ToTuple2(this IEnumerable collection) b = en.Current; if (en.MoveNext()) throw new ArgumentException(nameof(collection)); - return Tuple.Create(a, b); + return TupleU.Of(a, b); } throw new ArgumentException(nameof(collection)); } @@ -61,7 +62,7 @@ public static Tuple ToTuple3(this IEnumerable collection) c = en.Current; if (en.MoveNext()) throw new ArgumentException(nameof(collection)); - return Tuple.Create(a, b, c); + return TupleU.Of(a, b, c); } throw new ArgumentException(nameof(collection)); } @@ -97,7 +98,7 @@ public static Tuple ToTuple4(this IEnumerable collection) d = en.Current; if (en.MoveNext()) throw new ArgumentException(nameof(collection)); - return Tuple.Create(a, b, c, d); + return TupleU.Of(a, b, c, d); } throw new ArgumentException(nameof(collection)); } @@ -139,7 +140,7 @@ public static Tuple ToTuple5(this IEnumerable collection) e = en.Current; if (en.MoveNext()) throw new ArgumentException(nameof(collection)); - return Tuple.Create(a, b, c, d, e); + return TupleU.Of(a, b, c, d, e); } throw new ArgumentException(nameof(collection)); } @@ -187,7 +188,7 @@ public static Tuple ToTuple6(this IEnumerable collection f = en.Current; if (en.MoveNext()) throw new ArgumentException(nameof(collection)); - return Tuple.Create(a, b, c, d, e, f); + return TupleU.Of(a, b, c, d, e, f); } throw new ArgumentException(nameof(collection)); } @@ -241,7 +242,7 @@ public static Tuple ToTuple7(this IEnumerable collect g = en.Current; if (en.MoveNext()) throw new ArgumentException(nameof(collection)); - return Tuple.Create(a, b, c, d, e, f, g); + return TupleU.Of(a, b, c, d, e, f, g); } throw new ArgumentException(nameof(collection)); } @@ -344,7 +345,7 @@ public static IEnumerable> Pairwise(this IEnumerable collectio while (enumerator.MoveNext()) { - yield return Tuple.Create(previous, enumerator.Current); + yield return TupleU.Of(previous, enumerator.Current); previous = enumerator.Current; } } @@ -372,7 +373,7 @@ public static IEnumerable> Pairwise(this IEn while (enumerator.MoveNext()) { TOutput current = selector(enumerator.Current); - yield return Tuple.Create(previous, current); + yield return TupleU.Of(previous, current); previous = current; } } @@ -433,7 +434,7 @@ public static IEnumerable> ZipTuple(this IEnumerable coll if (secondCollection == null) throw new ArgumentNullException(nameof(secondCollection)); - return collection.Zip(secondCollection, delegate (T x, T1 y) { return Tuple.Create(x, y); }); + return collection.Zip(secondCollection, delegate (T x, T1 y) { return TupleU.Of(x, y); }); } /// @@ -446,7 +447,7 @@ public static Tuple, IEnumerable> UnzipTuple(this IEnu if (collection == null) throw new ArgumentNullException(nameof(collection)); - return Tuple.Create(collection.Select(delegate (Tuple x) { return x.Item1; }), + return TupleU.Of(collection.Select(delegate (Tuple x) { return x.Item1; }), collection.Select(delegate (Tuple x) { return x.Item2; })); } From 2403e42987a3dfecd75ff284e1446f63ce101824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Wed, 10 Jun 2020 14:06:06 +0700 Subject: [PATCH 095/102] Adding "U" to utils classes in TupleE code --- .../Extensions/TupleE.Output.cs | 96 +++++++++---------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/NETMouse - .NET release/Extensions/TupleE.Output.cs b/NETMouse - .NET release/Extensions/TupleE.Output.cs index fb62c76..f7f396a 100644 --- a/NETMouse - .NET release/Extensions/TupleE.Output.cs +++ b/NETMouse - .NET release/Extensions/TupleE.Output.cs @@ -17,7 +17,7 @@ public static partial class TupleE /// Кортеж. public static Tuple Print(this Tuple tuple) { - Console.Write(Utils.Tuple.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString())); + Console.Write(Utils.TupleU.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString())); return tuple; } @@ -32,7 +32,7 @@ public static Tuple Print(this Tuple tuple, Func fun if (func == null) throw new ArgumentNullException(nameof(func)); - return Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2)).Print(); + return Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2)).Print(); } /// @@ -46,7 +46,7 @@ public static Tuple PrintBy(this Tuple tuple, Func fun if (func == null) throw new ArgumentNullException(nameof(func)); - Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2)).Print(); + Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2)).Print(); return tuple; } @@ -57,7 +57,7 @@ public static Tuple PrintBy(this Tuple tuple, Func fun /// Кортеж. public static Tuple PrintLine(this Tuple tuple) { - Console.WriteLine(Utils.Tuple.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString())); + Console.WriteLine(Utils.TupleU.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString())); return tuple; } @@ -72,7 +72,7 @@ public static Tuple PrintLine(this Tuple tuple, Func if (func == null) throw new ArgumentNullException(nameof(func)); - return Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2)).PrintLine(); + return Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2)).PrintLine(); } /// @@ -86,7 +86,7 @@ public static Tuple PrintLineBy(this Tuple tuple, Func if (func == null) throw new ArgumentNullException(nameof(func)); - Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2)).PrintLine(); + Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2)).PrintLine(); return tuple; } @@ -113,7 +113,7 @@ public static Tuple PrintLines(this Tuple tuple, Func @@ -127,7 +127,7 @@ public static Tuple PrintLinesBy(this Tuple tuple, Func PrintLinesBy(this Tuple tuple, FuncКортеж. public static Tuple Print(this Tuple tuple) { - Console.Write(Utils.Tuple.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString())); + Console.Write(Utils.TupleU.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString())); return tuple; } @@ -153,7 +153,7 @@ public static Tuple Print(this Tuple tuple, Func @@ -167,7 +167,7 @@ public static Tuple PrintBy(this Tuple tuple, Func PrintBy(this Tuple tuple, FuncКортеж. public static Tuple PrintLine(this Tuple tuple) { - Console.WriteLine(Utils.Tuple.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString())); + Console.WriteLine(Utils.TupleU.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString())); return tuple; } @@ -193,7 +193,7 @@ public static Tuple PrintLine(this Tuple tuple, Func if (func == null) throw new ArgumentNullException(nameof(func)); - return Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3)).PrintLine(); + return Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3)).PrintLine(); } /// @@ -207,7 +207,7 @@ public static Tuple PrintLineBy(this Tuple tuple, Func< if (func == null) throw new ArgumentNullException(nameof(func)); - Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3)).PrintLine(); + Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3)).PrintLine(); return tuple; } @@ -235,7 +235,7 @@ public static Tuple PrintLines(this Tuple tuple, Fun if (func == null) throw new ArgumentNullException(nameof(func)); - return Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3)).PrintLines(); + return Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3)).PrintLines(); } /// @@ -249,7 +249,7 @@ public static Tuple PrintLinesBy(this Tuple tuple, Func if (func == null) throw new ArgumentNullException(nameof(func)); - Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3)).PrintLines(); + Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3)).PrintLines(); return tuple; } @@ -260,7 +260,7 @@ public static Tuple PrintLinesBy(this Tuple tuple, Func /// Кортеж. public static Tuple Print(this Tuple tuple) { - Console.Write(Utils.Tuple.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString(), + Console.Write(Utils.TupleU.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString(), tuple.Item4.NilOrString())); return tuple; } @@ -276,7 +276,7 @@ public static Tuple Print(this Tuple tuple, F if (func == null) throw new ArgumentNullException(nameof(func)); - return Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), + return Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), func(tuple.Item4)).Print(); } @@ -291,7 +291,7 @@ public static Tuple PrintBy(this Tuple tuple, Fun if (func == null) throw new ArgumentNullException(nameof(func)); - Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), + Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), func(tuple.Item4)).Print(); return tuple; } @@ -303,7 +303,7 @@ public static Tuple PrintBy(this Tuple tuple, Fun /// Кортеж. public static Tuple PrintLine(this Tuple tuple) { - Console.WriteLine(Utils.Tuple.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString(), + Console.WriteLine(Utils.TupleU.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString(), tuple.Item4.NilOrString())); return tuple; } @@ -319,7 +319,7 @@ public static Tuple PrintLine(this Tuple tupl if (func == null) throw new ArgumentNullException(nameof(func)); - return Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), + return Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), func(tuple.Item4)).PrintLine(); } @@ -334,7 +334,7 @@ public static Tuple PrintLineBy(this Tuple tuple, if (func == null) throw new ArgumentNullException(nameof(func)); - Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), + Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), func(tuple.Item4)).PrintLine(); return tuple; } @@ -364,7 +364,7 @@ public static Tuple PrintLines(this Tuple tup if (func == null) throw new ArgumentNullException(nameof(func)); - return Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), func(tuple.Item4)).PrintLines(); + return Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), func(tuple.Item4)).PrintLines(); } /// @@ -378,7 +378,7 @@ public static Tuple PrintLinesBy(this Tuple tuple if (func == null) throw new ArgumentNullException(nameof(func)); - Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), func(tuple.Item4)).PrintLines(); + Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), func(tuple.Item4)).PrintLines(); return tuple; } @@ -389,7 +389,7 @@ public static Tuple PrintLinesBy(this Tuple tuple /// Кортеж. public static Tuple Print(this Tuple tuple) { - Console.Write(Utils.Tuple.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString(), + Console.Write(Utils.TupleU.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString(), tuple.Item4.NilOrString(), tuple.Item5.NilOrString())); return tuple; } @@ -405,7 +405,7 @@ public static Tuple Print(this Tuple t if (func == null) throw new ArgumentNullException(nameof(func)); - return Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), + return Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), func(tuple.Item4), func(tuple.Item5)).Print(); } @@ -420,7 +420,7 @@ public static Tuple PrintBy(this Tuple tupl if (func == null) throw new ArgumentNullException(nameof(func)); - Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), + Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), func(tuple.Item4), func(tuple.Item5)).Print(); return tuple; } @@ -432,7 +432,7 @@ public static Tuple PrintBy(this Tuple tupl /// Кортеж. public static Tuple PrintLine(this Tuple tuple) { - Console.WriteLine(Utils.Tuple.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString(), + Console.WriteLine(Utils.TupleU.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString(), tuple.Item4.NilOrString(), tuple.Item5.NilOrString())); return tuple; } @@ -448,7 +448,7 @@ public static Tuple PrintLine(this Tuple PrintLineBy(this Tuple if (func == null) throw new ArgumentNullException(nameof(func)); - Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), + Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), func(tuple.Item4), func(tuple.Item5)).PrintLine(); return tuple; } @@ -494,7 +494,7 @@ public static Tuple PrintLines(this Tuple PrintLinesBy(this Tuple if (func == null) throw new ArgumentNullException(nameof(func)); - Utils.Tuple.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), + Utils.TupleU.Of(func(tuple.Item1), func(tuple.Item2), func(tuple.Item3), func(tuple.Item4), func(tuple.Item5)).PrintLines(); return tuple; } @@ -521,7 +521,7 @@ public static Tuple PrintLinesBy(this Tuple /// Кортеж. public static Tuple Print(this Tuple tuple) { - Console.Write(Utils.Tuple.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString(), + Console.Write(Utils.TupleU.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString(), tuple.Item4.NilOrString(), tuple.Item5.NilOrString(), tuple.Item6.NilOrString())); return tuple; } @@ -537,7 +537,7 @@ public static Tuple Print(this Tuple PrintBy(this Tuple PrintBy(this TupleКортеж. public static Tuple PrintLine(this Tuple tuple) { - Console.WriteLine(Utils.Tuple.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString(), + Console.WriteLine(Utils.TupleU.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString(), tuple.Item4.NilOrString(), tuple.Item5.NilOrString(), tuple.Item6.NilOrString())); return tuple; } @@ -580,7 +580,7 @@ public static Tuple PrintLine(this Tuple PrintLineBy(this Tuple PrintLines(this Tuple PrintLinesBy(this Tuple PrintLinesBy(this TupleКортеж. public static Tuple Print(this Tuple tuple) { - Console.Write(Utils.Tuple.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString(), + Console.Write(Utils.TupleU.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString(), tuple.Item4.NilOrString(), tuple.Item5.NilOrString(), tuple.Item6.NilOrString(), tuple.Item7.NilOrString())); return tuple; @@ -671,7 +671,7 @@ public static Tuple Print(this Tuple PrintBy(this Tuple PrintBy(this TupleКортеж. public static Tuple PrintLine(this Tuple tuple) { - Console.WriteLine(Utils.Tuple.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString(), + Console.WriteLine(Utils.TupleU.Of(tuple.Item1.NilOrString(), tuple.Item2.NilOrString(), tuple.Item3.NilOrString(), tuple.Item4.NilOrString(), tuple.Item5.NilOrString(), tuple.Item6.NilOrString(), tuple.Item7.NilOrString())); return tuple; @@ -717,7 +717,7 @@ public static Tuple PrintLine(this Tuple PrintLineBy(this Tuple PrintLines(this Tuple PrintLinesBy(this Tuple Date: Wed, 10 Jun 2020 14:06:23 +0700 Subject: [PATCH 096/102] Adding "U" to utils classes in ArrayU code --- .../Utils/ArrayU.Generators.cs | 6 +- NETMouse - .NET release/Utils/ArrayU.Input.cs | 600 +++--- .../Utils/ArrayU.Nullable.Input.cs | 1840 ++++++++--------- 3 files changed, 1181 insertions(+), 1265 deletions(-) diff --git a/NETMouse - .NET release/Utils/ArrayU.Generators.cs b/NETMouse - .NET release/Utils/ArrayU.Generators.cs index 8e29c57..dc3c707 100644 --- a/NETMouse - .NET release/Utils/ArrayU.Generators.cs +++ b/NETMouse - .NET release/Utils/ArrayU.Generators.cs @@ -82,7 +82,7 @@ public static int[] Random(int count, int low = Int32BordersHelper.Low, int high int[] source = new int[count]; for (int i = 0; i < source.Length; i++) - source[i] = Base.Random(low, high); + source[i] = BaseU.Random(low, high); return source; } @@ -103,7 +103,7 @@ public static double[] Random(int count, double low = DoubleBordersHelper.Low, d double[] source = new double[count]; for (int i = 0; i < source.Length; i++) - source[i] = Base.Random(low, high); + source[i] = BaseU.Random(low, high); return source; } @@ -127,6 +127,6 @@ public static T[] Fill(int count, T value) } #endregion public - + } } \ No newline at end of file diff --git a/NETMouse - .NET release/Utils/ArrayU.Input.cs b/NETMouse - .NET release/Utils/ArrayU.Input.cs index 6038ad5..c75a132 100644 --- a/NETMouse - .NET release/Utils/ArrayU.Input.cs +++ b/NETMouse - .NET release/Utils/ArrayU.Input.cs @@ -10,11 +10,11 @@ public static partial class ArrayU { #region public - - #region Read1 + + #region one-array /// - /// Читает массив значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Boolean. /// /// Количество элементов. /// Приглашение к вводу. @@ -23,18 +23,18 @@ public static bool[] ReadBoolean(int count, string prompt = EmptyStringHelper.Em { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; bool[] array = new bool[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadBoolean(string.Format(prompt, i)); + array[i] = BaseU.ReadBoolean(string.Format(prompt, i)); return array; } /// - /// Читает массив значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Byte. /// /// Количество элементов. /// Приглашение к вводу. @@ -43,18 +43,18 @@ public static byte[] ReadByte(int count, string prompt = EmptyStringHelper.Empty { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; byte[] array = new byte[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadByte(string.Format(prompt, i)); + array[i] = BaseU.ReadByte(string.Format(prompt, i)); return array; } /// - /// Читает массив значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа SByte. /// /// Количество элементов. /// Приглашение к вводу. @@ -63,18 +63,18 @@ public static sbyte[] ReadSByte(int count, string prompt = EmptyStringHelper.Emp { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; sbyte[] array = new sbyte[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadSByte(string.Format(prompt, i)); + array[i] = BaseU.ReadSByte(string.Format(prompt, i)); return array; } /// - /// Читает массив значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Char. /// /// Количество элементов. /// Приглашение к вводу. @@ -83,18 +83,18 @@ public static char[] ReadChar(int count, string prompt = EmptyStringHelper.Empty { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; char[] array = new char[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadChar(string.Format(prompt, i)); + array[i] = BaseU.ReadChar(string.Format(prompt, i)); return array; } /// - /// Читает массив значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Decimal. /// /// Количество элементов. /// Приглашение к вводу. @@ -103,18 +103,18 @@ public static decimal[] ReadDecimal(int count, string prompt = EmptyStringHelper { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; decimal[] array = new decimal[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadDecimal(string.Format(prompt, i)); + array[i] = BaseU.ReadDecimal(string.Format(prompt, i)); return array; } /// - /// Читает массив значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Double. /// /// Количество элементов. /// Приглашение к вводу. @@ -123,18 +123,18 @@ public static double[] ReadDouble(int count, string prompt = EmptyStringHelper.E { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; double[] array = new double[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadDouble(string.Format(prompt, i)); + array[i] = BaseU.ReadDouble(string.Format(prompt, i)); return array; } /// - /// Читает массив значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Single. /// /// Количество элементов. /// Приглашение к вводу. @@ -143,18 +143,18 @@ public static float[] ReadSingle(int count, string prompt = EmptyStringHelper.Em { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; float[] array = new float[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadSingle(string.Format(prompt, i)); + array[i] = BaseU.ReadSingle(string.Format(prompt, i)); return array; } /// - /// Читает массив значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int32. /// /// Количество элементов. /// Приглашение к вводу. @@ -163,18 +163,18 @@ public static int[] ReadInt32(int count, string prompt = EmptyStringHelper.Empty { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; int[] array = new int[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadInt32(string.Format(prompt, i)); + array[i] = BaseU.ReadInt32(string.Format(prompt, i)); return array; } /// - /// Читает массив значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt32. /// /// Количество элементов. /// Приглашение к вводу. @@ -183,18 +183,18 @@ public static uint[] ReadUInt32(int count, string prompt = EmptyStringHelper.Emp { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; uint[] array = new uint[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadUInt32(string.Format(prompt, i)); + array[i] = BaseU.ReadUInt32(string.Format(prompt, i)); return array; } /// - /// Читает массив значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int64. /// /// Количество элементов. /// Приглашение к вводу. @@ -203,18 +203,18 @@ public static long[] ReadInt64(int count, string prompt = EmptyStringHelper.Empt { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; long[] array = new long[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadInt64(string.Format(prompt, i)); + array[i] = BaseU.ReadInt64(string.Format(prompt, i)); return array; } /// - /// Читает массив значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt64. /// /// Количество элементов. /// Приглашение к вводу. @@ -223,18 +223,18 @@ public static ulong[] ReadUInt64(int count, string prompt = EmptyStringHelper.Em { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; ulong[] array = new ulong[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadUInt64(string.Format(prompt, i)); + array[i] = BaseU.ReadUInt64(string.Format(prompt, i)); return array; } /// - /// Читает массив значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int16. /// /// Количество элементов. /// Приглашение к вводу. @@ -243,18 +243,18 @@ public static short[] ReadInt16(int count, string prompt = EmptyStringHelper.Emp { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; short[] array = new short[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadInt16(string.Format(prompt, i)); + array[i] = BaseU.ReadInt16(string.Format(prompt, i)); return array; } /// - /// Читает массив значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt16. /// /// Количество элементов. /// Приглашение к вводу. @@ -263,18 +263,18 @@ public static ushort[] ReadUInt16(int count, string prompt = EmptyStringHelper.E { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; ushort[] array = new ushort[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadUInt16(string.Format(prompt, i)); + array[i] = BaseU.ReadUInt16(string.Format(prompt, i)); return array; } /// - /// Читает массив значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа String. /// /// Количество элементов. /// Приглашение к вводу. @@ -283,18 +283,18 @@ public static string[] ReadString(int count, string prompt = EmptyStringHelper.E { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; string[] array = new string[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadString(string.Format(prompt, i)); + array[i] = BaseU.ReadString(string.Format(prompt, i)); return array; } /// - /// Читает массив значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа BigInteger. /// /// Количество элементов. /// Приглашение к вводу. @@ -303,1027 +303,943 @@ public static BigInteger[] ReadBigInteger(int count, string prompt = EmptyString { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; BigInteger[] array = new BigInteger[count]; for (int i = 0; i < count; i++) - array[i] = Base.ReadBigInteger(string.Format(prompt, i)); + array[i] = BaseU.ReadBigInteger(string.Format(prompt, i)); return array; } - - #endregion - - #region Read2 + + #endregion one-array + + #region two-arrays /// - /// Читает 2 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Boolean. /// /// Размер массива. /// Кортеж. public static Tuple ReadBooleanTuple2(int count) { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count)); + return TupleU.Of(ReadBoolean(count), ReadBoolean(count)); } - /// - /// Читает 2 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Byte. /// /// Размер массива. /// Кортеж. public static Tuple ReadByteTuple2(int count) { - return Tuple.Of(ReadByte(count), ReadByte(count)); + return TupleU.Of(ReadByte(count), ReadByte(count)); } - /// - /// Читает 2 массива значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа SByte. /// /// Размер массива. /// Кортеж. public static Tuple ReadSByteTuple2(int count) { - return Tuple.Of(ReadSByte(count), ReadSByte(count)); + return TupleU.Of(ReadSByte(count), ReadSByte(count)); } - /// - /// Читает 2 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Char. /// /// Размер массива. /// Кортеж. public static Tuple ReadCharTuple2(int count) { - return Tuple.Of(ReadChar(count), ReadChar(count)); + return TupleU.Of(ReadChar(count), ReadChar(count)); } - /// - /// Читает 2 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Decimal. /// /// Размер массива. /// Кортеж. public static Tuple ReadDecimalTuple2(int count) { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count)); + return TupleU.Of(ReadDecimal(count), ReadDecimal(count)); } - /// - /// Читает 2 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Double. /// /// Размер массива. /// Кортеж. public static Tuple ReadDoubleTuple2(int count) { - return Tuple.Of(ReadDouble(count), ReadDouble(count)); + return TupleU.Of(ReadDouble(count), ReadDouble(count)); } - /// - /// Читает 2 массива значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Single. /// /// Размер массива. /// Кортеж. public static Tuple ReadSingleTuple2(int count) { - return Tuple.Of(ReadSingle(count), ReadSingle(count)); + return TupleU.Of(ReadSingle(count), ReadSingle(count)); } - /// - /// Читает 2 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Int32. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt32Tuple2(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count)); + return TupleU.Of(ReadInt32(count), ReadInt32(count)); } - /// - /// Читает 2 массива значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа UInt32. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt32Tuple2(int count) { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count)); + return TupleU.Of(ReadUInt32(count), ReadUInt32(count)); } - /// - /// Читает 2 массива значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Int64. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt64Tuple2(int count) { - return Tuple.Of(ReadInt64(count), ReadInt64(count)); + return TupleU.Of(ReadInt64(count), ReadInt64(count)); } - /// - /// Читает 2 массива значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа UInt64. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt64Tuple2(int count) { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count)); + return TupleU.Of(ReadUInt64(count), ReadUInt64(count)); } - /// - /// Читает 2 массива значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа Int16. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt16Tuple2(int count) { - return Tuple.Of(ReadInt16(count), ReadInt16(count)); + return TupleU.Of(ReadInt16(count), ReadInt16(count)); } - /// - /// Читает 2 массива значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа UInt16. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt16Tuple2(int count) { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count)); + return TupleU.Of(ReadUInt16(count), ReadUInt16(count)); } - /// - /// Читает 2 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа BigInteger. /// /// Размер массива. /// Кортеж. public static Tuple ReadBigIntegerTuple2(int count) { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count)); + return TupleU.Of(ReadBigInteger(count), ReadBigInteger(count)); } - /// - /// Читает 2 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 2 массива значений типа String. /// /// Размер массива. /// Кортеж. public static Tuple ReadStringTuple2(int count) { - return Tuple.Of(ReadString(count), ReadString(count)); + return TupleU.Of(ReadString(count), ReadString(count)); } - #endregion - - #region Read3 - + #endregion two-arrays + + #region three-arrays + /// - /// Читает 3 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Boolean. /// /// Размер массива. /// Кортеж. public static Tuple ReadBooleanTuple3(int count) { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + return TupleU.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } - /// - /// Читает 3 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Byte. /// /// Размер массива. /// Кортеж. public static Tuple ReadByteTuple3(int count) { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count)); + return TupleU.Of(ReadByte(count), ReadByte(count), ReadByte(count)); } - /// - /// Читает 3 массива значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа SByte. /// /// Размер массива. /// Кортеж. public static Tuple ReadSByteTuple3(int count) { - return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count)); + return TupleU.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count)); } - /// - /// Читает 3 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Char. /// /// Размер массива. /// Кортеж. public static Tuple ReadCharTuple3(int count) { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count)); + return TupleU.Of(ReadChar(count), ReadChar(count), ReadChar(count)); } - /// - /// Читает 3 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Decimal. /// /// Размер массива. /// Кортеж. public static Tuple ReadDecimalTuple3(int count) { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + return TupleU.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); } - /// - /// Читает 3 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Double. /// /// Размер массива. /// Кортеж. public static Tuple ReadDoubleTuple3(int count) { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count)); + return TupleU.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count)); } - /// - /// Читает 3 массива значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Single. /// /// Размер массива. /// Кортеж. public static Tuple ReadSingleTuple3(int count) { - return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count)); + return TupleU.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count)); } - /// - /// Читает 3 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Int32. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt32Tuple3(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count)); + return TupleU.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count)); } - /// - /// Читает 3 массива значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа UInt32. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt32Tuple3(int count) { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + return TupleU.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); } - /// - /// Читает 3 массива значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Int64. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt64Tuple3(int count) { - return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count)); + return TupleU.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count)); } - /// - /// Читает 3 массива значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа UInt64. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt64Tuple3(int count) { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + return TupleU.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); } - /// - /// Читает 3 массива значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа Int16. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt16Tuple3(int count) { - return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count)); + return TupleU.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count)); } - /// - /// Читает 3 массива значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа UInt16. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt16Tuple3(int count) { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + return TupleU.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); } - /// - /// Читает 3 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа BigInteger. /// /// Размер массива. /// Кортеж. public static Tuple ReadBigIntegerTuple3(int count) { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + return TupleU.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); } - /// - /// Читает 3 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 3 массива значений типа String. /// /// Размер массива. /// Кортеж. public static Tuple ReadStringTuple3(int count) { - return Tuple.Of(ReadString(count), ReadString(count), ReadString(count)); + return TupleU.Of(ReadString(count), ReadString(count), ReadString(count)); } - - #endregion - - #region Read4 - + + #endregion three-arrays + + #region four-arrays + /// - /// Читает 4 массива значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Boolean. /// /// Размер массива. /// Кортеж. public static Tuple ReadBooleanTuple4(int count) { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + return TupleU.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } - /// - /// Читает 4 массива значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Byte. /// /// Размер массива. /// Кортеж. public static Tuple ReadByteTuple4(int count) { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + return TupleU.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); } - /// - /// Читает 4 массива значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа SByte. /// /// Размер массива. /// Кортеж. public static Tuple ReadSByteTuple4(int count) { - return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + return TupleU.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); } - /// - /// Читает 4 массива значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Char. /// /// Размер массива. /// Кортеж. public static Tuple ReadCharTuple4(int count) { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + return TupleU.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); } - /// - /// Читает 4 массива значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Decimal. /// /// Размер массива. /// Кортеж. public static Tuple ReadDecimalTuple4(int count) { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + return TupleU.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); } - /// - /// Читает 4 массива значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Double. /// /// Размер массива. /// Кортеж. public static Tuple ReadDoubleTuple4(int count) { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + return TupleU.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); } - /// - /// Читает 4 массива значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Single. /// /// Размер массива. /// Кортеж. public static Tuple ReadSingleTuple4(int count) { - return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + return TupleU.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); } - /// - /// Читает 4 массива значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Int32. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt32Tuple4(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + return TupleU.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); } - /// - /// Читает 4 массива значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа UInt32. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt32Tuple4(int count) { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + return TupleU.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); } - /// - /// Читает 4 массива значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Int64. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt64Tuple4(int count) { - return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + return TupleU.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); } - /// - /// Читает 4 массива значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа UInt64. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt64Tuple4(int count) { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + return TupleU.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); } - /// - /// Читает 4 массива значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа Int16. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt16Tuple4(int count) { - return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + return TupleU.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); } - /// - /// Читает 4 массива значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа UInt16. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt16Tuple4(int count) { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + return TupleU.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); } - /// - /// Читает 4 массива значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа BigInteger. /// /// Размер массива. /// Кортеж. public static Tuple ReadBigIntegerTuple4(int count) { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + return TupleU.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); } - /// - /// Читает 4 массива значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 4 массива значений типа String. /// /// Размер массива. /// Кортеж. public static Tuple ReadStringTuple4(int count) { - return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count)); + return TupleU.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count)); } - - #endregion - - #region Read5 - + + #endregion four-arrays + + #region five-arrays + /// - /// Читает 5 массивов значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Boolean. /// /// Размер массива. /// Кортеж. public static Tuple ReadBooleanTuple5(int count) { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + return TupleU.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } - /// - /// Читает 5 массивов значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Byte. /// /// Размер массива. /// Кортеж. public static Tuple ReadByteTuple5(int count) { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + return TupleU.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); } - /// - /// Читает 5 массивов значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа SByte. /// /// Размер массива. /// Кортеж. public static Tuple ReadSByteTuple5(int count) { - return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + return TupleU.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); } - /// - /// Читает 5 массивов значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Char. /// /// Размер массива. /// Кортеж. public static Tuple ReadCharTuple5(int count) { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + return TupleU.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); } - /// - /// Читает 5 массивов значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Decimal. /// /// Размер массива. /// Кортеж. public static Tuple ReadDecimalTuple5(int count) { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + return TupleU.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); } - /// - /// Читает 5 массивов значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Double. /// /// Размер массива. /// Кортеж. public static Tuple ReadDoubleTuple5(int count) { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + return TupleU.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); } - /// - /// Читает 5 массивов значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Single. /// /// Размер массива. /// Кортеж. public static Tuple ReadSingleTuple5(int count) { - return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + return TupleU.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); } - /// - /// Читает 5 массивов значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Int32. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt32Tuple5(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + return TupleU.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); } - /// - /// Читает 5 массивов значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа UInt32. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt32Tuple5(int count) { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + return TupleU.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); } - /// - /// Читает 5 массивов значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Int64. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt64Tuple5(int count) { - return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + return TupleU.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); } - /// - /// Читает 5 массивов значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа UInt64. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt64Tuple5(int count) { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + return TupleU.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); } - /// - /// Читает 5 массивов значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа Int16. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt16Tuple5(int count) { - return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + return TupleU.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); } - /// - /// Читает 5 массивов значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа UInt16. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt16Tuple5(int count) { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + return TupleU.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); } - /// - /// Читает 5 массивов значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа BigInteger. /// /// Размер массива. /// Кортеж. public static Tuple ReadBigIntegerTuple5(int count) { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + return TupleU.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); } - /// - /// Читает 5 массивов значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 5 массивов значений типа String. /// /// Размер массива. /// Кортеж. public static Tuple ReadStringTuple5(int count) { - return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); + return TupleU.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); } - - #endregion - - #region Read6 - + + #endregion five-arrays + + #region six-arrays + /// - /// Читает 6 массивов значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Boolean. /// /// Размер массива. /// Кортеж. public static Tuple ReadBooleanTuple6(int count) { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + return TupleU.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } - /// - /// Читает 6 массивов значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Byte. /// /// Размер массива. /// Кортеж. public static Tuple ReadByteTuple6(int count) { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + return TupleU.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); } - /// - /// Читает 6 массивов значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа SByte. /// /// Размер массива. /// Кортеж. public static Tuple ReadSByteTuple6(int count) { - return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + return TupleU.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); } - /// - /// Читает 6 массивов значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Char. /// /// Размер массива. /// Кортеж. public static Tuple ReadCharTuple6(int count) { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + return TupleU.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); } - /// - /// Читает 6 массивов значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Decimal. /// /// Размер массива. /// Кортеж. public static Tuple ReadDecimalTuple6(int count) { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + return TupleU.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); } - /// - /// Читает 6 массивов значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Double. /// /// Размер массива. /// Кортеж. public static Tuple ReadDoubleTuple6(int count) { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + return TupleU.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); } - /// - /// Читает 6 массивов значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Single. /// /// Размер массива. /// Кортеж. public static Tuple ReadSingleTuple6(int count) { - return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + return TupleU.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); } - /// - /// Читает 6 массивов значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Int32. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt32Tuple6(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + return TupleU.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); } - /// - /// Читает 6 массивов значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа UInt32. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt32Tuple6(int count) { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + return TupleU.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); } - /// - /// Читает 6 массивов значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Int64. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt64Tuple6(int count) { - return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + return TupleU.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); } - /// - /// Читает 6 массивов значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа UInt64. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt64Tuple6(int count) { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + return TupleU.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); } - /// - /// Читает 6 массивов значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа Int16. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt16Tuple6(int count) { - return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + return TupleU.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); } - /// - /// Читает 6 массивов значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа UInt16. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt16Tuple6(int count) { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + return TupleU.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); } - /// - /// Читает 6 массивов значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа BigInteger. /// /// Размер массива. /// Кортеж. public static Tuple ReadBigIntegerTuple6(int count) { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + return TupleU.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); } - /// - /// Читает 6 массивов значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 6 массивов значений типа String. /// /// Размер массива. /// Кортеж. public static Tuple ReadStringTuple6(int count) { - return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); + return TupleU.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); } - - #endregion - - #region Read7 - + + #endregion six-arrays + + #region seven-arrays + /// - /// Читает 7 массивов значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Boolean. /// /// Размер массива. /// Кортеж. public static Tuple ReadBooleanTuple7(int count) { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + return TupleU.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); } - /// - /// Читает 7 массивов значениями типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Byte. /// /// Размер массива. /// Кортеж. public static Tuple ReadByteTuple7(int count) { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + return TupleU.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); } - /// - /// Читает 7 массивов значениями типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа SByte. /// /// Размер массива. /// Кортеж. public static Tuple ReadSByteTuple7(int count) { - return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + return TupleU.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); } - /// - /// Читает 7 массивов значениями типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Char. /// /// Размер массива. /// Кортеж. public static Tuple ReadCharTuple7(int count) { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + return TupleU.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); } - /// - /// Читает 7 массивов значениями типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Decimal. /// /// Размер массива. /// Кортеж. public static Tuple ReadDecimalTuple7(int count) { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + return TupleU.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); } - /// - /// Читает 7 массивов значениями типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Double. /// /// Размер массива. /// Кортеж. public static Tuple ReadDoubleTuple7(int count) { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + return TupleU.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); } - /// - /// Читает 7 массивов значениями типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Single. /// /// Размер массива. /// Кортеж. public static Tuple ReadSingleTuple7(int count) { - return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + return TupleU.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); } - /// - /// Читает 7 массивов значениями типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Int32. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt32Tuple7(int count) { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + return TupleU.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); } - /// - /// Читает 7 массивов значениями типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа UInt32. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt32Tuple7(int count) { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + return TupleU.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); } - /// - /// Читает 7 массивов значениями типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Int64. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt64Tuple7(int count) { - return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + return TupleU.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); } - /// - /// Читает 7 массивов значениями типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа UInt64. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt64Tuple7(int count) { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + return TupleU.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); } - /// - /// Читает 7 массивов значениями типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа Int16. /// /// Размер массива. /// Кортеж. public static Tuple ReadInt16Tuple7(int count) { - return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + return TupleU.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); } - /// - /// Читает 7 массивов значениями типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа UInt16. /// /// Размер массива. /// Кортеж. public static Tuple ReadUInt16Tuple7(int count) { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + return TupleU.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); } - /// - /// Читает 7 массивов значениями типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа BigInteger. /// /// Размер массива. /// Кортеж. public static Tuple ReadBigIntegerTuple7(int count) { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + return TupleU.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); } - /// - /// Читает 7 массивов значениями типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает 7 массивов значений типа String. /// /// Размер массива. /// Кортеж. public static Tuple ReadStringTuple7(int count) { - return Tuple.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); + return TupleU.Of(ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count), ReadString(count)); } - - #endregion + + #endregion seven-arrays #endregion public - + } } diff --git a/NETMouse - .NET release/Utils/ArrayU.Nullable.Input.cs b/NETMouse - .NET release/Utils/ArrayU.Nullable.Input.cs index 7691fe8..c688ad7 100644 --- a/NETMouse - .NET release/Utils/ArrayU.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/ArrayU.Nullable.Input.cs @@ -15,11 +15,11 @@ public static partial class Nullable { #region public - - #region Read1 + + #region one-array /// - /// Читает массив значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Boolean?. /// /// Количество элементов. /// Приглашение к вводу. @@ -28,18 +28,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; bool?[] array = new bool?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadBoolean(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadBoolean(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Byte?. /// /// Количество элементов. /// Приглашение к вводу. @@ -48,18 +48,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; byte?[] array = new byte?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadByte(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadByte(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа SByte?. /// /// Количество элементов. /// Приглашение к вводу. @@ -68,18 +68,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; sbyte?[] array = new sbyte?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadSByte(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadSByte(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Char?. /// /// Количество элементов. /// Приглашение к вводу. @@ -88,18 +88,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; char?[] array = new char?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadChar(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadChar(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Decimal?. /// /// Количество элементов. /// Приглашение к вводу. @@ -108,18 +108,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; decimal?[] array = new decimal?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadDecimal(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadDecimal(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Double?. /// /// Количество элементов. /// Приглашение к вводу. @@ -128,18 +128,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; double?[] array = new double?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadDouble(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadDouble(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Single?. /// /// Количество элементов. /// Приглашение к вводу. @@ -148,18 +148,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; float?[] array = new float?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadSingle(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadSingle(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int32?. /// /// Количество элементов. /// Приглашение к вводу. @@ -168,18 +168,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; int?[] array = new int?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadInt32(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadInt32(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt32?. /// /// Количество элементов. /// Приглашение к вводу. @@ -188,18 +188,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; uint?[] array = new uint?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadUInt32(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadUInt32(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int64?. /// /// Количество элементов. /// Приглашение к вводу. @@ -208,18 +208,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; long?[] array = new long?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadInt64(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadInt64(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt64?. /// /// Количество элементов. /// Приглашение к вводу. @@ -228,18 +228,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; ulong?[] array = new ulong?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadUInt64(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadUInt64(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа Int16?. /// /// Количество элементов. /// Приглашение к вводу. @@ -248,18 +248,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; short?[] array = new short?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadInt16(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadInt16(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа UInt16?. /// /// Количество элементов. /// Приглашение к вводу. @@ -268,18 +268,18 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; ushort?[] array = new ushort?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadUInt16(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadUInt16(string.Format(prompt, i)); return array; } - + /// - /// Читает массив значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает массив значений типа BigInteger?. /// /// Количество элементов. /// Приглашение к вводу. @@ -288,884 +288,884 @@ public static partial class Nullable { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - + prompt = prompt ?? EmptyStringHelper.Empty; BigInteger?[] array = new BigInteger?[count]; for (int i = 0; i < count; i++) - array[i] = Base.Nullable.ReadBigInteger(string.Format(prompt, i)); + array[i] = BaseU.Nullable.ReadBigInteger(string.Format(prompt, i)); return array; } - #endregion - - #region Read2 - - /// - /// Читает 2 массива значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBooleanTuple2(int count) - { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count)); - } - - /// - /// Читает 2 массива значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadByteTuple2(int count) - { - return Tuple.Of(ReadByte(count), ReadByte(count)); - } - - /// - /// Читает 2 массива значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSByteTuple2(int count) - { - return Tuple.Of(ReadSByte(count), ReadSByte(count)); - } - - /// - /// Читает 2 массива значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadCharTuple2(int count) - { - return Tuple.Of(ReadChar(count), ReadChar(count)); - } - - /// - /// Читает 2 массива значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDecimalTuple2(int count) - { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count)); - } - - /// - /// Читает 2 массива значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDoubleTuple2(int count) - { - return Tuple.Of(ReadDouble(count), ReadDouble(count)); - } - - /// - /// Читает 2 массива значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSingleTuple2(int count) - { - return Tuple.Of(ReadSingle(count), ReadSingle(count)); - } - - /// - /// Читает 2 массива значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt32Tuple2(int count) - { - return Tuple.Of(ReadInt32(count), ReadInt32(count)); - } - - /// - /// Читает 2 массива значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt32Tuple2(int count) - { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count)); - } - - /// - /// Читает 2 массива значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt64Tuple2(int count) - { - return Tuple.Of(ReadInt64(count), ReadInt64(count)); - } - - /// - /// Читает 2 массива значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt64Tuple2(int count) - { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count)); - } - - /// - /// Читает 2 массива значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt16Tuple2(int count) - { - return Tuple.Of(ReadInt16(count), ReadInt16(count)); - } - - /// - /// Читает 2 массива значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt16Tuple2(int count) - { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count)); - } - - /// - /// Читает 2 массива значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBigIntegerTuple2(int count) - { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count)); - } - - #endregion - - #region Read3 - + #endregion one-array + + #region two-arrays + /// - /// Читает 3 массива значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBooleanTuple3(int count) - { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); - } - - /// - /// Читает 3 массива значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadByteTuple3(int count) - { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count)); - } - - /// - /// Читает 3 массива значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSByteTuple3(int count) - { - return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count)); - } - - /// - /// Читает 3 массива значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadCharTuple3(int count) - { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count)); - } - - /// - /// Читает 3 массива значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDecimalTuple3(int count) - { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); - } - - /// - /// Читает 3 массива значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDoubleTuple3(int count) - { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count)); - } - - /// - /// Читает 3 массива значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSingleTuple3(int count) - { - return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count)); - } - - /// - /// Читает 3 массива значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt32Tuple3(int count) - { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count)); - } - - /// - /// Читает 3 массива значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt32Tuple3(int count) - { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); - } - - /// - /// Читает 3 массива значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt64Tuple3(int count) - { - return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count)); - } - - /// - /// Читает 3 массива значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt64Tuple3(int count) - { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); - } - - /// - /// Читает 3 массива значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt16Tuple3(int count) - { - return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count)); - } - - /// - /// Читает 3 массива значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt16Tuple3(int count) - { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); - } - - /// - /// Читает 3 массива значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBigIntegerTuple3(int count) - { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); - } - - #endregion - - #region Read4 - + /// Читает 2 массива значений типа Boolean?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple2(int count) + { + return TupleU.Of(ReadBoolean(count), ReadBoolean(count)); + } + /// - /// Читает 4 массива значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBooleanTuple4(int count) - { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); - } - - /// - /// Читает 4 массива значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadByteTuple4(int count) - { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); - } - - /// - /// Читает 4 массива значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSByteTuple4(int count) - { - return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); - } - - /// - /// Читает 4 массива значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadCharTuple4(int count) - { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); - } - - /// - /// Читает 4 массива значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDecimalTuple4(int count) - { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); - } - - /// - /// Читает 4 массива значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDoubleTuple4(int count) - { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); - } - - /// - /// Читает 4 массива значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSingleTuple4(int count) - { - return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); - } - - /// - /// Читает 4 массива значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt32Tuple4(int count) - { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); - } - - /// - /// Читает 4 массива значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt32Tuple4(int count) - { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); - } - - /// - /// Читает 4 массива значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt64Tuple4(int count) - { - return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); - } - - /// - /// Читает 4 массива значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt64Tuple4(int count) - { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); - } - - /// - /// Читает 4 массива значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt16Tuple4(int count) - { - return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); - } - - /// - /// Читает 4 массива значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt16Tuple4(int count) - { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); - } - - /// - /// Читает 4 массива значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBigIntegerTuple4(int count) - { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); - } - - #endregion - - #region Read5 - + /// Читает 2 массива значений типа Byte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple2(int count) + { + return TupleU.Of(ReadByte(count), ReadByte(count)); + } + /// - /// Читает 5 массивов значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBooleanTuple5(int count) - { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); - } - - /// - /// Читает 5 массивов значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadByteTuple5(int count) - { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); - } - - /// - /// Читает 5 массивов значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSByteTuple5(int count) - { - return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); - } - - /// - /// Читает 5 массивов значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadCharTuple5(int count) - { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); - } - - /// - /// Читает 5 массивов значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDecimalTuple5(int count) - { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); - } - - /// - /// Читает 5 массивов значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDoubleTuple5(int count) - { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); - } - - /// - /// Читает 5 массивов значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSingleTuple5(int count) - { - return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); - } - - /// - /// Читает 5 массивов значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt32Tuple5(int count) - { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); - } - - /// - /// Читает 5 массивов значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt32Tuple5(int count) - { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); - } - - /// - /// Читает 5 массивов значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt64Tuple5(int count) - { - return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); - } - - /// - /// Читает 5 массивов значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt64Tuple5(int count) - { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); - } - - /// - /// Читает 5 массивов значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt16Tuple5(int count) - { - return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); - } - - /// - /// Читает 5 массивов значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt16Tuple5(int count) - { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); - } - - /// - /// Читает 5 массивов значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBigIntegerTuple5(int count) - { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); - } - - #endregion - - #region Read6 - + /// Читает 2 массива значений типа SByte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple2(int count) + { + return TupleU.Of(ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 2 массива значений типа Char?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple2(int count) + { + return TupleU.Of(ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 2 массива значений типа Decimal?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple2(int count) + { + return TupleU.Of(ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 2 массива значений типа Double?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple2(int count) + { + return TupleU.Of(ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 2 массива значений типа Single?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple2(int count) + { + return TupleU.Of(ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 2 массива значений типа Int32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple2(int count) + { + return TupleU.Of(ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 2 массива значений типа UInt32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple2(int count) + { + return TupleU.Of(ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 2 массива значений типа Int64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple2(int count) + { + return TupleU.Of(ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 2 массива значений типа UInt64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple2(int count) + { + return TupleU.Of(ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 2 массива значений типа Int16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple2(int count) + { + return TupleU.Of(ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 2 массива значений типа UInt16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple2(int count) + { + return TupleU.Of(ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 2 массива значений типа BigInteger?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple2(int count) + { + return TupleU.Of(ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion two-arrays + + #region three-arrays + + /// + /// Читает 3 массива значений типа Boolean?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple3(int count) + { + return TupleU.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Читает 3 массива значений типа Byte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple3(int count) + { + return TupleU.Of(ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Читает 3 массива значений типа SByte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple3(int count) + { + return TupleU.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 3 массива значений типа Char?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple3(int count) + { + return TupleU.Of(ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 3 массива значений типа Decimal?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple3(int count) + { + return TupleU.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 3 массива значений типа Double?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple3(int count) + { + return TupleU.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 3 массива значений типа Single?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple3(int count) + { + return TupleU.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 3 массива значений типа Int32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple3(int count) + { + return TupleU.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 3 массива значений типа UInt32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple3(int count) + { + return TupleU.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 3 массива значений типа Int64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple3(int count) + { + return TupleU.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 3 массива значений типа UInt64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple3(int count) + { + return TupleU.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 3 массива значений типа Int16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple3(int count) + { + return TupleU.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 3 массива значений типа UInt16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple3(int count) + { + return TupleU.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 3 массива значений типа BigInteger?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple3(int count) + { + return TupleU.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion three-arrays + + #region four-arrays + + /// + /// Читает 4 массива значений типа Boolean?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple4(int count) + { + return TupleU.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Читает 4 массива значений типа Byte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple4(int count) + { + return TupleU.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Читает 4 массива значений типа SByte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple4(int count) + { + return TupleU.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 4 массива значений типа Char?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple4(int count) + { + return TupleU.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 4 массива значений типа Decimal?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple4(int count) + { + return TupleU.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 4 массива значений типа Double?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple4(int count) + { + return TupleU.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 4 массива значений типа Single?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple4(int count) + { + return TupleU.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 4 массива значений типа Int32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple4(int count) + { + return TupleU.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 4 массива значений типа UInt32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple4(int count) + { + return TupleU.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 4 массива значений типа Int64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple4(int count) + { + return TupleU.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 4 массива значений типа UInt64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple4(int count) + { + return TupleU.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 4 массива значений типа Int16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple4(int count) + { + return TupleU.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 4 массива значений типа UInt16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple4(int count) + { + return TupleU.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 4 массива значений типа BigInteger?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple4(int count) + { + return TupleU.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion four-arrays + + #region five-arrays + + /// + /// Читает 5 массивов значений типа Boolean?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple5(int count) + { + return TupleU.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Читает 5 массивов значений типа Byte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple5(int count) + { + return TupleU.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Читает 5 массивов значений типа SByte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple5(int count) + { + return TupleU.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 5 массивов значений типа Char?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple5(int count) + { + return TupleU.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 5 массивов значений типа Decimal?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple5(int count) + { + return TupleU.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 5 массивов значений типа Double?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple5(int count) + { + return TupleU.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 5 массивов значений типа Single?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple5(int count) + { + return TupleU.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 5 массивов значений типа Int32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple5(int count) + { + return TupleU.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 5 массивов значений типа UInt32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple5(int count) + { + return TupleU.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 5 массивов значений типа Int64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple5(int count) + { + return TupleU.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 5 массивов значений типа UInt64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple5(int count) + { + return TupleU.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 5 массивов значений типа Int16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple5(int count) + { + return TupleU.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 5 массивов значений типа UInt16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple5(int count) + { + return TupleU.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 5 массивов значений типа BigInteger?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple5(int count) + { + return TupleU.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion five-arrays + + #region six-arrays + /// - /// Читает 6 массивов значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBooleanTuple6(int count) - { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); - } - - /// - /// Читает 6 массивов значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadByteTuple6(int count) - { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); - } - - /// - /// Читает 6 массивов значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSByteTuple6(int count) - { - return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); - } - - /// - /// Читает 6 массивов значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadCharTuple6(int count) - { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); - } - - /// - /// Читает 6 массивов значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDecimalTuple6(int count) - { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); - } - - /// - /// Читает 6 массивов значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDoubleTuple6(int count) - { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); - } - - /// - /// Читает 6 массивов значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSingleTuple6(int count) - { - return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); - } - - /// - /// Читает 6 массивов значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt32Tuple6(int count) - { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); - } - - /// - /// Читает 6 массивов значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt32Tuple6(int count) - { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); - } - - /// - /// Читает 6 массивов значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt64Tuple6(int count) - { - return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); - } - - /// - /// Читает 6 массивов значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt64Tuple6(int count) - { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); - } - - /// - /// Читает 6 массивов значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt16Tuple6(int count) - { - return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); - } - - /// - /// Читает 6 массивов значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt16Tuple6(int count) - { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); - } - - /// - /// Читает 6 массивов значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBigIntegerTuple6(int count) - { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); - } - - #endregion - - #region Read7 - + /// Читает 6 массивов значений типа Boolean?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple6(int count) + { + return TupleU.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + /// - /// Читает 7 массивов значениями типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBooleanTuple7(int count) - { - return Tuple.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); - } - - /// - /// Читает 7 массивов значениями типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadByteTuple7(int count) - { - return Tuple.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); - } - - /// - /// Читает 7 массивов значениями типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSByteTuple7(int count) - { - return Tuple.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); - } - - /// - /// Читает 7 массивов значениями типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadCharTuple7(int count) - { - return Tuple.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); - } - - /// - /// Читает 7 массивов значениями типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDecimalTuple7(int count) - { - return Tuple.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); - } - - /// - /// Читает 7 массивов значениями типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadDoubleTuple7(int count) - { - return Tuple.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); - } - - /// - /// Читает 7 массивов значениями типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadSingleTuple7(int count) - { - return Tuple.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); - } - - /// - /// Читает 7 массивов значениями типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt32Tuple7(int count) - { - return Tuple.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); - } - - /// - /// Читает 7 массивов значениями типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt32Tuple7(int count) - { - return Tuple.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); - } - - /// - /// Читает 7 массивов значениями типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt64Tuple7(int count) - { - return Tuple.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); - } - - /// - /// Читает 7 массивов значениями типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt64Tuple7(int count) - { - return Tuple.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); - } - - /// - /// Читает 7 массивов значениями типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadInt16Tuple7(int count) - { - return Tuple.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); - } - - /// - /// Читает 7 массивов значениями типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadUInt16Tuple7(int count) - { - return Tuple.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); - } - - /// - /// Читает 7 массивов значениями типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] - /// - /// Размер массива. - /// Кортеж. - public static Tuple ReadBigIntegerTuple7(int count) - { - return Tuple.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); - } - - #endregion - - #endregion - + /// Читает 6 массивов значений типа Byte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple6(int count) + { + return TupleU.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Читает 6 массивов значений типа SByte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple6(int count) + { + return TupleU.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 6 массивов значений типа Char?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple6(int count) + { + return TupleU.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 6 массивов значений типа Decimal?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple6(int count) + { + return TupleU.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 6 массивов значений типа Double?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple6(int count) + { + return TupleU.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 6 массивов значений типа Single?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple6(int count) + { + return TupleU.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 6 массивов значений типа Int32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple6(int count) + { + return TupleU.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 6 массивов значений типа UInt32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple6(int count) + { + return TupleU.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 6 массивов значений типа Int64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple6(int count) + { + return TupleU.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 6 массивов значений типа UInt64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple6(int count) + { + return TupleU.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 6 массивов значений типа Int16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple6(int count) + { + return TupleU.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 6 массивов значений типа UInt16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple6(int count) + { + return TupleU.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 6 массивов значений типа BigInteger?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple6(int count) + { + return TupleU.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion six-arrays + + #region seven-arrays + + /// + /// Читает 7 массивов значений типа Boolean?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBooleanTuple7(int count) + { + return TupleU.Of(ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count), ReadBoolean(count)); + } + + /// + /// Читает 7 массивов значений типа Byte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadByteTuple7(int count) + { + return TupleU.Of(ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count), ReadByte(count)); + } + + /// + /// Читает 7 массивов значений типа SByte?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSByteTuple7(int count) + { + return TupleU.Of(ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count), ReadSByte(count)); + } + + /// + /// Читает 7 массивов значений типа Char?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadCharTuple7(int count) + { + return TupleU.Of(ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count), ReadChar(count)); + } + + /// + /// Читает 7 массивов значений типа Decimal?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDecimalTuple7(int count) + { + return TupleU.Of(ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count), ReadDecimal(count)); + } + + /// + /// Читает 7 массивов значений типа Double?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadDoubleTuple7(int count) + { + return TupleU.Of(ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count), ReadDouble(count)); + } + + /// + /// Читает 7 массивов значений типа Single?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadSingleTuple7(int count) + { + return TupleU.Of(ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count), ReadSingle(count)); + } + + /// + /// Читает 7 массивов значений типа Int32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt32Tuple7(int count) + { + return TupleU.Of(ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count), ReadInt32(count)); + } + + /// + /// Читает 7 массивов значений типа UInt32?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt32Tuple7(int count) + { + return TupleU.Of(ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count), ReadUInt32(count)); + } + + /// + /// Читает 7 массивов значений типа Int64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt64Tuple7(int count) + { + return TupleU.Of(ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count), ReadInt64(count)); + } + + /// + /// Читает 7 массивов значений типа UInt64?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt64Tuple7(int count) + { + return TupleU.Of(ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count), ReadUInt64(count)); + } + + /// + /// Читает 7 массивов значений типа Int16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadInt16Tuple7(int count) + { + return TupleU.Of(ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count), ReadInt16(count)); + } + + /// + /// Читает 7 массивов значений типа UInt16?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadUInt16Tuple7(int count) + { + return TupleU.Of(ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count), ReadUInt16(count)); + } + + /// + /// Читает 7 массивов значений типа BigInteger?. + /// + /// Размер массива. + /// Кортеж. + public static Tuple ReadBigIntegerTuple7(int count) + { + return TupleU.Of(ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count), ReadBigInteger(count)); + } + + #endregion seven-arrays + + #endregion public + } } } From 74bdee9ac48ce35350e8d794cf23a0445e861192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Wed, 10 Jun 2020 14:06:34 +0700 Subject: [PATCH 097/102] Adding "U" to utils classes in BaseU code --- NETMouse - .NET release/Utils/BaseU.Input.cs | 50 +++++++++---------- .../Utils/BaseU.Nullable.Input.cs | 31 ++++++------ NETMouse - .NET release/Utils/BaseU.Other.cs | 2 +- 3 files changed, 41 insertions(+), 42 deletions(-) diff --git a/NETMouse - .NET release/Utils/BaseU.Input.cs b/NETMouse - .NET release/Utils/BaseU.Input.cs index e248cf2..336ec3c 100644 --- a/NETMouse - .NET release/Utils/BaseU.Input.cs +++ b/NETMouse - .NET release/Utils/BaseU.Input.cs @@ -13,7 +13,7 @@ public static partial class BaseU #region public /// - /// Boolean. [ IDE PascalABC.NET.] + /// Boolean. /// /// . /// . @@ -30,7 +30,7 @@ public static bool ReadBoolean(string prompt = EmptyStringHelper.Empty) } /// - /// Byte. [ IDE PascalABC.NET.] + /// Byte. /// /// . /// . @@ -47,7 +47,7 @@ public static byte ReadByte(string prompt = EmptyStringHelper.Empty) } /// - /// SByte. [ IDE PascalABC.NET.] + /// SByte. /// /// . /// . @@ -64,7 +64,7 @@ public static sbyte ReadSByte(string prompt = EmptyStringHelper.Empty) } /// - /// Char. [ IDE PascalABC.NET.] + /// Char. /// /// . /// . @@ -75,7 +75,7 @@ public static char ReadChar(string prompt = EmptyStringHelper.Empty) } /// - /// Decimal. [ IDE PascalABC.NET.] + /// Decimal. /// /// . /// . @@ -92,7 +92,7 @@ public static decimal ReadDecimal(string prompt = EmptyStringHelper.Empty) } /// - /// Double. [ IDE PascalABC.NET.] + /// Double. /// /// . /// . @@ -109,7 +109,7 @@ public static double ReadDouble(string prompt = EmptyStringHelper.Empty) } /// - /// Single. [ IDE PascalABC.NET.] + /// Single. /// /// . /// . @@ -126,7 +126,7 @@ public static float ReadSingle(string prompt = EmptyStringHelper.Empty) } /// - /// Int32. [ IDE PascalABC.NET.] + /// Int32. /// /// . /// . @@ -143,7 +143,7 @@ public static int ReadInt32(string prompt = EmptyStringHelper.Empty) } /// - /// UInt32. [ IDE PascalABC.NET.] + /// UInt32. /// /// . /// . @@ -160,7 +160,7 @@ public static uint ReadUInt32(string prompt = EmptyStringHelper.Empty) } /// - /// Int64. [ IDE PascalABC.NET.] + /// Int64. /// /// . /// . @@ -177,7 +177,7 @@ public static long ReadInt64(string prompt = EmptyStringHelper.Empty) } /// - /// UInt64. [ IDE PascalABC.NET.] + /// UInt64. /// /// . /// . @@ -194,7 +194,7 @@ public static ulong ReadUInt64(string prompt = EmptyStringHelper.Empty) } /// - /// Int16. [ IDE PascalABC.NET.] + /// Int16. /// /// . /// . @@ -211,7 +211,7 @@ public static short ReadInt16(string prompt = EmptyStringHelper.Empty) } /// - /// UInt16. [ IDE PascalABC.NET.] + /// UInt16. /// /// . /// . @@ -228,7 +228,7 @@ public static ushort ReadUInt16(string prompt = EmptyStringHelper.Empty) } /// - /// String. [ IDE PascalABC.NET.] + /// String. /// /// . /// . @@ -239,7 +239,7 @@ public static string ReadString(string prompt = EmptyStringHelper.Empty) } /// - /// BigInteger. [ IDE PascalABC.NET.] + /// BigInteger. /// /// . /// . @@ -255,20 +255,20 @@ public static BigInteger ReadBigInteger(string prompt = EmptyStringHelper.Empty) return result; } - /// - /// [0;1). - /// + /// + /// [0;1). + /// /// . public static double Random() { return RandomHelper.Random.NextDouble(); } - /// - /// [0;1). - /// + /// + /// [0;1). + /// /// . - [Obsolete(ObsoletePABCSystemStyleHelper.Message + "Base.Random.")] + [Obsolete(ObsoletePABCSystemStyleHelper.Message + "BaseU.Random.")] public static double Rand() { return RandomHelper.Random.NextDouble(); @@ -294,7 +294,7 @@ public static int Random(int low, int high) /// . /// . /// . - [Obsolete(ObsoletePABCSystemStyleHelper.Message + "Base.Random.")] + [Obsolete(ObsoletePABCSystemStyleHelper.Message + "BaseU.Random.")] public static int Rand(int low, int high) { if (high < low) @@ -323,7 +323,7 @@ public static double Random(double low, double high) /// . /// . /// . - [Obsolete(ObsoletePABCSystemStyleHelper.Message + "Base.Random.")] + [Obsolete(ObsoletePABCSystemStyleHelper.Message + "BaseU.Random.")] public static double Rand(double low, double high) { if (high < low) @@ -333,6 +333,6 @@ public static double Rand(double low, double high) } #endregion public - + } } \ No newline at end of file diff --git a/NETMouse - .NET release/Utils/BaseU.Nullable.Input.cs b/NETMouse - .NET release/Utils/BaseU.Nullable.Input.cs index 3a14770..69684e4 100644 --- a/NETMouse - .NET release/Utils/BaseU.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/BaseU.Nullable.Input.cs @@ -1,5 +1,4 @@ using System.Numerics; -using System; using ABCNET.Extensions; namespace ABCNET.Utils @@ -18,7 +17,7 @@ public static partial class Nullable #region public /// - /// Читает значение типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Boolean?. /// /// Приглашение к вводу. /// Значение. @@ -37,7 +36,7 @@ public static partial class Nullable } /// - /// Читает значение типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Byte?. /// /// Приглашение к вводу. /// Значение. @@ -56,7 +55,7 @@ public static partial class Nullable } /// - /// Читает значение типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа SByte?. /// /// Приглашение к вводу. /// Значение. @@ -75,7 +74,7 @@ public static partial class Nullable } /// - /// Читает значение типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Char?. /// /// Приглашение к вводу. /// Значение. @@ -86,7 +85,7 @@ public static partial class Nullable } /// - /// Читает значение типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Decimal?. /// /// Приглашение к вводу. /// Значение. @@ -105,7 +104,7 @@ public static partial class Nullable } /// - /// Читает значение типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Double?. /// /// Приглашение к вводу. /// Значение. @@ -124,7 +123,7 @@ public static partial class Nullable } /// - /// Читает значение типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Single?. /// /// Приглашение к вводу. /// Значение. @@ -143,7 +142,7 @@ public static partial class Nullable } /// - /// Читает значение типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Int32?. /// /// Приглашение к вводу. /// Значение. @@ -162,7 +161,7 @@ public static partial class Nullable } /// - /// Читает значение типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа UInt32?. /// /// Приглашение к вводу. /// Значение. @@ -181,7 +180,7 @@ public static partial class Nullable } /// - /// Читает значение типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Int64?. /// /// Приглашение к вводу. /// Значение. @@ -200,7 +199,7 @@ public static partial class Nullable } /// - /// Читает значение типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа UInt64?. /// /// Приглашение к вводу. /// Значение. @@ -219,7 +218,7 @@ public static partial class Nullable } /// - /// Читает значение типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа Int16?. /// /// Приглашение к вводу. /// Значение. @@ -238,7 +237,7 @@ public static partial class Nullable } /// - /// Читает значение типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа UInt16?. /// /// Приглашение к вводу. /// Значение. @@ -257,7 +256,7 @@ public static partial class Nullable } /// - /// Читает значение типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает значение типа BigInteger?. /// /// Приглашение к вводу. /// Значение. @@ -285,7 +284,7 @@ private static string InternalReadTrimmedString(string prompt) } #endregion private - + } } } diff --git a/NETMouse - .NET release/Utils/BaseU.Other.cs b/NETMouse - .NET release/Utils/BaseU.Other.cs index fa8b7f5..e424164 100644 --- a/NETMouse - .NET release/Utils/BaseU.Other.cs +++ b/NETMouse - .NET release/Utils/BaseU.Other.cs @@ -21,6 +21,6 @@ public static void Swap(ref T x, ref T y) } #endregion public - + } } From d5c09f5ba940a8d15336bc009b594a4b04b7965c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Wed, 10 Jun 2020 14:06:49 +0700 Subject: [PATCH 098/102] Adding "U" to utils classes in MatrixU code --- .../Utils/MatrixU.Generators.cs | 4 +- .../Utils/MatrixU.Input.cs | 210 +++++++++--------- .../Utils/MatrixU.Nullable.Input.cs | 196 ++++++++-------- 3 files changed, 205 insertions(+), 205 deletions(-) diff --git a/NETMouse - .NET release/Utils/MatrixU.Generators.cs b/NETMouse - .NET release/Utils/MatrixU.Generators.cs index d5f3471..03743e7 100644 --- a/NETMouse - .NET release/Utils/MatrixU.Generators.cs +++ b/NETMouse - .NET release/Utils/MatrixU.Generators.cs @@ -86,7 +86,7 @@ public static partial class MatrixU int[,] source = new int[rowsCount, colsCount]; for (int i = 0; i < source.GetLength(0); i++) for (int j = 0; j < source.GetLength(1); j++) - source[i, j] = Base.Random(low, high); + source[i, j] = BaseU.Random(low, high); return source; } @@ -111,7 +111,7 @@ public static partial class MatrixU double[,] source = new double[rowsCount, colsCount]; for (int i = 0; i < source.GetLength(0); i++) for (int j = 0; j < source.GetLength(1); j++) - source[i, j] = Base.Random(low, high); + source[i, j] = BaseU.Random(low, high); return source; } diff --git a/NETMouse - .NET release/Utils/MatrixU.Input.cs b/NETMouse - .NET release/Utils/MatrixU.Input.cs index 2db9b16..f8074ba 100644 --- a/NETMouse - .NET release/Utils/MatrixU.Input.cs +++ b/NETMouse - .NET release/Utils/MatrixU.Input.cs @@ -34,7 +34,7 @@ public static partial class MatrixU { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadBoolean(string.Format(prompt, i, j)); + source[i, j] = BaseU.ReadBoolean(string.Format(prompt, i, j)); } } @@ -62,7 +62,7 @@ public static partial class MatrixU { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadByte(string.Format(prompt, i, j)); + source[i, j] = BaseU.ReadByte(string.Format(prompt, i, j)); } } @@ -90,7 +90,7 @@ public static partial class MatrixU { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadSByte(string.Format(prompt, i, j)); + source[i, j] = BaseU.ReadSByte(string.Format(prompt, i, j)); } } @@ -118,7 +118,7 @@ public static partial class MatrixU { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadChar(string.Format(prompt, i, j)); + source[i, j] = BaseU.ReadChar(string.Format(prompt, i, j)); } } @@ -146,7 +146,7 @@ public static partial class MatrixU { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadDecimal(string.Format(prompt, i, j)); + source[i, j] = BaseU.ReadDecimal(string.Format(prompt, i, j)); } } @@ -174,7 +174,7 @@ public static partial class MatrixU { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadDouble(string.Format(prompt, i, j)); + source[i, j] = BaseU.ReadDouble(string.Format(prompt, i, j)); } } @@ -202,7 +202,7 @@ public static partial class MatrixU { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadSingle(string.Format(prompt, i, j)); + source[i, j] = BaseU.ReadSingle(string.Format(prompt, i, j)); } } @@ -230,7 +230,7 @@ public static partial class MatrixU { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadInt32(string.Format(prompt, i, j)); + source[i, j] = BaseU.ReadInt32(string.Format(prompt, i, j)); } } @@ -258,7 +258,7 @@ public static partial class MatrixU { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadUInt32(string.Format(prompt, i, j)); + source[i, j] = BaseU.ReadUInt32(string.Format(prompt, i, j)); } } @@ -286,7 +286,7 @@ public static partial class MatrixU { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadInt64(string.Format(prompt, i, j)); + source[i, j] = BaseU.ReadInt64(string.Format(prompt, i, j)); } } @@ -314,7 +314,7 @@ public static partial class MatrixU { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadUInt64(string.Format(prompt, i, j)); + source[i, j] = BaseU.ReadUInt64(string.Format(prompt, i, j)); } } @@ -342,7 +342,7 @@ public static partial class MatrixU { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadInt16(string.Format(prompt, i, j)); + source[i, j] = BaseU.ReadInt16(string.Format(prompt, i, j)); } } @@ -370,7 +370,7 @@ public static partial class MatrixU { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadUInt16(string.Format(prompt, i, j)); + source[i, j] = BaseU.ReadUInt16(string.Format(prompt, i, j)); } } @@ -398,7 +398,7 @@ public static partial class MatrixU { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadBigInteger(string.Format(prompt, i, j)); + source[i, j] = BaseU.ReadBigInteger(string.Format(prompt, i, j)); } } @@ -426,7 +426,7 @@ public static partial class MatrixU { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.ReadString(string.Format(prompt, i, j)); + source[i, j] = BaseU.ReadString(string.Format(prompt, i, j)); } } @@ -445,7 +445,7 @@ public static partial class MatrixU /// Кортеж. public static Tuple ReadBooleanTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + return TupleU.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); } /// @@ -456,7 +456,7 @@ public static Tuple ReadBooleanTuple2(int rowsCount, int colsC /// Кортеж. public static Tuple ReadByteTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + return TupleU.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); } /// @@ -467,7 +467,7 @@ public static Tuple ReadByteTuple2(int rowsCount, int colsCoun /// Кортеж. public static Tuple ReadSByteTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + return TupleU.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); } /// @@ -478,7 +478,7 @@ public static Tuple ReadSByteTuple2(int rowsCount, int colsC /// Кортеж. public static Tuple ReadCharTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + return TupleU.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); } /// @@ -489,7 +489,7 @@ public static Tuple ReadCharTuple2(int rowsCount, int colsCoun /// Кортеж. public static Tuple ReadDecimalTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + return TupleU.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); } /// @@ -500,7 +500,7 @@ public static Tuple ReadDecimalTuple2(int rowsCount, int /// Кортеж. public static Tuple ReadDoubleTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + return TupleU.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); } /// @@ -511,7 +511,7 @@ public static Tuple ReadDoubleTuple2(int rowsCount, int co /// Кортеж. public static Tuple ReadSingleTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + return TupleU.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); } /// @@ -522,7 +522,7 @@ public static Tuple ReadSingleTuple2(int rowsCount, int cols /// Кортеж. public static Tuple ReadInt32Tuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + return TupleU.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); } /// @@ -533,7 +533,7 @@ public static Tuple ReadInt32Tuple2(int rowsCount, int colsCount /// Кортеж. public static Tuple ReadUInt32Tuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + return TupleU.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); } /// @@ -544,7 +544,7 @@ public static Tuple ReadUInt32Tuple2(int rowsCount, int colsCo /// Кортеж. public static Tuple ReadInt64Tuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + return TupleU.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); } /// @@ -555,7 +555,7 @@ public static Tuple ReadInt64Tuple2(int rowsCount, int colsCou /// Кортеж. public static Tuple ReadUInt64Tuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + return TupleU.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); } /// @@ -566,7 +566,7 @@ public static Tuple ReadUInt64Tuple2(int rowsCount, int cols /// Кортеж. public static Tuple ReadInt16Tuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + return TupleU.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); } /// @@ -577,7 +577,7 @@ public static Tuple ReadInt16Tuple2(int rowsCount, int colsC /// Кортеж. public static Tuple ReadUInt16Tuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + return TupleU.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); } /// @@ -588,7 +588,7 @@ public static Tuple ReadUInt16Tuple2(int rowsCount, int co /// Кортеж. public static Tuple ReadBigIntegerTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + return TupleU.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); } /// @@ -599,7 +599,7 @@ public static Tuple ReadBigIntegerTuple2(int rowsC /// Кортеж. public static Tuple ReadStringTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + return TupleU.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); } #endregion @@ -614,7 +614,7 @@ public static Tuple ReadStringTuple2(int rowsCount, int co /// Кортеж. public static Tuple ReadBooleanTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + return TupleU.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); } /// @@ -625,7 +625,7 @@ public static Tuple ReadBooleanTuple3(int rowsCount, /// Кортеж. public static Tuple ReadByteTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + return TupleU.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); } /// @@ -636,7 +636,7 @@ public static Tuple ReadByteTuple3(int rowsCount, int /// Кортеж. public static Tuple ReadSByteTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + return TupleU.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); } /// @@ -647,7 +647,7 @@ public static Tuple ReadSByteTuple3(int rowsCount, /// Кортеж. public static Tuple ReadCharTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + return TupleU.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); } /// @@ -658,7 +658,7 @@ public static Tuple ReadCharTuple3(int rowsCount, int /// Кортеж. public static Tuple ReadDecimalTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + return TupleU.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); } /// @@ -669,7 +669,7 @@ public static Tuple ReadDecimalTuple3(int ro /// Кортеж. public static Tuple ReadDoubleTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + return TupleU.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); } /// @@ -680,7 +680,7 @@ public static Tuple ReadDoubleTuple3(int rowsCo /// Кортеж. public static Tuple ReadSingleTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + return TupleU.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); } /// @@ -691,7 +691,7 @@ public static Tuple ReadSingleTuple3(int rowsCount /// Кортеж. public static Tuple ReadInt32Tuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + return TupleU.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); } /// @@ -702,7 +702,7 @@ public static Tuple ReadInt32Tuple3(int rowsCount, int c /// Кортеж. public static Tuple ReadUInt32Tuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + return TupleU.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); } /// @@ -713,7 +713,7 @@ public static Tuple ReadUInt32Tuple3(int rowsCount, i /// Кортеж. public static Tuple ReadInt64Tuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + return TupleU.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); } /// @@ -724,7 +724,7 @@ public static Tuple ReadInt64Tuple3(int rowsCount, in /// Кортеж. public static Tuple ReadUInt64Tuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + return TupleU.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); } /// @@ -735,7 +735,7 @@ public static Tuple ReadUInt64Tuple3(int rowsCount /// Кортеж. public static Tuple ReadInt16Tuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + return TupleU.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); } /// @@ -746,7 +746,7 @@ public static Tuple ReadInt16Tuple3(int rowsCount, /// Кортеж. public static Tuple ReadUInt16Tuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + return TupleU.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); } /// @@ -757,7 +757,7 @@ public static Tuple ReadUInt16Tuple3(int rowsCo /// Кортеж. public static Tuple ReadBigIntegerTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + return TupleU.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); } /// @@ -768,7 +768,7 @@ public static Tuple ReadBigIntegerT /// Кортеж. public static Tuple ReadStringTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + return TupleU.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); } #endregion @@ -783,7 +783,7 @@ public static Tuple ReadStringTuple3(int rowsCo /// Кортеж. public static Tuple ReadBooleanTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + return TupleU.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); } /// @@ -794,7 +794,7 @@ public static Tuple ReadBooleanTuple4(int ro /// Кортеж. public static Tuple ReadByteTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + return TupleU.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); } /// @@ -805,7 +805,7 @@ public static Tuple ReadByteTuple4(int rowsC /// Кортеж. public static Tuple ReadSByteTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + return TupleU.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); } /// @@ -816,7 +816,7 @@ public static Tuple ReadSByteTuple4(int /// Кортеж. public static Tuple ReadCharTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + return TupleU.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); } /// @@ -827,7 +827,7 @@ public static Tuple ReadCharTuple4(int rowsC /// Кортеж. public static Tuple ReadDecimalTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + return TupleU.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); } /// @@ -838,7 +838,7 @@ public static Tuple ReadDecimalT /// Кортеж. public static Tuple ReadDoubleTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + return TupleU.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); } /// @@ -849,7 +849,7 @@ public static Tuple ReadDoubleTuple4 /// Кортеж. public static Tuple ReadSingleTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + return TupleU.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); } /// @@ -860,7 +860,7 @@ public static Tuple ReadSingleTuple4(int /// Кортеж. public static Tuple ReadInt32Tuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + return TupleU.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); } /// @@ -871,7 +871,7 @@ public static Tuple ReadInt32Tuple4(int rowsCoun /// Кортеж. public static Tuple ReadUInt32Tuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + return TupleU.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); } /// @@ -882,7 +882,7 @@ public static Tuple ReadUInt32Tuple4(int row /// Кортеж. public static Tuple ReadInt64Tuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + return TupleU.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); } /// @@ -893,7 +893,7 @@ public static Tuple ReadInt64Tuple4(int rows /// Кортеж. public static Tuple ReadUInt64Tuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + return TupleU.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); } /// @@ -904,7 +904,7 @@ public static Tuple ReadUInt64Tuple4(int /// Кортеж. public static Tuple ReadInt16Tuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + return TupleU.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); } /// @@ -915,7 +915,7 @@ public static Tuple ReadInt16Tuple4(int /// Кортеж. public static Tuple ReadUInt16Tuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + return TupleU.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); } /// @@ -926,7 +926,7 @@ public static Tuple ReadUInt16Tuple4 /// Кортеж. public static Tuple ReadBigIntegerTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + return TupleU.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); } /// @@ -937,7 +937,7 @@ public static Tuple /// Кортеж. public static Tuple ReadStringTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + return TupleU.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); } #endregion @@ -952,7 +952,7 @@ public static Tuple ReadStringTuple4 /// Кортеж. public static Tuple ReadBooleanTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + return TupleU.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); } /// @@ -963,7 +963,7 @@ public static Tuple ReadBooleanTupl /// Кортеж. public static Tuple ReadByteTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + return TupleU.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); } /// @@ -974,7 +974,7 @@ public static Tuple ReadByteTuple5( /// Кортеж. public static Tuple ReadSByteTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + return TupleU.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); } /// @@ -985,7 +985,7 @@ public static Tuple ReadSByteT /// Кортеж. public static Tuple ReadCharTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + return TupleU.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); } /// @@ -996,7 +996,7 @@ public static Tuple ReadCharTuple5( /// Кортеж. public static Tuple ReadDecimalTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + return TupleU.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); } /// @@ -1007,7 +1007,7 @@ public static Tuple /// Кортеж. public static Tuple ReadDoubleTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + return TupleU.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); } /// @@ -1018,7 +1018,7 @@ public static Tuple ReadD /// Кортеж. public static Tuple ReadSingleTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + return TupleU.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); } /// @@ -1029,7 +1029,7 @@ public static Tuple ReadSingle /// Кортеж. public static Tuple ReadInt32Tuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + return TupleU.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); } /// @@ -1040,7 +1040,7 @@ public static Tuple ReadInt32Tuple5(int /// Кортеж. public static Tuple ReadUInt32Tuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + return TupleU.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); } /// @@ -1051,7 +1051,7 @@ public static Tuple ReadUInt32Tuple /// Кортеж. public static Tuple ReadInt64Tuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + return TupleU.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); } /// @@ -1062,7 +1062,7 @@ public static Tuple ReadInt64Tuple5 /// Кортеж. public static Tuple ReadUInt64Tuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + return TupleU.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); } /// @@ -1073,7 +1073,7 @@ public static Tuple ReadUInt64 /// Кортеж. public static Tuple ReadInt16Tuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + return TupleU.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); } /// @@ -1084,7 +1084,7 @@ public static Tuple ReadInt16T /// Кортеж. public static Tuple ReadUInt16Tuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + return TupleU.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); } /// @@ -1095,7 +1095,7 @@ public static Tuple ReadU /// Кортеж. public static Tuple ReadBigIntegerTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + return TupleU.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); } /// @@ -1106,7 +1106,7 @@ public static TupleКортеж. public static Tuple ReadStringTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + return TupleU.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); } #endregion @@ -1121,7 +1121,7 @@ public static Tuple ReadS /// Кортеж. public static Tuple ReadBooleanTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + return TupleU.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); } /// @@ -1132,7 +1132,7 @@ public static Tuple ReadBo /// Кортеж. public static Tuple ReadByteTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + return TupleU.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); } /// @@ -1143,7 +1143,7 @@ public static Tuple ReadBy /// Кортеж. public static Tuple ReadSByteTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + return TupleU.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); } /// @@ -1154,7 +1154,7 @@ public static Tuple /// Кортеж. public static Tuple ReadCharTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + return TupleU.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); } /// @@ -1165,7 +1165,7 @@ public static Tuple ReadCh /// Кортеж. public static Tuple ReadDecimalTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + return TupleU.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); } /// @@ -1176,7 +1176,7 @@ public static TupleКортеж. public static Tuple ReadDoubleTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + return TupleU.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); } /// @@ -1187,7 +1187,7 @@ public static TupleКортеж. public static Tuple ReadSingleTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + return TupleU.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); } /// @@ -1198,7 +1198,7 @@ public static Tuple /// Кортеж. public static Tuple ReadInt32Tuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + return TupleU.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); } /// @@ -1209,7 +1209,7 @@ public static Tuple ReadInt32Tup /// Кортеж. public static Tuple ReadUInt32Tuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + return TupleU.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); } /// @@ -1220,7 +1220,7 @@ public static Tuple ReadUI /// Кортеж. public static Tuple ReadInt64Tuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + return TupleU.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); } /// @@ -1231,7 +1231,7 @@ public static Tuple ReadIn /// Кортеж. public static Tuple ReadUInt64Tuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + return TupleU.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); } /// @@ -1242,7 +1242,7 @@ public static Tuple /// Кортеж. public static Tuple ReadInt16Tuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + return TupleU.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); } /// @@ -1253,7 +1253,7 @@ public static Tuple /// Кортеж. public static Tuple ReadUInt16Tuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + return TupleU.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); } /// @@ -1264,7 +1264,7 @@ public static TupleКортеж. public static Tuple ReadBigIntegerTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + return TupleU.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); } /// @@ -1275,7 +1275,7 @@ public static TupleКортеж. public static Tuple ReadStringTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + return TupleU.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); } #endregion @@ -1290,7 +1290,7 @@ public static TupleКортеж. public static Tuple ReadBooleanTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + return TupleU.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); } /// @@ -1301,7 +1301,7 @@ public static TupleКортеж. public static Tuple ReadByteTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + return TupleU.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); } /// @@ -1312,7 +1312,7 @@ public static TupleКортеж. public static Tuple ReadSByteTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + return TupleU.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); } /// @@ -1323,7 +1323,7 @@ public static TupleКортеж. public static Tuple ReadCharTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + return TupleU.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); } /// @@ -1334,7 +1334,7 @@ public static TupleКортеж. public static Tuple ReadDecimalTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + return TupleU.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); } /// @@ -1345,7 +1345,7 @@ public static TupleКортеж. public static Tuple ReadDoubleTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + return TupleU.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); } /// @@ -1356,7 +1356,7 @@ public static TupleКортеж. public static Tuple ReadSingleTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + return TupleU.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); } /// @@ -1367,7 +1367,7 @@ public static TupleКортеж. public static Tuple ReadInt32Tuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + return TupleU.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); } /// @@ -1378,7 +1378,7 @@ public static Tuple Read /// Кортеж. public static Tuple ReadUInt32Tuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + return TupleU.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); } /// @@ -1389,7 +1389,7 @@ public static TupleКортеж. public static Tuple ReadInt64Tuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + return TupleU.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); } /// @@ -1400,7 +1400,7 @@ public static TupleКортеж. public static Tuple ReadUInt64Tuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + return TupleU.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); } /// @@ -1411,7 +1411,7 @@ public static TupleКортеж. public static Tuple ReadInt16Tuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + return TupleU.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); } /// @@ -1422,7 +1422,7 @@ public static TupleКортеж. public static Tuple ReadUInt16Tuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + return TupleU.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); } /// @@ -1433,7 +1433,7 @@ public static TupleКортеж. public static Tuple ReadBigIntegerTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + return TupleU.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); } /// @@ -1444,7 +1444,7 @@ public static TupleКортеж. public static Tuple ReadStringTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); + return TupleU.Of(ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount), ReadString(rowsCount, colsCount)); } #endregion diff --git a/NETMouse - .NET release/Utils/MatrixU.Nullable.Input.cs b/NETMouse - .NET release/Utils/MatrixU.Nullable.Input.cs index 4147890..d973c66 100644 --- a/NETMouse - .NET release/Utils/MatrixU.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/MatrixU.Nullable.Input.cs @@ -39,7 +39,7 @@ public static partial class Nullable { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.Nullable.ReadBoolean(string.Format(prompt, i, j)); + source[i, j] = BaseU.Nullable.ReadBoolean(string.Format(prompt, i, j)); } } @@ -67,7 +67,7 @@ public static partial class Nullable { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.Nullable.ReadByte(string.Format(prompt, i, j)); + source[i, j] = BaseU.Nullable.ReadByte(string.Format(prompt, i, j)); } } @@ -95,7 +95,7 @@ public static partial class Nullable { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.Nullable.ReadSByte(string.Format(prompt, i, j)); + source[i, j] = BaseU.Nullable.ReadSByte(string.Format(prompt, i, j)); } } @@ -123,7 +123,7 @@ public static partial class Nullable { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.Nullable.ReadChar(string.Format(prompt, i, j)); + source[i, j] = BaseU.Nullable.ReadChar(string.Format(prompt, i, j)); } } @@ -151,7 +151,7 @@ public static partial class Nullable { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.Nullable.ReadDecimal(string.Format(prompt, i, j)); + source[i, j] = BaseU.Nullable.ReadDecimal(string.Format(prompt, i, j)); } } @@ -179,7 +179,7 @@ public static partial class Nullable { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.Nullable.ReadDouble(string.Format(prompt, i, j)); + source[i, j] = BaseU.Nullable.ReadDouble(string.Format(prompt, i, j)); } } @@ -207,7 +207,7 @@ public static partial class Nullable { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.Nullable.ReadSingle(string.Format(prompt, i, j)); + source[i, j] = BaseU.Nullable.ReadSingle(string.Format(prompt, i, j)); } } @@ -235,7 +235,7 @@ public static partial class Nullable { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.Nullable.ReadInt32(string.Format(prompt, i, j)); + source[i, j] = BaseU.Nullable.ReadInt32(string.Format(prompt, i, j)); } } @@ -263,7 +263,7 @@ public static partial class Nullable { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.Nullable.ReadUInt32(string.Format(prompt, i, j)); + source[i, j] = BaseU.Nullable.ReadUInt32(string.Format(prompt, i, j)); } } @@ -291,7 +291,7 @@ public static partial class Nullable { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.Nullable.ReadInt64(string.Format(prompt, i, j)); + source[i, j] = BaseU.Nullable.ReadInt64(string.Format(prompt, i, j)); } } @@ -319,7 +319,7 @@ public static partial class Nullable { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.Nullable.ReadUInt64(string.Format(prompt, i, j)); + source[i, j] = BaseU.Nullable.ReadUInt64(string.Format(prompt, i, j)); } } @@ -347,7 +347,7 @@ public static partial class Nullable { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.Nullable.ReadInt16(string.Format(prompt, i, j)); + source[i, j] = BaseU.Nullable.ReadInt16(string.Format(prompt, i, j)); } } @@ -375,7 +375,7 @@ public static partial class Nullable { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.Nullable.ReadUInt16(string.Format(prompt, i, j)); + source[i, j] = BaseU.Nullable.ReadUInt16(string.Format(prompt, i, j)); } } @@ -403,7 +403,7 @@ public static partial class Nullable { for (int j = 0; j < colsCount; j++) { - source[i, j] = Base.Nullable.ReadBigInteger(string.Format(prompt, i, j)); + source[i, j] = BaseU.Nullable.ReadBigInteger(string.Format(prompt, i, j)); } } @@ -422,7 +422,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadBooleanTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + return TupleU.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); } /// @@ -433,7 +433,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadByteTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + return TupleU.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); } /// @@ -444,7 +444,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadSByteTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + return TupleU.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); } /// @@ -455,7 +455,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadCharTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + return TupleU.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); } /// @@ -466,7 +466,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadDecimalTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + return TupleU.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); } /// @@ -477,7 +477,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadDoubleTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + return TupleU.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); } /// @@ -488,7 +488,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadSingleTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + return TupleU.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); } /// @@ -499,7 +499,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt32Tuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + return TupleU.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); } /// @@ -510,7 +510,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt32Tuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + return TupleU.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); } /// @@ -521,7 +521,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt64Tuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + return TupleU.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); } /// @@ -532,7 +532,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt64Tuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + return TupleU.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); } /// @@ -543,7 +543,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt16Tuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + return TupleU.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); } /// @@ -554,7 +554,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt16Tuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + return TupleU.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); } /// @@ -565,7 +565,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadBigIntegerTuple2(int rowsCount, int colsCount) { - return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + return TupleU.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); } #endregion @@ -580,7 +580,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadBooleanTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + return TupleU.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); } /// @@ -591,7 +591,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadByteTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + return TupleU.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); } /// @@ -602,7 +602,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadSByteTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + return TupleU.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); } /// @@ -613,7 +613,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadCharTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + return TupleU.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); } /// @@ -624,7 +624,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadDecimalTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + return TupleU.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); } /// @@ -635,7 +635,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadDoubleTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + return TupleU.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); } /// @@ -646,7 +646,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadSingleTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + return TupleU.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); } /// @@ -657,7 +657,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt32Tuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + return TupleU.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); } /// @@ -668,7 +668,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt32Tuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + return TupleU.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); } /// @@ -679,7 +679,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt64Tuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + return TupleU.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); } /// @@ -690,7 +690,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt64Tuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + return TupleU.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); } /// @@ -701,7 +701,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt16Tuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + return TupleU.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); } /// @@ -712,7 +712,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt16Tuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + return TupleU.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); } /// @@ -723,7 +723,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadBigIntegerTuple3(int rowsCount, int colsCount) { - return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + return TupleU.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); } #endregion @@ -738,7 +738,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadBooleanTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + return TupleU.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); } /// @@ -749,7 +749,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadByteTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + return TupleU.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); } /// @@ -760,7 +760,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadSByteTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + return TupleU.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); } /// @@ -771,7 +771,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadCharTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + return TupleU.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); } /// @@ -782,7 +782,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadDecimalTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + return TupleU.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); } /// @@ -793,7 +793,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadDoubleTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + return TupleU.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); } /// @@ -804,7 +804,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadSingleTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + return TupleU.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); } /// @@ -815,7 +815,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt32Tuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + return TupleU.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); } /// @@ -826,7 +826,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt32Tuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + return TupleU.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); } /// @@ -837,7 +837,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt64Tuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + return TupleU.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); } /// @@ -848,7 +848,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt64Tuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + return TupleU.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); } /// @@ -859,7 +859,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt16Tuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + return TupleU.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); } /// @@ -870,7 +870,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt16Tuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + return TupleU.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); } /// @@ -881,7 +881,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadBigIntegerTuple4(int rowsCount, int colsCount) { - return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + return TupleU.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); } #endregion @@ -896,7 +896,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadBooleanTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + return TupleU.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); } /// @@ -907,7 +907,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadByteTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + return TupleU.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); } /// @@ -918,7 +918,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadSByteTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + return TupleU.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); } /// @@ -929,7 +929,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadCharTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + return TupleU.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); } /// @@ -940,7 +940,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadDecimalTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + return TupleU.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); } /// @@ -951,7 +951,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadDoubleTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + return TupleU.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); } /// @@ -962,7 +962,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadSingleTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + return TupleU.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); } /// @@ -973,7 +973,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt32Tuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + return TupleU.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); } /// @@ -984,7 +984,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt32Tuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + return TupleU.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); } /// @@ -995,7 +995,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt64Tuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + return TupleU.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); } /// @@ -1006,7 +1006,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt64Tuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + return TupleU.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); } /// @@ -1017,7 +1017,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt16Tuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + return TupleU.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); } /// @@ -1028,7 +1028,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt16Tuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + return TupleU.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); } /// @@ -1039,7 +1039,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadBigIntegerTuple5(int rowsCount, int colsCount) { - return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + return TupleU.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); } #endregion @@ -1054,7 +1054,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadBooleanTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + return TupleU.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); } /// @@ -1065,7 +1065,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadByteTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + return TupleU.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); } /// @@ -1076,7 +1076,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadSByteTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + return TupleU.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); } /// @@ -1087,7 +1087,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadCharTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + return TupleU.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); } /// @@ -1098,7 +1098,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadDecimalTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + return TupleU.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); } /// @@ -1109,7 +1109,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadDoubleTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + return TupleU.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); } /// @@ -1120,7 +1120,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadSingleTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + return TupleU.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); } /// @@ -1131,7 +1131,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt32Tuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + return TupleU.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); } /// @@ -1142,7 +1142,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt32Tuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + return TupleU.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); } /// @@ -1153,7 +1153,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt64Tuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + return TupleU.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); } /// @@ -1164,7 +1164,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt64Tuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + return TupleU.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); } /// @@ -1175,7 +1175,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt16Tuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + return TupleU.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); } /// @@ -1186,7 +1186,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt16Tuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + return TupleU.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); } /// @@ -1197,7 +1197,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadBigIntegerTuple6(int rowsCount, int colsCount) { - return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + return TupleU.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); } #endregion @@ -1212,7 +1212,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadBooleanTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); + return TupleU.Of(ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount), ReadBoolean(rowsCount, colsCount)); } /// @@ -1223,7 +1223,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadByteTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); + return TupleU.Of(ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount), ReadByte(rowsCount, colsCount)); } /// @@ -1234,7 +1234,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadSByteTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); + return TupleU.Of(ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount), ReadSByte(rowsCount, colsCount)); } /// @@ -1245,7 +1245,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadCharTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); + return TupleU.Of(ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount), ReadChar(rowsCount, colsCount)); } /// @@ -1256,7 +1256,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadDecimalTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); + return TupleU.Of(ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount), ReadDecimal(rowsCount, colsCount)); } /// @@ -1267,7 +1267,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadDoubleTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); + return TupleU.Of(ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount), ReadDouble(rowsCount, colsCount)); } /// @@ -1278,7 +1278,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadSingleTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); + return TupleU.Of(ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount), ReadSingle(rowsCount, colsCount)); } /// @@ -1289,7 +1289,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt32Tuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); + return TupleU.Of(ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount), ReadInt32(rowsCount, colsCount)); } /// @@ -1300,7 +1300,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt32Tuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); + return TupleU.Of(ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount), ReadUInt32(rowsCount, colsCount)); } /// @@ -1311,7 +1311,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt64Tuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); + return TupleU.Of(ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount), ReadInt64(rowsCount, colsCount)); } /// @@ -1322,7 +1322,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt64Tuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); + return TupleU.Of(ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount), ReadUInt64(rowsCount, colsCount)); } /// @@ -1333,7 +1333,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadInt16Tuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); + return TupleU.Of(ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount), ReadInt16(rowsCount, colsCount)); } /// @@ -1344,7 +1344,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadUInt16Tuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); + return TupleU.Of(ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount), ReadUInt16(rowsCount, colsCount)); } /// @@ -1355,7 +1355,7 @@ public static partial class Nullable /// Кортеж. public static Tuple ReadBigIntegerTuple7(int rowsCount, int colsCount) { - return Tuple.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); + return TupleU.Of(ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount), ReadBigInteger(rowsCount, colsCount)); } #endregion From a3e204fe28df0c92c4fd8d67347a89c4f49620e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Wed, 10 Jun 2020 14:07:03 +0700 Subject: [PATCH 099/102] Adding "U" to utils classes in SequenceU code --- .../Utils/SequenceU.Generators.cs | 6 +- .../Utils/SequenceU.Input.cs | 722 ++++++++---------- .../Utils/SequenceU.Nullable.Input.cs | 494 +++++------- 3 files changed, 525 insertions(+), 697 deletions(-) diff --git a/NETMouse - .NET release/Utils/SequenceU.Generators.cs b/NETMouse - .NET release/Utils/SequenceU.Generators.cs index f923612..8e9db82 100644 --- a/NETMouse - .NET release/Utils/SequenceU.Generators.cs +++ b/NETMouse - .NET release/Utils/SequenceU.Generators.cs @@ -44,7 +44,7 @@ public static IEnumerable Random(int count, int low = Int32BordersHelper.Lo throw new ArgumentException(nameof(low)); for (int i = 0; i < count; i++) - yield return Base.Random(low, high); + yield return BaseU.Random(low, high); } /// @@ -62,7 +62,7 @@ public static IEnumerable Random(int count, double low = DoubleBordersHe throw new ArgumentException(nameof(low)); for (int i = 0; i < count; i++) - yield return Base.Random(low, high); + yield return BaseU.Random(low, high); } /// @@ -81,6 +81,6 @@ public static IEnumerable Fill(int count, T value) } #endregion public - + } } \ No newline at end of file diff --git a/NETMouse - .NET release/Utils/SequenceU.Input.cs b/NETMouse - .NET release/Utils/SequenceU.Input.cs index 706c36a..b2e33f2 100644 --- a/NETMouse - .NET release/Utils/SequenceU.Input.cs +++ b/NETMouse - .NET release/Utils/SequenceU.Input.cs @@ -4,15 +4,15 @@ namespace ABCNET.Utils { - /// - /// Description of Class1. - /// - public static partial class SequenceU + /// + /// Предоставляет функционал для работы с последовательностями. + /// + public static partial class Sequence { #region public - #region Read1 + #region one-sequence /// /// Читает последовательность типа Boolean с клавиатуры. @@ -25,13 +25,7 @@ public static IEnumerable ReadBoolean(int count, string prompt = EmptyStri if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - bool[] result = new bool[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadBoolean(string.Format(prompt, i)); - - return result; + return ArrayU.ReadBoolean(count, prompt); } /// @@ -45,13 +39,7 @@ public static IEnumerable ReadByte(int count, string prompt = EmptyStringH if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - byte[] result = new byte[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadByte(string.Format(prompt, i)); - - return result; + return ArrayU.ReadByte(count, prompt); } /// @@ -65,13 +53,7 @@ public static IEnumerable ReadSByte(int count, string prompt = EmptyStrin if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - sbyte[] result = new sbyte[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadSByte(string.Format(prompt, i)); - - return result; + return ArrayU.ReadSByte(count, prompt); } /// @@ -85,13 +67,7 @@ public static IEnumerable ReadChar(int count, string prompt = EmptyStringH if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - char[] result = new char[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadChar(string.Format(prompt, i)); - - return result; + return ArrayU.ReadChar(count, prompt); } /// @@ -105,13 +81,7 @@ public static IEnumerable ReadDecimal(int count, string prompt = EmptyS if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - decimal[] result = new decimal[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadDecimal(string.Format(prompt, i)); - - return result; + return ArrayU.ReadDecimal(count, prompt); } /// @@ -125,13 +95,7 @@ public static IEnumerable ReadDouble(int count, string prompt = EmptyStr if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - double[] result = new double[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadDouble(string.Format(prompt, i)); - - return result; + return ArrayU.ReadDouble(count, prompt); } /// @@ -145,13 +109,7 @@ public static IEnumerable ReadSingle(int count, string prompt = EmptyStri if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - float[] result = new float[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadSingle(string.Format(prompt, i)); - - return result; + return ArrayU.ReadSingle(count, prompt); } /// @@ -165,13 +123,7 @@ public static IEnumerable ReadInt32(int count, string prompt = EmptyStringH if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - int[] result = new int[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadInt32(string.Format(prompt, i)); - - return result; + return ArrayU.ReadInt32(count, prompt); } /// @@ -185,13 +137,7 @@ public static IEnumerable ReadUInt32(int count, string prompt = EmptyStrin if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - uint[] result = new uint[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadUInt32(string.Format(prompt, i)); - - return result; + return ArrayU.ReadUInt32(count, prompt); } /// @@ -205,13 +151,7 @@ public static IEnumerable ReadInt64(int count, string prompt = EmptyString if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - long[] result = new long[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadInt64(string.Format(prompt, i)); - - return result; + return ArrayU.ReadInt64(count, prompt); } /// @@ -225,13 +165,7 @@ public static IEnumerable ReadUInt64(int count, string prompt = EmptyStri if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - ulong[] result = new ulong[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadUInt64(string.Format(prompt, i)); - - return result; + return ArrayU.ReadUInt64(count, prompt); } /// @@ -245,13 +179,7 @@ public static IEnumerable ReadInt16(int count, string prompt = EmptyStrin if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - short[] result = new short[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadInt16(string.Format(prompt, i)); - - return result; + return ArrayU.ReadInt16(count, prompt); } /// @@ -265,13 +193,7 @@ public static IEnumerable ReadUInt16(int count, string prompt = EmptyStr if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - ushort[] result = new ushort[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadUInt16(string.Format(prompt, i)); - - return result; + return ArrayU.ReadUInt16(count, prompt); } /// @@ -285,13 +207,7 @@ public static IEnumerable ReadBigInteger(int count, string prompt = if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - BigInteger[] result = new BigInteger[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadBigInteger(string.Format(prompt, i)); - - return result; + return ArrayU.ReadBigInteger(count, prompt); } /// @@ -305,1302 +221,1296 @@ public static IEnumerable ReadString(int count, string prompt = EmptyStr if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - string[] result = new string[count]; - for (int i = 0; i < count; i++) - result[i] = Base.ReadString(string.Format(prompt, i)); - - return result; + return ArrayU.ReadString(count, prompt); } - #endregion + #endregion one-sequence - #region Read2 + #region two-sequences /// /// Читает 2 последовательности типа Boolean с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadBooleanTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + return TupleU.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } - + /// /// Читает 2 последовательности типа Byte с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadByteTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt)); + return TupleU.Of(ReadByte(count, prompt), ReadByte(count, prompt)); } - + /// /// Читает 2 последовательности типа SByte с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadSByteTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt)); + return TupleU.Of(ReadSByte(count, prompt), ReadSByte(count, prompt)); } - + /// /// Читает 2 последовательности типа Char с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadCharTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt)); + return TupleU.Of(ReadChar(count, prompt), ReadChar(count, prompt)); } - + /// /// Читает 2 последовательности типа Decimal с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadDecimalTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + return TupleU.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt)); } - + /// /// Читает 2 последовательности типа Double с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadDoubleTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt)); + return TupleU.Of(ReadDouble(count, prompt), ReadDouble(count, prompt)); } - + /// /// Читает 2 последовательности типа Single с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadSingleTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt)); + return TupleU.Of(ReadSingle(count, prompt), ReadSingle(count, prompt)); } - + /// /// Читает 2 последовательности типа Int32 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadInt32Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt)); + return TupleU.Of(ReadInt32(count, prompt), ReadInt32(count, prompt)); } - + /// /// Читает 2 последовательности типа UInt32 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadUInt32Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + return TupleU.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } - + /// /// Читает 2 последовательности типа Int64 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadInt64Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt)); + return TupleU.Of(ReadInt64(count, prompt), ReadInt64(count, prompt)); } - + /// /// Читает 2 последовательности типа UInt64 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadUInt64Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + return TupleU.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } - + /// /// Читает 2 последовательности типа Int16 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadInt16Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt)); + return TupleU.Of(ReadInt16(count, prompt), ReadInt16(count, prompt)); } - + /// /// Читает 2 последовательности типа UInt16 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadUInt16Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + return TupleU.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt)); } - + /// /// Читает 2 последовательности типа BigInteger с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadBigIntegerTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + return TupleU.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - + /// /// Читает 2 последовательности типа String с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadStringTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadString(count, prompt), ReadString(count, prompt)); + return TupleU.Of(ReadString(count, prompt), ReadString(count, prompt)); } - - #endregion - - #region Read3 - + + #endregion two-sequences + + #region three-sequences + /// /// Читает 3 последовательности типа Boolean с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadBooleanTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + return TupleU.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } - + /// /// Читает 3 последовательности типа Byte с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadByteTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + return TupleU.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); } - + /// /// Читает 3 последовательности типа SByte с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadSByteTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + return TupleU.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); } - + /// /// Читает 3 последовательности типа Char с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadCharTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + return TupleU.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); } - + /// /// Читает 3 последовательности типа Decimal с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadDecimalTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + return TupleU.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); } - + /// /// Читает 3 последовательности типа Double с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadDoubleTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + return TupleU.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); } - + /// /// Читает 3 последовательности типа Single с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadSingleTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + return TupleU.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); } - + /// /// Читает 3 последовательности типа Int32 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadInt32Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + return TupleU.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); } - + /// /// Читает 3 последовательности типа UInt32 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadUInt32Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + return TupleU.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } - + /// /// Читает 3 последовательности типа Int64 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadInt64Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + return TupleU.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); } - + /// /// Читает 3 последовательности типа UInt64 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadUInt64Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + return TupleU.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } - + /// /// Читает 3 последовательности типа Int16 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadInt16Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + return TupleU.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); } - + /// /// Читает 3 последовательности типа UInt16 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadUInt16Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + return TupleU.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); } - + /// /// Читает 3 последовательности типа BigInteger с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadBigIntegerTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + return TupleU.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - + /// /// Читает 3 последовательности типа String с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadStringTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt)); + return TupleU.Of(ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt)); } - - #endregion - - #region Read4 - + + #endregion three-sequences + + #region four-sequences + /// /// Читает 4 последовательности типа Boolean с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + return TupleU.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } - + /// /// Читает 4 последовательности типа Byte с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + return TupleU.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); } - + /// /// Читает 4 последовательности типа SByte с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + return TupleU.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); } - + /// /// Читает 4 последовательности типа Char с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + return TupleU.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); } - + /// /// Читает 4 последовательности типа Decimal с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + return TupleU.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); } - + /// /// Читает 4 последовательности типа Double с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + return TupleU.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); } - + /// /// Читает 4 последовательности типа Single с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + return TupleU.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); } - + /// /// Читает 4 последовательности типа Int32 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + return TupleU.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); } - + /// /// Читает 4 последовательности типа UInt32 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + return TupleU.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } - + /// /// Читает 4 последовательности типа Int64 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + return TupleU.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); } - + /// /// Читает 4 последовательности типа UInt64 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + return TupleU.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } - + /// /// Читает 4 последовательности типа Int16 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + return TupleU.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); } - + /// /// Читает 4 последовательности типа UInt16 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + return TupleU.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); } - + /// /// Читает 4 последовательности типа BigInteger с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + return TupleU.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - + /// /// Читает 4 последовательности типа String с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadStringTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt)); + return TupleU.Of(ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt)); } - - #endregion - - #region Read5 - + + #endregion four-sequences + + #region five-sequences + /// /// Читает 5 последовательностей типа Boolean с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + return TupleU.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } - + /// /// Читает 5 последовательностей типа Byte с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + return TupleU.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); } - + /// /// Читает 5 последовательностей типа SByte с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + return TupleU.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); } - + /// /// Читает 5 последовательностей типа Char с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + return TupleU.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); } - + /// /// Читает 5 последовательностей типа Decimal с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + return TupleU.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); } - + /// /// Читает 5 последовательностей типа Double с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + return TupleU.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); } - + /// /// Читает 5 последовательностей типа Single с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + return TupleU.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); } - + /// /// Читает 5 последовательностей типа Int32 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + return TupleU.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); } - + /// /// Читает 5 последовательностей типа UInt32 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + return TupleU.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } - + /// /// Читает 5 последовательностей типа Int64 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + return TupleU.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); } - + /// /// Читает 5 последовательностей типа UInt64 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + return TupleU.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } - + /// /// Читает 5 последовательностей типа Int16 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + return TupleU.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); } - + /// /// Читает 5 последовательностей типа UInt16 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + return TupleU.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); } - + /// /// Читает 5 последовательностей типа BigInteger с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + return TupleU.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - + /// /// Читает 5 последовательностей типа String с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadStringTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt)); + return TupleU.Of(ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt)); } - - #endregion - - #region Read6 - + + #endregion five-sequences + + #region six-sequences + /// /// Читает 6 последовательностей типа Boolean с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + return TupleU.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } - + /// /// Читает 6 последовательностей типа Byte с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + return TupleU.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); } - + /// /// Читает 6 последовательностей типа SByte с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + return TupleU.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); } - + /// /// Читает 6 последовательностей типа Char с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + return TupleU.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); } - + /// /// Читает 6 последовательностей типа Decimal с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + return TupleU.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); } - + /// /// Читает 6 последовательностей типа Double с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + return TupleU.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); } - + /// /// Читает 6 последовательностей типа Single с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + return TupleU.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); } - + /// /// Читает 6 последовательностей типа Int32 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + return TupleU.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); } - + /// /// Читает 6 последовательностей типа UInt32 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + return TupleU.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } - + /// /// Читает 6 последовательностей типа Int64 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + return TupleU.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); } - + /// /// Читает 6 последовательностей типа UInt64 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + return TupleU.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } - + /// /// Читает 6 последовательностей типа Int16 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + return TupleU.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); } - + /// /// Читает 6 последовательностей типа UInt16 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + return TupleU.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); } - + /// /// Читает 6 последовательностей типа BigInteger с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + return TupleU.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - + /// /// Читает 6 последовательностей типа String с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadStringTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt)); + return TupleU.Of(ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt)); } - - #endregion - - #region Read7 - + + #endregion six-sequences + + #region seven-sequences + /// /// Читает 7 последовательностей типа Boolean с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + return TupleU.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } - + /// /// Читает 7 последовательностей типа Byte с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + return TupleU.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); } - + /// /// Читает 7 последовательностей типа SByte с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + return TupleU.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); } - + /// /// Читает 7 последовательностей типа Char с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + return TupleU.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); } - + /// /// Читает 7 последовательностей типа Decimal с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + return TupleU.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); } - + /// /// Читает 7 последовательностей типа Double с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + return TupleU.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); } - + /// /// Читает 7 последовательностей типа Single с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + return TupleU.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); } - + /// /// Читает 7 последовательностей типа Int32 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + return TupleU.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); } - + /// /// Читает 7 последовательностей типа UInt32 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + return TupleU.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } - + /// /// Читает 7 последовательностей типа Int64 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + return TupleU.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); } - + /// /// Читает 7 последовательностей типа UInt64 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + return TupleU.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } - + /// /// Читает 7 последовательностей типа Int16 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + return TupleU.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); } - + /// /// Читает 7 последовательностей типа UInt16 с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + return TupleU.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); } - + /// /// Читает 7 последовательностей типа BigInteger с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + return TupleU.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - + /// /// Читает 7 последовательностей типа String с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadStringTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt)); + return TupleU.Of(ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt), ReadString(count, prompt)); } - - #endregion - - #endregion - + + #endregion seven-sequences + + #endregion public + } } diff --git a/NETMouse - .NET release/Utils/SequenceU.Nullable.Input.cs b/NETMouse - .NET release/Utils/SequenceU.Nullable.Input.cs index 6de8ee0..952edda 100644 --- a/NETMouse - .NET release/Utils/SequenceU.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/SequenceU.Nullable.Input.cs @@ -4,18 +4,20 @@ namespace ABCNET.Utils { - /// - /// Description of Sequence_Nullable_Input. - /// - public static partial class SequenceU + /// + /// Предоставляет функционал для работы с последовательностями. + /// + public static partial class Sequence { - - public static class Nullable + /// + /// Предоставляет функционал для работы с Nullable типами. + /// + public static partial class Nullable { #region public - #region Read1 + #region one-sequence /// /// Читает последовательность типа Boolean? с клавиатуры. @@ -28,13 +30,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - bool?[] result = new bool?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadBoolean(string.Format(prompt, i)); - - return result; + return ArrayU.Nullable.ReadBoolean(count, prompt); } /// @@ -48,13 +44,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - byte?[] result = new byte?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadByte(string.Format(prompt, i)); - - return result; + return ArrayU.Nullable.ReadByte(count, prompt); } /// @@ -68,13 +58,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - sbyte?[] result = new sbyte?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadSByte(string.Format(prompt, i)); - - return result; + return ArrayU.Nullable.ReadSByte(count, prompt); } /// @@ -88,13 +72,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - char?[] result = new char?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadChar(string.Format(prompt, i)); - - return result; + return ArrayU.Nullable.ReadChar(count, prompt); } /// @@ -108,13 +86,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - decimal?[] result = new decimal?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadDecimal(string.Format(prompt, i)); - - return result; + return ArrayU.Nullable.ReadDecimal(count, prompt); } /// @@ -128,13 +100,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - double?[] result = new double?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadDouble(string.Format(prompt, i)); - - return result; + return ArrayU.Nullable.ReadDouble(count, prompt); } /// @@ -148,13 +114,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - float?[] result = new float?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadSingle(string.Format(prompt, i)); - - return result; + return ArrayU.Nullable.ReadSingle(count, prompt); } /// @@ -168,13 +128,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - int?[] result = new int?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadInt32(string.Format(prompt, i)); - - return result; + return ArrayU.Nullable.ReadInt32(count, prompt); } /// @@ -188,13 +142,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - uint?[] result = new uint?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadUInt32(string.Format(prompt, i)); - - return result; + return ArrayU.Nullable.ReadUInt32(count, prompt); } /// @@ -208,13 +156,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - long?[] result = new long?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadInt64(string.Format(prompt, i)); - - return result; + return ArrayU.Nullable.ReadInt64(count, prompt); } /// @@ -228,13 +170,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - ulong?[] result = new ulong?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadUInt64(string.Format(prompt, i)); - - return result; + return ArrayU.Nullable.ReadUInt64(count, prompt); } /// @@ -248,13 +184,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - short?[] result = new short?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadInt16(string.Format(prompt, i)); - - return result; + return ArrayU.Nullable.ReadInt16(count, prompt); } /// @@ -268,13 +198,7 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - ushort?[] result = new ushort?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadUInt16(string.Format(prompt, i)); - - return result; + return ArrayU.Nullable.ReadUInt16(count, prompt); } /// @@ -288,31 +212,25 @@ public static class Nullable if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - prompt = prompt ?? EmptyStringHelper.Empty; - - BigInteger?[] result = new BigInteger?[count]; - for (int i = 0; i < count; i++) - result[i] = Base.Nullable.ReadBigInteger(string.Format(prompt, i)); - - return result; + return ArrayU.Nullable.ReadBigInteger(count, prompt); } - #endregion + #endregion one-sequence - #region Read2 + #region two-sequences /// /// Читает 2 последовательности типа Boolean? с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadBooleanTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + return TupleU.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } /// @@ -320,13 +238,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadByteTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt)); + return TupleU.Of(ReadByte(count, prompt), ReadByte(count, prompt)); } /// @@ -334,13 +252,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadSByteTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt)); + return TupleU.Of(ReadSByte(count, prompt), ReadSByte(count, prompt)); } /// @@ -348,13 +266,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadCharTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt)); + return TupleU.Of(ReadChar(count, prompt), ReadChar(count, prompt)); } /// @@ -362,13 +280,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadDecimalTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + return TupleU.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt)); } /// @@ -376,13 +294,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadDoubleTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt)); + return TupleU.Of(ReadDouble(count, prompt), ReadDouble(count, prompt)); } /// @@ -390,13 +308,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadSingleTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt)); + return TupleU.Of(ReadSingle(count, prompt), ReadSingle(count, prompt)); } /// @@ -404,13 +322,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadInt32Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt)); + return TupleU.Of(ReadInt32(count, prompt), ReadInt32(count, prompt)); } /// @@ -418,13 +336,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadUInt32Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + return TupleU.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } /// @@ -432,13 +350,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadInt64Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt)); + return TupleU.Of(ReadInt64(count, prompt), ReadInt64(count, prompt)); } /// @@ -446,13 +364,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadUInt64Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + return TupleU.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } /// @@ -460,13 +378,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadInt16Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt)); + return TupleU.Of(ReadInt16(count, prompt), ReadInt16(count, prompt)); } /// @@ -474,13 +392,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadUInt16Tuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + return TupleU.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt)); } /// @@ -488,31 +406,31 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable> ReadBigIntegerTuple2(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + return TupleU.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - #endregion + #endregion two-sequences - #region Read3 + #region three-sequences /// /// Читает 3 последовательности типа Boolean? с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadBooleanTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + return TupleU.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } /// @@ -520,13 +438,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadByteTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + return TupleU.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); } /// @@ -534,13 +452,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadSByteTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + return TupleU.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); } /// @@ -548,13 +466,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadCharTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + return TupleU.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); } /// @@ -562,13 +480,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadDecimalTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + return TupleU.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); } /// @@ -576,13 +494,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadDoubleTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + return TupleU.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); } /// @@ -590,13 +508,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadSingleTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + return TupleU.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); } /// @@ -604,13 +522,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadInt32Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + return TupleU.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); } /// @@ -618,13 +536,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadUInt32Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + return TupleU.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } /// @@ -632,13 +550,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadInt64Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + return TupleU.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); } /// @@ -646,13 +564,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadUInt64Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + return TupleU.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } /// @@ -660,13 +578,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadInt16Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + return TupleU.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); } /// @@ -674,13 +592,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadUInt16Tuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + return TupleU.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); } /// @@ -688,31 +606,31 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable> ReadBigIntegerTuple3(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + return TupleU.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - #endregion + #endregion three-sequences - #region Read4 + #region four-sequences /// /// Читает 4 последовательности типа Boolean? с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + return TupleU.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } /// @@ -720,13 +638,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + return TupleU.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); } /// @@ -734,13 +652,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + return TupleU.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); } /// @@ -748,13 +666,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + return TupleU.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); } /// @@ -762,13 +680,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + return TupleU.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); } /// @@ -776,13 +694,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + return TupleU.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); } /// @@ -790,13 +708,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + return TupleU.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); } /// @@ -804,13 +722,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + return TupleU.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); } /// @@ -818,13 +736,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + return TupleU.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } /// @@ -832,13 +750,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + return TupleU.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); } /// @@ -846,13 +764,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + return TupleU.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } /// @@ -860,13 +778,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + return TupleU.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); } /// @@ -874,13 +792,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + return TupleU.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); } /// @@ -888,31 +806,31 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple4(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + return TupleU.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - #endregion + #endregion four-sequences - #region Read5 + #region five-sequences /// /// Читает 5 последовательностей типа Boolean? с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + return TupleU.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } /// @@ -920,13 +838,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + return TupleU.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); } /// @@ -934,13 +852,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + return TupleU.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); } /// @@ -948,13 +866,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + return TupleU.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); } /// @@ -962,13 +880,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + return TupleU.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); } /// @@ -976,13 +894,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + return TupleU.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); } /// @@ -990,13 +908,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + return TupleU.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); } /// @@ -1004,13 +922,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + return TupleU.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); } /// @@ -1018,13 +936,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + return TupleU.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } /// @@ -1032,13 +950,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + return TupleU.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); } /// @@ -1046,13 +964,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + return TupleU.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } /// @@ -1060,13 +978,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + return TupleU.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); } /// @@ -1074,13 +992,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + return TupleU.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); } /// @@ -1088,31 +1006,31 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple5(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + return TupleU.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - #endregion + #endregion five-sequences - #region Read6 + #region six-sequences /// /// Читает 6 последовательностей типа Boolean? с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + return TupleU.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } /// @@ -1120,13 +1038,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + return TupleU.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); } /// @@ -1134,13 +1052,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + return TupleU.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); } /// @@ -1148,13 +1066,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + return TupleU.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); } /// @@ -1162,13 +1080,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + return TupleU.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); } /// @@ -1176,13 +1094,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + return TupleU.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); } /// @@ -1190,13 +1108,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + return TupleU.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); } /// @@ -1204,13 +1122,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + return TupleU.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); } /// @@ -1218,13 +1136,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + return TupleU.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } /// @@ -1232,13 +1150,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + return TupleU.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); } /// @@ -1246,13 +1164,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + return TupleU.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } /// @@ -1260,13 +1178,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + return TupleU.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); } /// @@ -1274,13 +1192,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + return TupleU.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); } /// @@ -1288,31 +1206,31 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple6(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + return TupleU.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - #endregion + #endregion six-sequences - #region Read7 + #region seven-sequences /// /// Читает 7 последовательностей типа Boolean? с клавиатуры. /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBooleanTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); + return TupleU.Of(ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt), ReadBoolean(count, prompt)); } /// @@ -1320,13 +1238,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadByteTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); + return TupleU.Of(ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt), ReadByte(count, prompt)); } /// @@ -1334,13 +1252,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSByteTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); + return TupleU.Of(ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt), ReadSByte(count, prompt)); } /// @@ -1348,13 +1266,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadCharTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); + return TupleU.Of(ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt), ReadChar(count, prompt)); } /// @@ -1362,13 +1280,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDecimalTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); + return TupleU.Of(ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt), ReadDecimal(count, prompt)); } /// @@ -1376,13 +1294,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadDoubleTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); + return TupleU.Of(ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt), ReadDouble(count, prompt)); } /// @@ -1390,13 +1308,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadSingleTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); + return TupleU.Of(ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt), ReadSingle(count, prompt)); } /// @@ -1404,13 +1322,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt32Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); + return TupleU.Of(ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt), ReadInt32(count, prompt)); } /// @@ -1418,13 +1336,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt32Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); + return TupleU.Of(ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt), ReadUInt32(count, prompt)); } /// @@ -1432,13 +1350,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt64Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); + return TupleU.Of(ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt), ReadInt64(count, prompt)); } /// @@ -1446,13 +1364,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt64Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); + return TupleU.Of(ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt), ReadUInt64(count, prompt)); } /// @@ -1460,13 +1378,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadInt16Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); + return TupleU.Of(ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt), ReadInt16(count, prompt)); } /// @@ -1474,13 +1392,13 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadUInt16Tuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); + return TupleU.Of(ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt), ReadUInt16(count, prompt)); } /// @@ -1488,19 +1406,19 @@ public static class Nullable /// /// Количество элементов. /// Приглашение к вводу. - /// Последовательность. + /// Кортеж. public static Tuple, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable, IEnumerable> ReadBigIntegerTuple7(int count, string prompt = EmptyStringHelper.Empty) { if (count < 0) throw new ArgumentOutOfRangeException(nameof(count)); - return Tuple.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); + return TupleU.Of(ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt), ReadBigInteger(count, prompt)); } - #endregion + #endregion seven-sequences - #endregion + #endregion public } - } + } } From d226f8b1e2f7f0fe458e8d59c2bc107316f94883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Wed, 10 Jun 2020 14:07:33 +0700 Subject: [PATCH 100/102] Adding "U" to utils classes in TupleU code --- .../Utils/TupleU.Generators.cs | 62 +- NETMouse - .NET release/Utils/TupleU.Input.cs | 1172 ++++++++--------- .../Utils/TupleU.Nullable.Input.cs | 1098 +++++++-------- 3 files changed, 1128 insertions(+), 1204 deletions(-) diff --git a/NETMouse - .NET release/Utils/TupleU.Generators.cs b/NETMouse - .NET release/Utils/TupleU.Generators.cs index 94662a8..7edf15c 100644 --- a/NETMouse - .NET release/Utils/TupleU.Generators.cs +++ b/NETMouse - .NET release/Utils/TupleU.Generators.cs @@ -10,8 +10,6 @@ public static partial class TupleU #region public - #region Of - /// /// 2 . /// @@ -298,10 +296,6 @@ public static Tuple By7(T first, Func next) return Of(item1, item2, item3, item4, item5, item6, item7); } - #endregion - - #region RandomInt - /// /// Int32. /// @@ -310,7 +304,7 @@ public static Tuple By7(T first, Func next) /// . public static Tuple Random2(int low = Int32BordersHelper.Low, int high = Int32BordersHelper.High) { - return Of(Base.Random(low, high), Base.Random(low, high)); + return Of(BaseU.Random(low, high), BaseU.Random(low, high)); } /// @@ -321,7 +315,7 @@ public static Tuple Random2(int low = Int32BordersHelper.Low, int high /// . public static Tuple Random3(int low = Int32BordersHelper.Low, int high = Int32BordersHelper.High) { - return Of(Base.Random(low, high), Base.Random(low, high), Base.Random(low, high)); + return Of(BaseU.Random(low, high), BaseU.Random(low, high), BaseU.Random(low, high)); } /// @@ -332,8 +326,8 @@ public static Tuple Random3(int low = Int32BordersHelper.Low, int /// . public static Tuple Random4(int low = Int32BordersHelper.Low, int high = Int32BordersHelper.High) { - return Of(Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), - Base.Random(low, high)); + return Of(BaseU.Random(low, high), BaseU.Random(low, high), BaseU.Random(low, high), + BaseU.Random(low, high)); } /// @@ -344,8 +338,8 @@ public static Tuple Random4(int low = Int32BordersHelper.Low /// . public static Tuple Random5(int low = Int32BordersHelper.Low, int high = Int32BordersHelper.High) { - return Of(Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), - Base.Random(low, high), Base.Random(low, high)); + return Of(BaseU.Random(low, high), BaseU.Random(low, high), BaseU.Random(low, high), + BaseU.Random(low, high), BaseU.Random(low, high)); } /// @@ -356,8 +350,8 @@ public static Tuple Random5(int low = Int32BordersHelpe /// . public static Tuple Random6(int low = Int32BordersHelper.Low, int high = Int32BordersHelper.High) { - return Of(Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), - Base.Random(low, high), Base.Random(low, high), Base.Random(low, high)); + return Of(BaseU.Random(low, high), BaseU.Random(low, high), BaseU.Random(low, high), + BaseU.Random(low, high), BaseU.Random(low, high), BaseU.Random(low, high)); } /// @@ -368,15 +362,11 @@ public static Tuple Random6(int low = Int32Borders /// . public static Tuple Random7(int low = Int32BordersHelper.Low, int high = Int32BordersHelper.High) { - return Of(Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), - Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), - Base.Random(low, high)); + return Of(BaseU.Random(low, high), BaseU.Random(low, high), BaseU.Random(low, high), + BaseU.Random(low, high), BaseU.Random(low, high), BaseU.Random(low, high), + BaseU.Random(low, high)); } - #endregion - - #region RandomDouble - /// /// Double. /// @@ -385,7 +375,7 @@ public static Tuple Random7(int low = Int32Bo /// . public static Tuple Random2(double low = DoubleBordersHelper.Low, double high = DoubleBordersHelper.High) { - return Of(Base.Random(low, high), Base.Random(low, high)); + return Of(BaseU.Random(low, high), BaseU.Random(low, high)); } /// @@ -396,7 +386,7 @@ public static Tuple Random2(double low = DoubleBordersHelper.Low /// . public static Tuple Random3(double low = DoubleBordersHelper.Low, double high = DoubleBordersHelper.High) { - return Of(Base.Random(low, high), Base.Random(low, high), Base.Random(low, high)); + return Of(BaseU.Random(low, high), BaseU.Random(low, high), BaseU.Random(low, high)); } /// @@ -407,8 +397,8 @@ public static Tuple Random3(double low = DoubleBordersHe /// . public static Tuple Random4(double low = DoubleBordersHelper.Low, double high = DoubleBordersHelper.High) { - return Of(Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), - Base.Random(low, high)); + return Of(BaseU.Random(low, high), BaseU.Random(low, high), BaseU.Random(low, high), + BaseU.Random(low, high)); } /// @@ -419,8 +409,8 @@ public static Tuple Random4(double low = DoubleB /// . public static Tuple Random5(double low = DoubleBordersHelper.Low, double high = DoubleBordersHelper.High) { - return Of(Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), - Base.Random(low, high), Base.Random(low, high)); + return Of(BaseU.Random(low, high), BaseU.Random(low, high), BaseU.Random(low, high), + BaseU.Random(low, high), BaseU.Random(low, high)); } /// @@ -431,8 +421,8 @@ public static Tuple Random5(double low = /// . public static Tuple Random6(double low = DoubleBordersHelper.Low, double high = DoubleBordersHelper.High) { - return Of(Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), - Base.Random(low, high), Base.Random(low, high), Base.Random(low, high)); + return Of(BaseU.Random(low, high), BaseU.Random(low, high), BaseU.Random(low, high), + BaseU.Random(low, high), BaseU.Random(low, high), BaseU.Random(low, high)); } /// @@ -443,15 +433,11 @@ public static Tuple Random6(doub /// . public static Tuple Random7(double low = DoubleBordersHelper.Low, double high = DoubleBordersHelper.High) { - return Of(Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), - Base.Random(low, high), Base.Random(low, high), Base.Random(low, high), - Base.Random(low, high)); + return Of(BaseU.Random(low, high), BaseU.Random(low, high), BaseU.Random(low, high), + BaseU.Random(low, high), BaseU.Random(low, high), BaseU.Random(low, high), + BaseU.Random(low, high)); } - #endregion - - #region Fill - /// /// , . /// @@ -517,9 +503,7 @@ public static Tuple Fill7(T value) value); } - #endregion - #endregion public - + } } \ No newline at end of file diff --git a/NETMouse - .NET release/Utils/TupleU.Input.cs b/NETMouse - .NET release/Utils/TupleU.Input.cs index b0d19f7..8b01f78 100644 --- a/NETMouse - .NET release/Utils/TupleU.Input.cs +++ b/NETMouse - .NET release/Utils/TupleU.Input.cs @@ -11,1372 +11,1312 @@ public static partial class TupleU #region public - #region ReadBoolean - /// - /// Читает кортеж из двух значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа BigInteger. /// /// Кортеж. - public static Tuple ReadBooleanTuple2(string prompt = null) + public static Tuple ReadBigIntegerTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBoolean(string.Format(prompt, 0)), - Base.ReadBoolean(string.Format(prompt, 1))); + return Of(BaseU.ReadBigInteger(string.Format(prompt, 0)), + BaseU.ReadBigInteger(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа BigInteger. /// /// Кортеж. - public static Tuple ReadBooleanTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBoolean(string.Format(prompt, 0)), - Base.ReadBoolean(string.Format(prompt, 1)), - Base.ReadBoolean(string.Format(prompt, 2))); + return Of(BaseU.ReadBigInteger(string.Format(prompt, 0)), + BaseU.ReadBigInteger(string.Format(prompt, 1)), + BaseU.ReadBigInteger(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа BigInteger. /// /// Кортеж. - public static Tuple ReadBooleanTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBoolean(string.Format(prompt, 0)), - Base.ReadBoolean(string.Format(prompt, 1)), - Base.ReadBoolean(string.Format(prompt, 2)), - Base.ReadBoolean(string.Format(prompt, 3))); + return Of(BaseU.ReadBigInteger(string.Format(prompt, 0)), + BaseU.ReadBigInteger(string.Format(prompt, 1)), + BaseU.ReadBigInteger(string.Format(prompt, 2)), + BaseU.ReadBigInteger(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа BigInteger. /// /// Кортеж. - public static Tuple ReadBooleanTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBoolean(string.Format(prompt, 0)), - Base.ReadBoolean(string.Format(prompt, 1)), - Base.ReadBoolean(string.Format(prompt, 2)), - Base.ReadBoolean(string.Format(prompt, 3)), - Base.ReadBoolean(string.Format(prompt, 4))); + return Of(BaseU.ReadBigInteger(string.Format(prompt, 0)), + BaseU.ReadBigInteger(string.Format(prompt, 1)), + BaseU.ReadBigInteger(string.Format(prompt, 2)), + BaseU.ReadBigInteger(string.Format(prompt, 3)), + BaseU.ReadBigInteger(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа BigInteger. /// /// Кортеж. - public static Tuple ReadBooleanTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBoolean(string.Format(prompt, 0)), - Base.ReadBoolean(string.Format(prompt, 1)), - Base.ReadBoolean(string.Format(prompt, 2)), - Base.ReadBoolean(string.Format(prompt, 3)), - Base.ReadBoolean(string.Format(prompt, 4)), - Base.ReadBoolean(string.Format(prompt, 5))); + return Of(BaseU.ReadBigInteger(string.Format(prompt, 0)), + BaseU.ReadBigInteger(string.Format(prompt, 1)), + BaseU.ReadBigInteger(string.Format(prompt, 2)), + BaseU.ReadBigInteger(string.Format(prompt, 3)), + BaseU.ReadBigInteger(string.Format(prompt, 4)), + BaseU.ReadBigInteger(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа BigInteger. /// /// Кортеж. - public static Tuple ReadBooleanTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBoolean(string.Format(prompt, 0)), - Base.ReadBoolean(string.Format(prompt, 1)), - Base.ReadBoolean(string.Format(prompt, 2)), - Base.ReadBoolean(string.Format(prompt, 3)), - Base.ReadBoolean(string.Format(prompt, 4)), - Base.ReadBoolean(string.Format(prompt, 5)), - Base.ReadBoolean(string.Format(prompt, 6))); + return Of(BaseU.ReadBigInteger(string.Format(prompt, 0)), + BaseU.ReadBigInteger(string.Format(prompt, 1)), + BaseU.ReadBigInteger(string.Format(prompt, 2)), + BaseU.ReadBigInteger(string.Format(prompt, 3)), + BaseU.ReadBigInteger(string.Format(prompt, 4)), + BaseU.ReadBigInteger(string.Format(prompt, 5)), + BaseU.ReadBigInteger(string.Format(prompt, 6))); } - #endregion - - #region ReadByte - /// - /// Читает кортеж из двух значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Boolean. /// /// Кортеж. - public static Tuple ReadByteTuple2(string prompt = null) + public static Tuple ReadBooleanTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadByte(string.Format(prompt, 0)), - Base.ReadByte(string.Format(prompt, 1))); + return Of(BaseU.ReadBoolean(string.Format(prompt, 0)), + BaseU.ReadBoolean(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Boolean. /// /// Кортеж. - public static Tuple ReadByteTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBooleanTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadByte(string.Format(prompt, 0)), - Base.ReadByte(string.Format(prompt, 1)), - Base.ReadByte(string.Format(prompt, 2))); + return Of(BaseU.ReadBoolean(string.Format(prompt, 0)), + BaseU.ReadBoolean(string.Format(prompt, 1)), + BaseU.ReadBoolean(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Boolean. /// /// Кортеж. - public static Tuple ReadByteTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBooleanTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadByte(string.Format(prompt, 0)), - Base.ReadByte(string.Format(prompt, 1)), - Base.ReadByte(string.Format(prompt, 2)), - Base.ReadByte(string.Format(prompt, 3))); + return Of(BaseU.ReadBoolean(string.Format(prompt, 0)), + BaseU.ReadBoolean(string.Format(prompt, 1)), + BaseU.ReadBoolean(string.Format(prompt, 2)), + BaseU.ReadBoolean(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Boolean. /// /// Кортеж. - public static Tuple ReadByteTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBooleanTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadByte(string.Format(prompt, 0)), - Base.ReadByte(string.Format(prompt, 1)), - Base.ReadByte(string.Format(prompt, 2)), - Base.ReadByte(string.Format(prompt, 3)), - Base.ReadByte(string.Format(prompt, 4))); + return Of(BaseU.ReadBoolean(string.Format(prompt, 0)), + BaseU.ReadBoolean(string.Format(prompt, 1)), + BaseU.ReadBoolean(string.Format(prompt, 2)), + BaseU.ReadBoolean(string.Format(prompt, 3)), + BaseU.ReadBoolean(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Boolean. /// /// Кортеж. - public static Tuple ReadByteTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBooleanTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadByte(string.Format(prompt, 0)), - Base.ReadByte(string.Format(prompt, 1)), - Base.ReadByte(string.Format(prompt, 2)), - Base.ReadByte(string.Format(prompt, 3)), - Base.ReadByte(string.Format(prompt, 4)), - Base.ReadByte(string.Format(prompt, 5))); + return Of(BaseU.ReadBoolean(string.Format(prompt, 0)), + BaseU.ReadBoolean(string.Format(prompt, 1)), + BaseU.ReadBoolean(string.Format(prompt, 2)), + BaseU.ReadBoolean(string.Format(prompt, 3)), + BaseU.ReadBoolean(string.Format(prompt, 4)), + BaseU.ReadBoolean(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Byte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Boolean. /// /// Кортеж. - public static Tuple ReadByteTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBooleanTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadByte(string.Format(prompt, 0)), - Base.ReadByte(string.Format(prompt, 1)), - Base.ReadByte(string.Format(prompt, 2)), - Base.ReadByte(string.Format(prompt, 3)), - Base.ReadByte(string.Format(prompt, 4)), - Base.ReadByte(string.Format(prompt, 5)), - Base.ReadByte(string.Format(prompt, 6))); + return Of(BaseU.ReadBoolean(string.Format(prompt, 0)), + BaseU.ReadBoolean(string.Format(prompt, 1)), + BaseU.ReadBoolean(string.Format(prompt, 2)), + BaseU.ReadBoolean(string.Format(prompt, 3)), + BaseU.ReadBoolean(string.Format(prompt, 4)), + BaseU.ReadBoolean(string.Format(prompt, 5)), + BaseU.ReadBoolean(string.Format(prompt, 6))); } - #endregion - - #region ReadSByte - /// - /// Читает кортеж из двух значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Byte. /// /// Кортеж. - public static Tuple ReadSByteTuple2(string prompt = null) + public static Tuple ReadByteTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSByte(string.Format(prompt, 0)), - Base.ReadSByte(string.Format(prompt, 1))); + return Of(BaseU.ReadByte(string.Format(prompt, 0)), + BaseU.ReadByte(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Byte. /// /// Кортеж. - public static Tuple ReadSByteTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadByteTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSByte(string.Format(prompt, 0)), - Base.ReadSByte(string.Format(prompt, 1)), - Base.ReadSByte(string.Format(prompt, 2))); + return Of(BaseU.ReadByte(string.Format(prompt, 0)), + BaseU.ReadByte(string.Format(prompt, 1)), + BaseU.ReadByte(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Byte. /// /// Кортеж. - public static Tuple ReadSByteTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadByteTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSByte(string.Format(prompt, 0)), - Base.ReadSByte(string.Format(prompt, 1)), - Base.ReadSByte(string.Format(prompt, 2)), - Base.ReadSByte(string.Format(prompt, 3))); + return Of(BaseU.ReadByte(string.Format(prompt, 0)), + BaseU.ReadByte(string.Format(prompt, 1)), + BaseU.ReadByte(string.Format(prompt, 2)), + BaseU.ReadByte(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Byte. /// /// Кортеж. - public static Tuple ReadSByteTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadByteTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSByte(string.Format(prompt, 0)), - Base.ReadSByte(string.Format(prompt, 1)), - Base.ReadSByte(string.Format(prompt, 2)), - Base.ReadSByte(string.Format(prompt, 3)), - Base.ReadSByte(string.Format(prompt, 4))); + return Of(BaseU.ReadByte(string.Format(prompt, 0)), + BaseU.ReadByte(string.Format(prompt, 1)), + BaseU.ReadByte(string.Format(prompt, 2)), + BaseU.ReadByte(string.Format(prompt, 3)), + BaseU.ReadByte(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Byte. /// /// Кортеж. - public static Tuple ReadSByteTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadByteTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSByte(string.Format(prompt, 0)), - Base.ReadSByte(string.Format(prompt, 1)), - Base.ReadSByte(string.Format(prompt, 2)), - Base.ReadSByte(string.Format(prompt, 3)), - Base.ReadSByte(string.Format(prompt, 4)), - Base.ReadSByte(string.Format(prompt, 5))); + return Of(BaseU.ReadByte(string.Format(prompt, 0)), + BaseU.ReadByte(string.Format(prompt, 1)), + BaseU.ReadByte(string.Format(prompt, 2)), + BaseU.ReadByte(string.Format(prompt, 3)), + BaseU.ReadByte(string.Format(prompt, 4)), + BaseU.ReadByte(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа SByte. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Byte. /// /// Кортеж. - public static Tuple ReadSByteTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadByteTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSByte(string.Format(prompt, 0)), - Base.ReadSByte(string.Format(prompt, 1)), - Base.ReadSByte(string.Format(prompt, 2)), - Base.ReadSByte(string.Format(prompt, 3)), - Base.ReadSByte(string.Format(prompt, 4)), - Base.ReadSByte(string.Format(prompt, 5)), - Base.ReadSByte(string.Format(prompt, 6))); + return Of(BaseU.ReadByte(string.Format(prompt, 0)), + BaseU.ReadByte(string.Format(prompt, 1)), + BaseU.ReadByte(string.Format(prompt, 2)), + BaseU.ReadByte(string.Format(prompt, 3)), + BaseU.ReadByte(string.Format(prompt, 4)), + BaseU.ReadByte(string.Format(prompt, 5)), + BaseU.ReadByte(string.Format(prompt, 6))); } - #endregion - - #region ReadChar - /// - /// Читает кортеж из двух значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Char. /// /// Кортеж. public static Tuple ReadCharTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadChar(string.Format(prompt, 0)), - Base.ReadChar(string.Format(prompt, 1))); + return Of(BaseU.ReadChar(string.Format(prompt, 0)), + BaseU.ReadChar(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Char. /// /// Кортеж. public static Tuple ReadCharTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadChar(string.Format(prompt, 0)), - Base.ReadChar(string.Format(prompt, 1)), - Base.ReadChar(string.Format(prompt, 2))); + return Of(BaseU.ReadChar(string.Format(prompt, 0)), + BaseU.ReadChar(string.Format(prompt, 1)), + BaseU.ReadChar(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Char. /// /// Кортеж. public static Tuple ReadCharTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadChar(string.Format(prompt, 0)), - Base.ReadChar(string.Format(prompt, 1)), - Base.ReadChar(string.Format(prompt, 2)), - Base.ReadChar(string.Format(prompt, 3))); + return Of(BaseU.ReadChar(string.Format(prompt, 0)), + BaseU.ReadChar(string.Format(prompt, 1)), + BaseU.ReadChar(string.Format(prompt, 2)), + BaseU.ReadChar(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Char. /// /// Кортеж. public static Tuple ReadCharTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadChar(string.Format(prompt, 0)), - Base.ReadChar(string.Format(prompt, 1)), - Base.ReadChar(string.Format(prompt, 2)), - Base.ReadChar(string.Format(prompt, 3)), - Base.ReadChar(string.Format(prompt, 4))); + return Of(BaseU.ReadChar(string.Format(prompt, 0)), + BaseU.ReadChar(string.Format(prompt, 1)), + BaseU.ReadChar(string.Format(prompt, 2)), + BaseU.ReadChar(string.Format(prompt, 3)), + BaseU.ReadChar(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Char. /// /// Кортеж. public static Tuple ReadCharTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadChar(string.Format(prompt, 0)), - Base.ReadChar(string.Format(prompt, 1)), - Base.ReadChar(string.Format(prompt, 2)), - Base.ReadChar(string.Format(prompt, 3)), - Base.ReadChar(string.Format(prompt, 4)), - Base.ReadChar(string.Format(prompt, 5))); + return Of(BaseU.ReadChar(string.Format(prompt, 0)), + BaseU.ReadChar(string.Format(prompt, 1)), + BaseU.ReadChar(string.Format(prompt, 2)), + BaseU.ReadChar(string.Format(prompt, 3)), + BaseU.ReadChar(string.Format(prompt, 4)), + BaseU.ReadChar(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Char. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Char. /// /// Кортеж. public static Tuple ReadCharTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadChar(string.Format(prompt, 0)), - Base.ReadChar(string.Format(prompt, 1)), - Base.ReadChar(string.Format(prompt, 2)), - Base.ReadChar(string.Format(prompt, 3)), - Base.ReadChar(string.Format(prompt, 4)), - Base.ReadChar(string.Format(prompt, 5)), - Base.ReadChar(string.Format(prompt, 6))); + return Of(BaseU.ReadChar(string.Format(prompt, 0)), + BaseU.ReadChar(string.Format(prompt, 1)), + BaseU.ReadChar(string.Format(prompt, 2)), + BaseU.ReadChar(string.Format(prompt, 3)), + BaseU.ReadChar(string.Format(prompt, 4)), + BaseU.ReadChar(string.Format(prompt, 5)), + BaseU.ReadChar(string.Format(prompt, 6))); } - #endregion - - #region ReadDecimal - /// - /// Читает кортеж из двух значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Decimal. /// /// Кортеж. public static Tuple ReadDecimalTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadDecimal(string.Format(prompt, 0)), - Base.ReadDecimal(string.Format(prompt, 1))); + return Of(BaseU.ReadDecimal(string.Format(prompt, 0)), + BaseU.ReadDecimal(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Decimal. /// /// Кортеж. public static Tuple ReadDecimalTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadDecimal(string.Format(prompt, 0)), - Base.ReadDecimal(string.Format(prompt, 1)), - Base.ReadDecimal(string.Format(prompt, 2))); + return Of(BaseU.ReadDecimal(string.Format(prompt, 0)), + BaseU.ReadDecimal(string.Format(prompt, 1)), + BaseU.ReadDecimal(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Decimal. /// /// Кортеж. public static Tuple ReadDecimalTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadDecimal(string.Format(prompt, 0)), - Base.ReadDecimal(string.Format(prompt, 1)), - Base.ReadDecimal(string.Format(prompt, 2)), - Base.ReadDecimal(string.Format(prompt, 3))); + return Of(BaseU.ReadDecimal(string.Format(prompt, 0)), + BaseU.ReadDecimal(string.Format(prompt, 1)), + BaseU.ReadDecimal(string.Format(prompt, 2)), + BaseU.ReadDecimal(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Decimal. /// /// Кортеж. public static Tuple ReadDecimalTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadDecimal(string.Format(prompt, 0)), - Base.ReadDecimal(string.Format(prompt, 1)), - Base.ReadDecimal(string.Format(prompt, 2)), - Base.ReadDecimal(string.Format(prompt, 3)), - Base.ReadDecimal(string.Format(prompt, 4))); + return Of(BaseU.ReadDecimal(string.Format(prompt, 0)), + BaseU.ReadDecimal(string.Format(prompt, 1)), + BaseU.ReadDecimal(string.Format(prompt, 2)), + BaseU.ReadDecimal(string.Format(prompt, 3)), + BaseU.ReadDecimal(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Decimal. /// /// Кортеж. public static Tuple ReadDecimalTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadDecimal(string.Format(prompt, 0)), - Base.ReadDecimal(string.Format(prompt, 1)), - Base.ReadDecimal(string.Format(prompt, 2)), - Base.ReadDecimal(string.Format(prompt, 3)), - Base.ReadDecimal(string.Format(prompt, 4)), - Base.ReadDecimal(string.Format(prompt, 5))); + return Of(BaseU.ReadDecimal(string.Format(prompt, 0)), + BaseU.ReadDecimal(string.Format(prompt, 1)), + BaseU.ReadDecimal(string.Format(prompt, 2)), + BaseU.ReadDecimal(string.Format(prompt, 3)), + BaseU.ReadDecimal(string.Format(prompt, 4)), + BaseU.ReadDecimal(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Decimal. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Decimal. /// /// Кортеж. public static Tuple ReadDecimalTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadDecimal(string.Format(prompt, 0)), - Base.ReadDecimal(string.Format(prompt, 1)), - Base.ReadDecimal(string.Format(prompt, 2)), - Base.ReadDecimal(string.Format(prompt, 3)), - Base.ReadDecimal(string.Format(prompt, 4)), - Base.ReadDecimal(string.Format(prompt, 5)), - Base.ReadDecimal(string.Format(prompt, 6))); + return Of(BaseU.ReadDecimal(string.Format(prompt, 0)), + BaseU.ReadDecimal(string.Format(prompt, 1)), + BaseU.ReadDecimal(string.Format(prompt, 2)), + BaseU.ReadDecimal(string.Format(prompt, 3)), + BaseU.ReadDecimal(string.Format(prompt, 4)), + BaseU.ReadDecimal(string.Format(prompt, 5)), + BaseU.ReadDecimal(string.Format(prompt, 6))); } - #endregion - - #region ReadDouble - /// - /// Читает кортеж из двух значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Double. /// /// Кортеж. public static Tuple ReadDoubleTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadDouble(string.Format(prompt, 0)), - Base.ReadDouble(string.Format(prompt, 1))); + return Of(BaseU.ReadDouble(string.Format(prompt, 0)), + BaseU.ReadDouble(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Double. /// /// Кортеж. public static Tuple ReadDoubleTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadDouble(string.Format(prompt, 0)), - Base.ReadDouble(string.Format(prompt, 1)), - Base.ReadDouble(string.Format(prompt, 2))); + return Of(BaseU.ReadDouble(string.Format(prompt, 0)), + BaseU.ReadDouble(string.Format(prompt, 1)), + BaseU.ReadDouble(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Double. /// /// Кортеж. public static Tuple ReadDoubleTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadDouble(string.Format(prompt, 0)), - Base.ReadDouble(string.Format(prompt, 1)), - Base.ReadDouble(string.Format(prompt, 2)), - Base.ReadDouble(string.Format(prompt, 3))); + return Of(BaseU.ReadDouble(string.Format(prompt, 0)), + BaseU.ReadDouble(string.Format(prompt, 1)), + BaseU.ReadDouble(string.Format(prompt, 2)), + BaseU.ReadDouble(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Double. /// /// Кортеж. public static Tuple ReadDoubleTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadDouble(string.Format(prompt, 0)), - Base.ReadDouble(string.Format(prompt, 1)), - Base.ReadDouble(string.Format(prompt, 2)), - Base.ReadDouble(string.Format(prompt, 3)), - Base.ReadDouble(string.Format(prompt, 4))); + return Of(BaseU.ReadDouble(string.Format(prompt, 0)), + BaseU.ReadDouble(string.Format(prompt, 1)), + BaseU.ReadDouble(string.Format(prompt, 2)), + BaseU.ReadDouble(string.Format(prompt, 3)), + BaseU.ReadDouble(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Double. /// /// Кортеж. public static Tuple ReadDoubleTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadDouble(string.Format(prompt, 0)), - Base.ReadDouble(string.Format(prompt, 1)), - Base.ReadDouble(string.Format(prompt, 2)), - Base.ReadDouble(string.Format(prompt, 3)), - Base.ReadDouble(string.Format(prompt, 4)), - Base.ReadDouble(string.Format(prompt, 5))); + return Of(BaseU.ReadDouble(string.Format(prompt, 0)), + BaseU.ReadDouble(string.Format(prompt, 1)), + BaseU.ReadDouble(string.Format(prompt, 2)), + BaseU.ReadDouble(string.Format(prompt, 3)), + BaseU.ReadDouble(string.Format(prompt, 4)), + BaseU.ReadDouble(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Double. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Double. /// /// Кортеж. public static Tuple ReadDoubleTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadDouble(string.Format(prompt, 0)), - Base.ReadDouble(string.Format(prompt, 1)), - Base.ReadDouble(string.Format(prompt, 2)), - Base.ReadDouble(string.Format(prompt, 3)), - Base.ReadDouble(string.Format(prompt, 4)), - Base.ReadDouble(string.Format(prompt, 5)), - Base.ReadDouble(string.Format(prompt, 6))); + return Of(BaseU.ReadDouble(string.Format(prompt, 0)), + BaseU.ReadDouble(string.Format(prompt, 1)), + BaseU.ReadDouble(string.Format(prompt, 2)), + BaseU.ReadDouble(string.Format(prompt, 3)), + BaseU.ReadDouble(string.Format(prompt, 4)), + BaseU.ReadDouble(string.Format(prompt, 5)), + BaseU.ReadDouble(string.Format(prompt, 6))); } - #endregion - - #region ReadSingle - /// - /// Читает кортеж из двух значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Int16. /// /// Кортеж. - public static Tuple ReadSingleTuple2(string prompt = null) + public static Tuple ReadInt16Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSingle(string.Format(prompt, 0)), - Base.ReadSingle(string.Format(prompt, 1))); + return Of(BaseU.ReadInt16(string.Format(prompt, 0)), + BaseU.ReadInt16(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Int16. /// /// Кортеж. - public static Tuple ReadSingleTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSingle(string.Format(prompt, 0)), - Base.ReadSingle(string.Format(prompt, 1)), - Base.ReadSingle(string.Format(prompt, 2))); + return Of(BaseU.ReadInt16(string.Format(prompt, 0)), + BaseU.ReadInt16(string.Format(prompt, 1)), + BaseU.ReadInt16(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Int16. /// /// Кортеж. - public static Tuple ReadSingleTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSingle(string.Format(prompt, 0)), - Base.ReadSingle(string.Format(prompt, 1)), - Base.ReadSingle(string.Format(prompt, 2)), - Base.ReadSingle(string.Format(prompt, 3))); + return Of(BaseU.ReadInt16(string.Format(prompt, 0)), + BaseU.ReadInt16(string.Format(prompt, 1)), + BaseU.ReadInt16(string.Format(prompt, 2)), + BaseU.ReadInt16(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Int16. /// /// Кортеж. - public static Tuple ReadSingleTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSingle(string.Format(prompt, 0)), - Base.ReadSingle(string.Format(prompt, 1)), - Base.ReadSingle(string.Format(prompt, 2)), - Base.ReadSingle(string.Format(prompt, 3)), - Base.ReadSingle(string.Format(prompt, 4))); + return Of(BaseU.ReadInt16(string.Format(prompt, 0)), + BaseU.ReadInt16(string.Format(prompt, 1)), + BaseU.ReadInt16(string.Format(prompt, 2)), + BaseU.ReadInt16(string.Format(prompt, 3)), + BaseU.ReadInt16(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Int16. /// /// Кортеж. - public static Tuple ReadSingleTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSingle(string.Format(prompt, 0)), - Base.ReadSingle(string.Format(prompt, 1)), - Base.ReadSingle(string.Format(prompt, 2)), - Base.ReadSingle(string.Format(prompt, 3)), - Base.ReadSingle(string.Format(prompt, 4)), - Base.ReadSingle(string.Format(prompt, 5))); + return Of(BaseU.ReadInt16(string.Format(prompt, 0)), + BaseU.ReadInt16(string.Format(prompt, 1)), + BaseU.ReadInt16(string.Format(prompt, 2)), + BaseU.ReadInt16(string.Format(prompt, 3)), + BaseU.ReadInt16(string.Format(prompt, 4)), + BaseU.ReadInt16(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Single. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Int16. /// /// Кортеж. - public static Tuple ReadSingleTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadSingle(string.Format(prompt, 0)), - Base.ReadSingle(string.Format(prompt, 1)), - Base.ReadSingle(string.Format(prompt, 2)), - Base.ReadSingle(string.Format(prompt, 3)), - Base.ReadSingle(string.Format(prompt, 4)), - Base.ReadSingle(string.Format(prompt, 5)), - Base.ReadSingle(string.Format(prompt, 6))); + return Of(BaseU.ReadInt16(string.Format(prompt, 0)), + BaseU.ReadInt16(string.Format(prompt, 1)), + BaseU.ReadInt16(string.Format(prompt, 2)), + BaseU.ReadInt16(string.Format(prompt, 3)), + BaseU.ReadInt16(string.Format(prompt, 4)), + BaseU.ReadInt16(string.Format(prompt, 5)), + BaseU.ReadInt16(string.Format(prompt, 6))); } - #endregion - - #region ReadInt32 - /// - /// Читает кортеж из двух значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Int32. /// /// Кортеж. public static Tuple ReadInt32Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt32(string.Format(prompt, 0)), - Base.ReadInt32(string.Format(prompt, 1))); + return Of(BaseU.ReadInt32(string.Format(prompt, 0)), + BaseU.ReadInt32(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Int32. /// /// Кортеж. public static Tuple ReadInt32Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt32(string.Format(prompt, 0)), - Base.ReadInt32(string.Format(prompt, 1)), - Base.ReadInt32(string.Format(prompt, 2))); + return Of(BaseU.ReadInt32(string.Format(prompt, 0)), + BaseU.ReadInt32(string.Format(prompt, 1)), + BaseU.ReadInt32(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Int32. /// /// Кортеж. public static Tuple ReadInt32Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt32(string.Format(prompt, 0)), - Base.ReadInt32(string.Format(prompt, 1)), - Base.ReadInt32(string.Format(prompt, 2)), - Base.ReadInt32(string.Format(prompt, 3))); + return Of(BaseU.ReadInt32(string.Format(prompt, 0)), + BaseU.ReadInt32(string.Format(prompt, 1)), + BaseU.ReadInt32(string.Format(prompt, 2)), + BaseU.ReadInt32(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Int32. /// /// Кортеж. public static Tuple ReadInt32Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt32(string.Format(prompt, 0)), - Base.ReadInt32(string.Format(prompt, 1)), - Base.ReadInt32(string.Format(prompt, 2)), - Base.ReadInt32(string.Format(prompt, 3)), - Base.ReadInt32(string.Format(prompt, 4))); + return Of(BaseU.ReadInt32(string.Format(prompt, 0)), + BaseU.ReadInt32(string.Format(prompt, 1)), + BaseU.ReadInt32(string.Format(prompt, 2)), + BaseU.ReadInt32(string.Format(prompt, 3)), + BaseU.ReadInt32(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Int32. /// /// Кортеж. public static Tuple ReadInt32Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt32(string.Format(prompt, 0)), - Base.ReadInt32(string.Format(prompt, 1)), - Base.ReadInt32(string.Format(prompt, 2)), - Base.ReadInt32(string.Format(prompt, 3)), - Base.ReadInt32(string.Format(prompt, 4)), - Base.ReadInt32(string.Format(prompt, 5))); + return Of(BaseU.ReadInt32(string.Format(prompt, 0)), + BaseU.ReadInt32(string.Format(prompt, 1)), + BaseU.ReadInt32(string.Format(prompt, 2)), + BaseU.ReadInt32(string.Format(prompt, 3)), + BaseU.ReadInt32(string.Format(prompt, 4)), + BaseU.ReadInt32(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Int32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Int32. /// /// Кортеж. public static Tuple ReadInt32Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt32(string.Format(prompt, 0)), - Base.ReadInt32(string.Format(prompt, 1)), - Base.ReadInt32(string.Format(prompt, 2)), - Base.ReadInt32(string.Format(prompt, 3)), - Base.ReadInt32(string.Format(prompt, 4)), - Base.ReadInt32(string.Format(prompt, 5)), - Base.ReadInt32(string.Format(prompt, 6))); + return Of(BaseU.ReadInt32(string.Format(prompt, 0)), + BaseU.ReadInt32(string.Format(prompt, 1)), + BaseU.ReadInt32(string.Format(prompt, 2)), + BaseU.ReadInt32(string.Format(prompt, 3)), + BaseU.ReadInt32(string.Format(prompt, 4)), + BaseU.ReadInt32(string.Format(prompt, 5)), + BaseU.ReadInt32(string.Format(prompt, 6))); } - #endregion - - #region ReadUInt32 - /// - /// Читает кортеж из двух значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Int64. /// /// Кортеж. - public static Tuple ReadUInt32Tuple2(string prompt = null) + public static Tuple ReadInt64Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt32(string.Format(prompt, 0)), - Base.ReadUInt32(string.Format(prompt, 1))); + return Of(BaseU.ReadInt64(string.Format(prompt, 0)), + BaseU.ReadInt64(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Int64. /// /// Кортеж. - public static Tuple ReadUInt32Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt32(string.Format(prompt, 0)), - Base.ReadUInt32(string.Format(prompt, 1)), - Base.ReadUInt32(string.Format(prompt, 2))); + return Of(BaseU.ReadInt64(string.Format(prompt, 0)), + BaseU.ReadInt64(string.Format(prompt, 1)), + BaseU.ReadInt64(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Int64. /// /// Кортеж. - public static Tuple ReadUInt32Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt32(string.Format(prompt, 0)), - Base.ReadUInt32(string.Format(prompt, 1)), - Base.ReadUInt32(string.Format(prompt, 2)), - Base.ReadUInt32(string.Format(prompt, 3))); + return Of(BaseU.ReadInt64(string.Format(prompt, 0)), + BaseU.ReadInt64(string.Format(prompt, 1)), + BaseU.ReadInt64(string.Format(prompt, 2)), + BaseU.ReadInt64(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Int64. /// /// Кортеж. - public static Tuple ReadUInt32Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt32(string.Format(prompt, 0)), - Base.ReadUInt32(string.Format(prompt, 1)), - Base.ReadUInt32(string.Format(prompt, 2)), - Base.ReadUInt32(string.Format(prompt, 3)), - Base.ReadUInt32(string.Format(prompt, 4))); + return Of(BaseU.ReadInt64(string.Format(prompt, 0)), + BaseU.ReadInt64(string.Format(prompt, 1)), + BaseU.ReadInt64(string.Format(prompt, 2)), + BaseU.ReadInt64(string.Format(prompt, 3)), + BaseU.ReadInt64(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Int64. /// /// Кортеж. - public static Tuple ReadUInt32Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt32(string.Format(prompt, 0)), - Base.ReadUInt32(string.Format(prompt, 1)), - Base.ReadUInt32(string.Format(prompt, 2)), - Base.ReadUInt32(string.Format(prompt, 3)), - Base.ReadUInt32(string.Format(prompt, 4)), - Base.ReadUInt32(string.Format(prompt, 5))); + return Of(BaseU.ReadInt64(string.Format(prompt, 0)), + BaseU.ReadInt64(string.Format(prompt, 1)), + BaseU.ReadInt64(string.Format(prompt, 2)), + BaseU.ReadInt64(string.Format(prompt, 3)), + BaseU.ReadInt64(string.Format(prompt, 4)), + BaseU.ReadInt64(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа UInt32. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Int64. /// /// Кортеж. - public static Tuple ReadUInt32Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt32(string.Format(prompt, 0)), - Base.ReadUInt32(string.Format(prompt, 1)), - Base.ReadUInt32(string.Format(prompt, 2)), - Base.ReadUInt32(string.Format(prompt, 3)), - Base.ReadUInt32(string.Format(prompt, 4)), - Base.ReadUInt32(string.Format(prompt, 5)), - Base.ReadUInt32(string.Format(prompt, 6))); + return Of(BaseU.ReadInt64(string.Format(prompt, 0)), + BaseU.ReadInt64(string.Format(prompt, 1)), + BaseU.ReadInt64(string.Format(prompt, 2)), + BaseU.ReadInt64(string.Format(prompt, 3)), + BaseU.ReadInt64(string.Format(prompt, 4)), + BaseU.ReadInt64(string.Format(prompt, 5)), + BaseU.ReadInt64(string.Format(prompt, 6))); } - #endregion - - #region ReadInt64 - /// - /// Читает кортеж из двух значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа SByte. /// /// Кортеж. - public static Tuple ReadInt64Tuple2(string prompt = null) + public static Tuple ReadSByteTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt64(string.Format(prompt, 0)), - Base.ReadInt64(string.Format(prompt, 1))); + return Of(BaseU.ReadSByte(string.Format(prompt, 0)), + BaseU.ReadSByte(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа SByte. /// /// Кортеж. - public static Tuple ReadInt64Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt64(string.Format(prompt, 0)), - Base.ReadInt64(string.Format(prompt, 1)), - Base.ReadInt64(string.Format(prompt, 2))); + return Of(BaseU.ReadSByte(string.Format(prompt, 0)), + BaseU.ReadSByte(string.Format(prompt, 1)), + BaseU.ReadSByte(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа SByte. /// /// Кортеж. - public static Tuple ReadInt64Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt64(string.Format(prompt, 0)), - Base.ReadInt64(string.Format(prompt, 1)), - Base.ReadInt64(string.Format(prompt, 2)), - Base.ReadInt64(string.Format(prompt, 3))); + return Of(BaseU.ReadSByte(string.Format(prompt, 0)), + BaseU.ReadSByte(string.Format(prompt, 1)), + BaseU.ReadSByte(string.Format(prompt, 2)), + BaseU.ReadSByte(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа SByte. /// /// Кортеж. - public static Tuple ReadInt64Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt64(string.Format(prompt, 0)), - Base.ReadInt64(string.Format(prompt, 1)), - Base.ReadInt64(string.Format(prompt, 2)), - Base.ReadInt64(string.Format(prompt, 3)), - Base.ReadInt64(string.Format(prompt, 4))); + return Of(BaseU.ReadSByte(string.Format(prompt, 0)), + BaseU.ReadSByte(string.Format(prompt, 1)), + BaseU.ReadSByte(string.Format(prompt, 2)), + BaseU.ReadSByte(string.Format(prompt, 3)), + BaseU.ReadSByte(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа SByte. /// /// Кортеж. - public static Tuple ReadInt64Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt64(string.Format(prompt, 0)), - Base.ReadInt64(string.Format(prompt, 1)), - Base.ReadInt64(string.Format(prompt, 2)), - Base.ReadInt64(string.Format(prompt, 3)), - Base.ReadInt64(string.Format(prompt, 4)), - Base.ReadInt64(string.Format(prompt, 5))); + return Of(BaseU.ReadSByte(string.Format(prompt, 0)), + BaseU.ReadSByte(string.Format(prompt, 1)), + BaseU.ReadSByte(string.Format(prompt, 2)), + BaseU.ReadSByte(string.Format(prompt, 3)), + BaseU.ReadSByte(string.Format(prompt, 4)), + BaseU.ReadSByte(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Int64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа SByte. /// /// Кортеж. - public static Tuple ReadInt64Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt64(string.Format(prompt, 0)), - Base.ReadInt64(string.Format(prompt, 1)), - Base.ReadInt64(string.Format(prompt, 2)), - Base.ReadInt64(string.Format(prompt, 3)), - Base.ReadInt64(string.Format(prompt, 4)), - Base.ReadInt64(string.Format(prompt, 5)), - Base.ReadInt64(string.Format(prompt, 6))); + return Of(BaseU.ReadSByte(string.Format(prompt, 0)), + BaseU.ReadSByte(string.Format(prompt, 1)), + BaseU.ReadSByte(string.Format(prompt, 2)), + BaseU.ReadSByte(string.Format(prompt, 3)), + BaseU.ReadSByte(string.Format(prompt, 4)), + BaseU.ReadSByte(string.Format(prompt, 5)), + BaseU.ReadSByte(string.Format(prompt, 6))); } - #endregion - - #region ReadUInt64 - /// - /// Читает кортеж из двух значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Single. /// /// Кортеж. - public static Tuple ReadUInt64Tuple2(string prompt = null) + public static Tuple ReadSingleTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt64(string.Format(prompt, 0)), - Base.ReadUInt64(string.Format(prompt, 1))); + return Of(BaseU.ReadSingle(string.Format(prompt, 0)), + BaseU.ReadSingle(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Single. /// /// Кортеж. - public static Tuple ReadUInt64Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt64(string.Format(prompt, 0)), - Base.ReadUInt64(string.Format(prompt, 1)), - Base.ReadUInt64(string.Format(prompt, 2))); + return Of(BaseU.ReadSingle(string.Format(prompt, 0)), + BaseU.ReadSingle(string.Format(prompt, 1)), + BaseU.ReadSingle(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Single. /// /// Кортеж. - public static Tuple ReadUInt64Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt64(string.Format(prompt, 0)), - Base.ReadUInt64(string.Format(prompt, 1)), - Base.ReadUInt64(string.Format(prompt, 2)), - Base.ReadUInt64(string.Format(prompt, 3))); + return Of(BaseU.ReadSingle(string.Format(prompt, 0)), + BaseU.ReadSingle(string.Format(prompt, 1)), + BaseU.ReadSingle(string.Format(prompt, 2)), + BaseU.ReadSingle(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Single. /// /// Кортеж. - public static Tuple ReadUInt64Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt64(string.Format(prompt, 0)), - Base.ReadUInt64(string.Format(prompt, 1)), - Base.ReadUInt64(string.Format(prompt, 2)), - Base.ReadUInt64(string.Format(prompt, 3)), - Base.ReadUInt64(string.Format(prompt, 4))); + return Of(BaseU.ReadSingle(string.Format(prompt, 0)), + BaseU.ReadSingle(string.Format(prompt, 1)), + BaseU.ReadSingle(string.Format(prompt, 2)), + BaseU.ReadSingle(string.Format(prompt, 3)), + BaseU.ReadSingle(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Single. /// /// Кортеж. - public static Tuple ReadUInt64Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt64(string.Format(prompt, 0)), - Base.ReadUInt64(string.Format(prompt, 1)), - Base.ReadUInt64(string.Format(prompt, 2)), - Base.ReadUInt64(string.Format(prompt, 3)), - Base.ReadUInt64(string.Format(prompt, 4)), - Base.ReadUInt64(string.Format(prompt, 5))); + return Of(BaseU.ReadSingle(string.Format(prompt, 0)), + BaseU.ReadSingle(string.Format(prompt, 1)), + BaseU.ReadSingle(string.Format(prompt, 2)), + BaseU.ReadSingle(string.Format(prompt, 3)), + BaseU.ReadSingle(string.Format(prompt, 4)), + BaseU.ReadSingle(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа UInt64. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Single. /// /// Кортеж. - public static Tuple ReadUInt64Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt64(string.Format(prompt, 0)), - Base.ReadUInt64(string.Format(prompt, 1)), - Base.ReadUInt64(string.Format(prompt, 2)), - Base.ReadUInt64(string.Format(prompt, 3)), - Base.ReadUInt64(string.Format(prompt, 4)), - Base.ReadUInt64(string.Format(prompt, 5)), - Base.ReadUInt64(string.Format(prompt, 6))); + return Of(BaseU.ReadSingle(string.Format(prompt, 0)), + BaseU.ReadSingle(string.Format(prompt, 1)), + BaseU.ReadSingle(string.Format(prompt, 2)), + BaseU.ReadSingle(string.Format(prompt, 3)), + BaseU.ReadSingle(string.Format(prompt, 4)), + BaseU.ReadSingle(string.Format(prompt, 5)), + BaseU.ReadSingle(string.Format(prompt, 6))); } - #endregion - - #region ReadInt16 - /// - /// Читает кортеж из двух значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа String. /// /// Кортеж. - public static Tuple ReadInt16Tuple2(string prompt = null) + public static Tuple ReadStringTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt16(string.Format(prompt, 0)), - Base.ReadInt16(string.Format(prompt, 1))); + return Of(BaseU.ReadString(string.Format(prompt, 0)), + BaseU.ReadString(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа String. /// /// Кортеж. - public static Tuple ReadInt16Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadStringTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt16(string.Format(prompt, 0)), - Base.ReadInt16(string.Format(prompt, 1)), - Base.ReadInt16(string.Format(prompt, 2))); + return Of(BaseU.ReadString(string.Format(prompt, 0)), + BaseU.ReadString(string.Format(prompt, 1)), + BaseU.ReadString(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа String. /// /// Кортеж. - public static Tuple ReadInt16Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadStringTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt16(string.Format(prompt, 0)), - Base.ReadInt16(string.Format(prompt, 1)), - Base.ReadInt16(string.Format(prompt, 2)), - Base.ReadInt16(string.Format(prompt, 3))); + return Of(BaseU.ReadString(string.Format(prompt, 0)), + BaseU.ReadString(string.Format(prompt, 1)), + BaseU.ReadString(string.Format(prompt, 2)), + BaseU.ReadString(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа String. /// /// Кортеж. - public static Tuple ReadInt16Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadStringTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt16(string.Format(prompt, 0)), - Base.ReadInt16(string.Format(prompt, 1)), - Base.ReadInt16(string.Format(prompt, 2)), - Base.ReadInt16(string.Format(prompt, 3)), - Base.ReadInt16(string.Format(prompt, 4))); + return Of(BaseU.ReadString(string.Format(prompt, 0)), + BaseU.ReadString(string.Format(prompt, 1)), + BaseU.ReadString(string.Format(prompt, 2)), + BaseU.ReadString(string.Format(prompt, 3)), + BaseU.ReadString(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа String. /// /// Кортеж. - public static Tuple ReadInt16Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadStringTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt16(string.Format(prompt, 0)), - Base.ReadInt16(string.Format(prompt, 1)), - Base.ReadInt16(string.Format(prompt, 2)), - Base.ReadInt16(string.Format(prompt, 3)), - Base.ReadInt16(string.Format(prompt, 4)), - Base.ReadInt16(string.Format(prompt, 5))); + return Of(BaseU.ReadString(string.Format(prompt, 0)), + BaseU.ReadString(string.Format(prompt, 1)), + BaseU.ReadString(string.Format(prompt, 2)), + BaseU.ReadString(string.Format(prompt, 3)), + BaseU.ReadString(string.Format(prompt, 4)), + BaseU.ReadString(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Int16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа String. /// /// Кортеж. - public static Tuple ReadInt16Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadStringTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadInt16(string.Format(prompt, 0)), - Base.ReadInt16(string.Format(prompt, 1)), - Base.ReadInt16(string.Format(prompt, 2)), - Base.ReadInt16(string.Format(prompt, 3)), - Base.ReadInt16(string.Format(prompt, 4)), - Base.ReadInt16(string.Format(prompt, 5)), - Base.ReadInt16(string.Format(prompt, 6))); + return Of(BaseU.ReadString(string.Format(prompt, 0)), + BaseU.ReadString(string.Format(prompt, 1)), + BaseU.ReadString(string.Format(prompt, 2)), + BaseU.ReadString(string.Format(prompt, 3)), + BaseU.ReadString(string.Format(prompt, 4)), + BaseU.ReadString(string.Format(prompt, 5)), + BaseU.ReadString(string.Format(prompt, 6))); } - #endregion - - #region ReadUInt16 - /// - /// Читает кортеж из двух значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа UInt16. /// /// Кортеж. public static Tuple ReadUInt16Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt16(string.Format(prompt, 0)), - Base.ReadUInt16(string.Format(prompt, 1))); + return Of(BaseU.ReadUInt16(string.Format(prompt, 0)), + BaseU.ReadUInt16(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа UInt16. /// /// Кортеж. public static Tuple ReadUInt16Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt16(string.Format(prompt, 0)), - Base.ReadUInt16(string.Format(prompt, 1)), - Base.ReadUInt16(string.Format(prompt, 2))); + return Of(BaseU.ReadUInt16(string.Format(prompt, 0)), + BaseU.ReadUInt16(string.Format(prompt, 1)), + BaseU.ReadUInt16(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа UInt16. /// /// Кортеж. public static Tuple ReadUInt16Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt16(string.Format(prompt, 0)), - Base.ReadUInt16(string.Format(prompt, 1)), - Base.ReadUInt16(string.Format(prompt, 2)), - Base.ReadUInt16(string.Format(prompt, 3))); + return Of(BaseU.ReadUInt16(string.Format(prompt, 0)), + BaseU.ReadUInt16(string.Format(prompt, 1)), + BaseU.ReadUInt16(string.Format(prompt, 2)), + BaseU.ReadUInt16(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа UInt16. /// /// Кортеж. public static Tuple ReadUInt16Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt16(string.Format(prompt, 0)), - Base.ReadUInt16(string.Format(prompt, 1)), - Base.ReadUInt16(string.Format(prompt, 2)), - Base.ReadUInt16(string.Format(prompt, 3)), - Base.ReadUInt16(string.Format(prompt, 4))); + return Of(BaseU.ReadUInt16(string.Format(prompt, 0)), + BaseU.ReadUInt16(string.Format(prompt, 1)), + BaseU.ReadUInt16(string.Format(prompt, 2)), + BaseU.ReadUInt16(string.Format(prompt, 3)), + BaseU.ReadUInt16(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа UInt16. /// /// Кортеж. public static Tuple ReadUInt16Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt16(string.Format(prompt, 0)), - Base.ReadUInt16(string.Format(prompt, 1)), - Base.ReadUInt16(string.Format(prompt, 2)), - Base.ReadUInt16(string.Format(prompt, 3)), - Base.ReadUInt16(string.Format(prompt, 4)), - Base.ReadUInt16(string.Format(prompt, 5))); + return Of(BaseU.ReadUInt16(string.Format(prompt, 0)), + BaseU.ReadUInt16(string.Format(prompt, 1)), + BaseU.ReadUInt16(string.Format(prompt, 2)), + BaseU.ReadUInt16(string.Format(prompt, 3)), + BaseU.ReadUInt16(string.Format(prompt, 4)), + BaseU.ReadUInt16(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа UInt16. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа UInt16. /// /// Кортеж. public static Tuple ReadUInt16Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadUInt16(string.Format(prompt, 0)), - Base.ReadUInt16(string.Format(prompt, 1)), - Base.ReadUInt16(string.Format(prompt, 2)), - Base.ReadUInt16(string.Format(prompt, 3)), - Base.ReadUInt16(string.Format(prompt, 4)), - Base.ReadUInt16(string.Format(prompt, 5)), - Base.ReadUInt16(string.Format(prompt, 6))); + return Of(BaseU.ReadUInt16(string.Format(prompt, 0)), + BaseU.ReadUInt16(string.Format(prompt, 1)), + BaseU.ReadUInt16(string.Format(prompt, 2)), + BaseU.ReadUInt16(string.Format(prompt, 3)), + BaseU.ReadUInt16(string.Format(prompt, 4)), + BaseU.ReadUInt16(string.Format(prompt, 5)), + BaseU.ReadUInt16(string.Format(prompt, 6))); } - #endregion - - #region ReadBigInteger - /// - /// Читает кортеж из двух значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа UInt32. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple2(string prompt = null) + public static Tuple ReadUInt32Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBigInteger(string.Format(prompt, 0)), - Base.ReadBigInteger(string.Format(prompt, 1))); + return Of(BaseU.ReadUInt32(string.Format(prompt, 0)), + BaseU.ReadUInt32(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа UInt32. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBigInteger(string.Format(prompt, 0)), - Base.ReadBigInteger(string.Format(prompt, 1)), - Base.ReadBigInteger(string.Format(prompt, 2))); + return Of(BaseU.ReadUInt32(string.Format(prompt, 0)), + BaseU.ReadUInt32(string.Format(prompt, 1)), + BaseU.ReadUInt32(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа UInt32. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBigInteger(string.Format(prompt, 0)), - Base.ReadBigInteger(string.Format(prompt, 1)), - Base.ReadBigInteger(string.Format(prompt, 2)), - Base.ReadBigInteger(string.Format(prompt, 3))); + return Of(BaseU.ReadUInt32(string.Format(prompt, 0)), + BaseU.ReadUInt32(string.Format(prompt, 1)), + BaseU.ReadUInt32(string.Format(prompt, 2)), + BaseU.ReadUInt32(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа UInt32. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBigInteger(string.Format(prompt, 0)), - Base.ReadBigInteger(string.Format(prompt, 1)), - Base.ReadBigInteger(string.Format(prompt, 2)), - Base.ReadBigInteger(string.Format(prompt, 3)), - Base.ReadBigInteger(string.Format(prompt, 4))); + return Of(BaseU.ReadUInt32(string.Format(prompt, 0)), + BaseU.ReadUInt32(string.Format(prompt, 1)), + BaseU.ReadUInt32(string.Format(prompt, 2)), + BaseU.ReadUInt32(string.Format(prompt, 3)), + BaseU.ReadUInt32(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа UInt32. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBigInteger(string.Format(prompt, 0)), - Base.ReadBigInteger(string.Format(prompt, 1)), - Base.ReadBigInteger(string.Format(prompt, 2)), - Base.ReadBigInteger(string.Format(prompt, 3)), - Base.ReadBigInteger(string.Format(prompt, 4)), - Base.ReadBigInteger(string.Format(prompt, 5))); + return Of(BaseU.ReadUInt32(string.Format(prompt, 0)), + BaseU.ReadUInt32(string.Format(prompt, 1)), + BaseU.ReadUInt32(string.Format(prompt, 2)), + BaseU.ReadUInt32(string.Format(prompt, 3)), + BaseU.ReadUInt32(string.Format(prompt, 4)), + BaseU.ReadUInt32(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа BigInteger. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа UInt32. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadBigInteger(string.Format(prompt, 0)), - Base.ReadBigInteger(string.Format(prompt, 1)), - Base.ReadBigInteger(string.Format(prompt, 2)), - Base.ReadBigInteger(string.Format(prompt, 3)), - Base.ReadBigInteger(string.Format(prompt, 4)), - Base.ReadBigInteger(string.Format(prompt, 5)), - Base.ReadBigInteger(string.Format(prompt, 6))); + return Of(BaseU.ReadUInt32(string.Format(prompt, 0)), + BaseU.ReadUInt32(string.Format(prompt, 1)), + BaseU.ReadUInt32(string.Format(prompt, 2)), + BaseU.ReadUInt32(string.Format(prompt, 3)), + BaseU.ReadUInt32(string.Format(prompt, 4)), + BaseU.ReadUInt32(string.Format(prompt, 5)), + BaseU.ReadUInt32(string.Format(prompt, 6))); } - #endregion - - #region ReadString - /// - /// Читает кортеж из двух значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа UInt64. /// /// Кортеж. - public static Tuple ReadStringTuple2(string prompt = null) + public static Tuple ReadUInt64Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadString(string.Format(prompt, 0)), - Base.ReadString(string.Format(prompt, 1))); + return Of(BaseU.ReadUInt64(string.Format(prompt, 0)), + BaseU.ReadUInt64(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа UInt64. /// /// Кортеж. - public static Tuple ReadStringTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadString(string.Format(prompt, 0)), - Base.ReadString(string.Format(prompt, 1)), - Base.ReadString(string.Format(prompt, 2))); + return Of(BaseU.ReadUInt64(string.Format(prompt, 0)), + BaseU.ReadUInt64(string.Format(prompt, 1)), + BaseU.ReadUInt64(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа UInt64. /// /// Кортеж. - public static Tuple ReadStringTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadString(string.Format(prompt, 0)), - Base.ReadString(string.Format(prompt, 1)), - Base.ReadString(string.Format(prompt, 2)), - Base.ReadString(string.Format(prompt, 3))); + return Of(BaseU.ReadUInt64(string.Format(prompt, 0)), + BaseU.ReadUInt64(string.Format(prompt, 1)), + BaseU.ReadUInt64(string.Format(prompt, 2)), + BaseU.ReadUInt64(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа UInt64. /// /// Кортеж. - public static Tuple ReadStringTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadString(string.Format(prompt, 0)), - Base.ReadString(string.Format(prompt, 1)), - Base.ReadString(string.Format(prompt, 2)), - Base.ReadString(string.Format(prompt, 3)), - Base.ReadString(string.Format(prompt, 4))); + return Of(BaseU.ReadUInt64(string.Format(prompt, 0)), + BaseU.ReadUInt64(string.Format(prompt, 1)), + BaseU.ReadUInt64(string.Format(prompt, 2)), + BaseU.ReadUInt64(string.Format(prompt, 3)), + BaseU.ReadUInt64(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа UInt64. /// /// Кортеж. - public static Tuple ReadStringTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadString(string.Format(prompt, 0)), - Base.ReadString(string.Format(prompt, 1)), - Base.ReadString(string.Format(prompt, 2)), - Base.ReadString(string.Format(prompt, 3)), - Base.ReadString(string.Format(prompt, 4)), - Base.ReadString(string.Format(prompt, 5))); + return Of(BaseU.ReadUInt64(string.Format(prompt, 0)), + BaseU.ReadUInt64(string.Format(prompt, 1)), + BaseU.ReadUInt64(string.Format(prompt, 2)), + BaseU.ReadUInt64(string.Format(prompt, 3)), + BaseU.ReadUInt64(string.Format(prompt, 4)), + BaseU.ReadUInt64(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа String. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа UInt64. /// /// Кортеж. - public static Tuple ReadStringTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Of(Base.ReadString(string.Format(prompt, 0)), - Base.ReadString(string.Format(prompt, 1)), - Base.ReadString(string.Format(prompt, 2)), - Base.ReadString(string.Format(prompt, 3)), - Base.ReadString(string.Format(prompt, 4)), - Base.ReadString(string.Format(prompt, 5)), - Base.ReadString(string.Format(prompt, 6))); + return Of(BaseU.ReadUInt64(string.Format(prompt, 0)), + BaseU.ReadUInt64(string.Format(prompt, 1)), + BaseU.ReadUInt64(string.Format(prompt, 2)), + BaseU.ReadUInt64(string.Format(prompt, 3)), + BaseU.ReadUInt64(string.Format(prompt, 4)), + BaseU.ReadUInt64(string.Format(prompt, 5)), + BaseU.ReadUInt64(string.Format(prompt, 6))); } - #endregion - #endregion public } -} +} \ No newline at end of file diff --git a/NETMouse - .NET release/Utils/TupleU.Nullable.Input.cs b/NETMouse - .NET release/Utils/TupleU.Nullable.Input.cs index 4076821..cb4e887 100644 --- a/NETMouse - .NET release/Utils/TupleU.Nullable.Input.cs +++ b/NETMouse - .NET release/Utils/TupleU.Nullable.Input.cs @@ -4,9 +4,9 @@ namespace ABCNET.Utils { /// - /// Предоставляет функционал для работы с базовыми типами. + /// Предоставляет функционал для работы с ссылочными кортежами. /// - public static partial class TupleU + public static partial class Tuple { /// /// Предоставляет функционал для работы с Nullable типами. @@ -16,1276 +16,1276 @@ public static partial class Nullable #region public - #region ReadBoolean? + #region ReadBigInteger? /// - /// Читает кортеж из двух значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа BigInteger?. /// /// Кортеж. - public static Tuple ReadBooleanTuple2(string prompt = null) + public static Tuple ReadBigIntegerTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), - Base.Nullable.ReadBoolean(string.Format(prompt, 1))); + return TupleU.Of(BaseU.Nullable.ReadBigInteger(string.Format(prompt, 0)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа BigInteger?. /// /// Кортеж. - public static Tuple ReadBooleanTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), - Base.Nullable.ReadBoolean(string.Format(prompt, 1)), - Base.Nullable.ReadBoolean(string.Format(prompt, 2))); + return TupleU.Of(BaseU.Nullable.ReadBigInteger(string.Format(prompt, 0)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 1)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа BigInteger?. /// /// Кортеж. - public static Tuple ReadBooleanTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), - Base.Nullable.ReadBoolean(string.Format(prompt, 1)), - Base.Nullable.ReadBoolean(string.Format(prompt, 2)), - Base.Nullable.ReadBoolean(string.Format(prompt, 3))); + return TupleU.Of(BaseU.Nullable.ReadBigInteger(string.Format(prompt, 0)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 1)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 2)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа BigInteger?. /// /// Кортеж. - public static Tuple ReadBooleanTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), - Base.Nullable.ReadBoolean(string.Format(prompt, 1)), - Base.Nullable.ReadBoolean(string.Format(prompt, 2)), - Base.Nullable.ReadBoolean(string.Format(prompt, 3)), - Base.Nullable.ReadBoolean(string.Format(prompt, 4))); + return TupleU.Of(BaseU.Nullable.ReadBigInteger(string.Format(prompt, 0)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 1)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 2)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 3)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа BigInteger?. /// /// Кортеж. - public static Tuple ReadBooleanTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), - Base.Nullable.ReadBoolean(string.Format(prompt, 1)), - Base.Nullable.ReadBoolean(string.Format(prompt, 2)), - Base.Nullable.ReadBoolean(string.Format(prompt, 3)), - Base.Nullable.ReadBoolean(string.Format(prompt, 4)), - Base.Nullable.ReadBoolean(string.Format(prompt, 5))); + return TupleU.Of(BaseU.Nullable.ReadBigInteger(string.Format(prompt, 0)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 1)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 2)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 3)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 4)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Boolean?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа BigInteger?. /// /// Кортеж. - public static Tuple ReadBooleanTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBigIntegerTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBoolean(string.Format(prompt, 0)), - Base.Nullable.ReadBoolean(string.Format(prompt, 1)), - Base.Nullable.ReadBoolean(string.Format(prompt, 2)), - Base.Nullable.ReadBoolean(string.Format(prompt, 3)), - Base.Nullable.ReadBoolean(string.Format(prompt, 4)), - Base.Nullable.ReadBoolean(string.Format(prompt, 5)), - Base.Nullable.ReadBoolean(string.Format(prompt, 6))); + return TupleU.Of(BaseU.Nullable.ReadBigInteger(string.Format(prompt, 0)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 1)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 2)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 3)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 4)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 5)), + BaseU.Nullable.ReadBigInteger(string.Format(prompt, 6))); } #endregion - - #region ReadByte? + + #region ReadBoolean? /// - /// Читает кортеж из двух значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Boolean?. /// /// Кортеж. - public static Tuple ReadByteTuple2(string prompt = null) + public static Tuple ReadBooleanTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), - Base.Nullable.ReadByte(string.Format(prompt, 1))); + return TupleU.Of(BaseU.Nullable.ReadBoolean(string.Format(prompt, 0)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Boolean?. /// /// Кортеж. - public static Tuple ReadByteTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBooleanTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), - Base.Nullable.ReadByte(string.Format(prompt, 1)), - Base.Nullable.ReadByte(string.Format(prompt, 2))); + return TupleU.Of(BaseU.Nullable.ReadBoolean(string.Format(prompt, 0)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 1)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Boolean?. /// /// Кортеж. - public static Tuple ReadByteTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBooleanTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), - Base.Nullable.ReadByte(string.Format(prompt, 1)), - Base.Nullable.ReadByte(string.Format(prompt, 2)), - Base.Nullable.ReadByte(string.Format(prompt, 3))); + return TupleU.Of(BaseU.Nullable.ReadBoolean(string.Format(prompt, 0)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 1)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 2)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Boolean?. /// /// Кортеж. - public static Tuple ReadByteTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBooleanTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), - Base.Nullable.ReadByte(string.Format(prompt, 1)), - Base.Nullable.ReadByte(string.Format(prompt, 2)), - Base.Nullable.ReadByte(string.Format(prompt, 3)), - Base.Nullable.ReadByte(string.Format(prompt, 4))); + return TupleU.Of(BaseU.Nullable.ReadBoolean(string.Format(prompt, 0)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 1)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 2)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 3)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Boolean?. /// /// Кортеж. - public static Tuple ReadByteTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBooleanTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), - Base.Nullable.ReadByte(string.Format(prompt, 1)), - Base.Nullable.ReadByte(string.Format(prompt, 2)), - Base.Nullable.ReadByte(string.Format(prompt, 3)), - Base.Nullable.ReadByte(string.Format(prompt, 4)), - Base.Nullable.ReadByte(string.Format(prompt, 5))); + return TupleU.Of(BaseU.Nullable.ReadBoolean(string.Format(prompt, 0)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 1)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 2)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 3)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 4)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Byte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Boolean?. /// /// Кортеж. - public static Tuple ReadByteTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadBooleanTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadByte(string.Format(prompt, 0)), - Base.Nullable.ReadByte(string.Format(prompt, 1)), - Base.Nullable.ReadByte(string.Format(prompt, 2)), - Base.Nullable.ReadByte(string.Format(prompt, 3)), - Base.Nullable.ReadByte(string.Format(prompt, 4)), - Base.Nullable.ReadByte(string.Format(prompt, 5)), - Base.Nullable.ReadByte(string.Format(prompt, 6))); + return TupleU.Of(BaseU.Nullable.ReadBoolean(string.Format(prompt, 0)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 1)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 2)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 3)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 4)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 5)), + BaseU.Nullable.ReadBoolean(string.Format(prompt, 6))); } #endregion - - #region ReadSByte? + + #region ReadByte? /// - /// Читает кортеж из двух значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Byte?. /// /// Кортеж. - public static Tuple ReadSByteTuple2(string prompt = null) + public static Tuple ReadByteTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), - Base.Nullable.ReadSByte(string.Format(prompt, 1))); + return TupleU.Of(BaseU.Nullable.ReadByte(string.Format(prompt, 0)), + BaseU.Nullable.ReadByte(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Byte?. /// /// Кортеж. - public static Tuple ReadSByteTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadByteTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), - Base.Nullable.ReadSByte(string.Format(prompt, 1)), - Base.Nullable.ReadSByte(string.Format(prompt, 2))); + return TupleU.Of(BaseU.Nullable.ReadByte(string.Format(prompt, 0)), + BaseU.Nullable.ReadByte(string.Format(prompt, 1)), + BaseU.Nullable.ReadByte(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Byte?. /// /// Кортеж. - public static Tuple ReadSByteTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadByteTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), - Base.Nullable.ReadSByte(string.Format(prompt, 1)), - Base.Nullable.ReadSByte(string.Format(prompt, 2)), - Base.Nullable.ReadSByte(string.Format(prompt, 3))); + return TupleU.Of(BaseU.Nullable.ReadByte(string.Format(prompt, 0)), + BaseU.Nullable.ReadByte(string.Format(prompt, 1)), + BaseU.Nullable.ReadByte(string.Format(prompt, 2)), + BaseU.Nullable.ReadByte(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Byte?. /// /// Кортеж. - public static Tuple ReadSByteTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadByteTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), - Base.Nullable.ReadSByte(string.Format(prompt, 1)), - Base.Nullable.ReadSByte(string.Format(prompt, 2)), - Base.Nullable.ReadSByte(string.Format(prompt, 3)), - Base.Nullable.ReadSByte(string.Format(prompt, 4))); + return TupleU.Of(BaseU.Nullable.ReadByte(string.Format(prompt, 0)), + BaseU.Nullable.ReadByte(string.Format(prompt, 1)), + BaseU.Nullable.ReadByte(string.Format(prompt, 2)), + BaseU.Nullable.ReadByte(string.Format(prompt, 3)), + BaseU.Nullable.ReadByte(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Byte?. /// /// Кортеж. - public static Tuple ReadSByteTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadByteTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), - Base.Nullable.ReadSByte(string.Format(prompt, 1)), - Base.Nullable.ReadSByte(string.Format(prompt, 2)), - Base.Nullable.ReadSByte(string.Format(prompt, 3)), - Base.Nullable.ReadSByte(string.Format(prompt, 4)), - Base.Nullable.ReadSByte(string.Format(prompt, 5))); + return TupleU.Of(BaseU.Nullable.ReadByte(string.Format(prompt, 0)), + BaseU.Nullable.ReadByte(string.Format(prompt, 1)), + BaseU.Nullable.ReadByte(string.Format(prompt, 2)), + BaseU.Nullable.ReadByte(string.Format(prompt, 3)), + BaseU.Nullable.ReadByte(string.Format(prompt, 4)), + BaseU.Nullable.ReadByte(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа SByte?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Byte?. /// /// Кортеж. - public static Tuple ReadSByteTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadByteTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSByte(string.Format(prompt, 0)), - Base.Nullable.ReadSByte(string.Format(prompt, 1)), - Base.Nullable.ReadSByte(string.Format(prompt, 2)), - Base.Nullable.ReadSByte(string.Format(prompt, 3)), - Base.Nullable.ReadSByte(string.Format(prompt, 4)), - Base.Nullable.ReadSByte(string.Format(prompt, 5)), - Base.Nullable.ReadSByte(string.Format(prompt, 6))); + return TupleU.Of(BaseU.Nullable.ReadByte(string.Format(prompt, 0)), + BaseU.Nullable.ReadByte(string.Format(prompt, 1)), + BaseU.Nullable.ReadByte(string.Format(prompt, 2)), + BaseU.Nullable.ReadByte(string.Format(prompt, 3)), + BaseU.Nullable.ReadByte(string.Format(prompt, 4)), + BaseU.Nullable.ReadByte(string.Format(prompt, 5)), + BaseU.Nullable.ReadByte(string.Format(prompt, 6))); } #endregion - + #region ReadChar? /// - /// Читает кортеж из двух значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Char?. /// /// Кортеж. public static Tuple ReadCharTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), - Base.Nullable.ReadChar(string.Format(prompt, 1))); + return TupleU.Of(BaseU.Nullable.ReadChar(string.Format(prompt, 0)), + BaseU.Nullable.ReadChar(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Char?. /// /// Кортеж. public static Tuple ReadCharTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), - Base.Nullable.ReadChar(string.Format(prompt, 1)), - Base.Nullable.ReadChar(string.Format(prompt, 2))); + return TupleU.Of(BaseU.Nullable.ReadChar(string.Format(prompt, 0)), + BaseU.Nullable.ReadChar(string.Format(prompt, 1)), + BaseU.Nullable.ReadChar(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Char?. /// /// Кортеж. public static Tuple ReadCharTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), - Base.Nullable.ReadChar(string.Format(prompt, 1)), - Base.Nullable.ReadChar(string.Format(prompt, 2)), - Base.Nullable.ReadChar(string.Format(prompt, 3))); + return TupleU.Of(BaseU.Nullable.ReadChar(string.Format(prompt, 0)), + BaseU.Nullable.ReadChar(string.Format(prompt, 1)), + BaseU.Nullable.ReadChar(string.Format(prompt, 2)), + BaseU.Nullable.ReadChar(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Char?. /// /// Кортеж. public static Tuple ReadCharTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), - Base.Nullable.ReadChar(string.Format(prompt, 1)), - Base.Nullable.ReadChar(string.Format(prompt, 2)), - Base.Nullable.ReadChar(string.Format(prompt, 3)), - Base.Nullable.ReadChar(string.Format(prompt, 4))); + return TupleU.Of(BaseU.Nullable.ReadChar(string.Format(prompt, 0)), + BaseU.Nullable.ReadChar(string.Format(prompt, 1)), + BaseU.Nullable.ReadChar(string.Format(prompt, 2)), + BaseU.Nullable.ReadChar(string.Format(prompt, 3)), + BaseU.Nullable.ReadChar(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Char?. /// /// Кортеж. public static Tuple ReadCharTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), - Base.Nullable.ReadChar(string.Format(prompt, 1)), - Base.Nullable.ReadChar(string.Format(prompt, 2)), - Base.Nullable.ReadChar(string.Format(prompt, 3)), - Base.Nullable.ReadChar(string.Format(prompt, 4)), - Base.Nullable.ReadChar(string.Format(prompt, 5))); + return TupleU.Of(BaseU.Nullable.ReadChar(string.Format(prompt, 0)), + BaseU.Nullable.ReadChar(string.Format(prompt, 1)), + BaseU.Nullable.ReadChar(string.Format(prompt, 2)), + BaseU.Nullable.ReadChar(string.Format(prompt, 3)), + BaseU.Nullable.ReadChar(string.Format(prompt, 4)), + BaseU.Nullable.ReadChar(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Char?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Char?. /// /// Кортеж. public static Tuple ReadCharTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadChar(string.Format(prompt, 0)), - Base.Nullable.ReadChar(string.Format(prompt, 1)), - Base.Nullable.ReadChar(string.Format(prompt, 2)), - Base.Nullable.ReadChar(string.Format(prompt, 3)), - Base.Nullable.ReadChar(string.Format(prompt, 4)), - Base.Nullable.ReadChar(string.Format(prompt, 5)), - Base.Nullable.ReadChar(string.Format(prompt, 6))); + return TupleU.Of(BaseU.Nullable.ReadChar(string.Format(prompt, 0)), + BaseU.Nullable.ReadChar(string.Format(prompt, 1)), + BaseU.Nullable.ReadChar(string.Format(prompt, 2)), + BaseU.Nullable.ReadChar(string.Format(prompt, 3)), + BaseU.Nullable.ReadChar(string.Format(prompt, 4)), + BaseU.Nullable.ReadChar(string.Format(prompt, 5)), + BaseU.Nullable.ReadChar(string.Format(prompt, 6))); } #endregion - + #region ReadDecimal? /// - /// Читает кортеж из двух значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Decimal?. /// /// Кортеж. public static Tuple ReadDecimalTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), - Base.Nullable.ReadDecimal(string.Format(prompt, 1))); + return TupleU.Of(BaseU.Nullable.ReadDecimal(string.Format(prompt, 0)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Decimal?. /// /// Кортеж. public static Tuple ReadDecimalTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), - Base.Nullable.ReadDecimal(string.Format(prompt, 1)), - Base.Nullable.ReadDecimal(string.Format(prompt, 2))); + return TupleU.Of(BaseU.Nullable.ReadDecimal(string.Format(prompt, 0)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 1)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Decimal?. /// /// Кортеж. public static Tuple ReadDecimalTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), - Base.Nullable.ReadDecimal(string.Format(prompt, 1)), - Base.Nullable.ReadDecimal(string.Format(prompt, 2)), - Base.Nullable.ReadDecimal(string.Format(prompt, 3))); + return TupleU.Of(BaseU.Nullable.ReadDecimal(string.Format(prompt, 0)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 1)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 2)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Decimal?. /// /// Кортеж. public static Tuple ReadDecimalTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), - Base.Nullable.ReadDecimal(string.Format(prompt, 1)), - Base.Nullable.ReadDecimal(string.Format(prompt, 2)), - Base.Nullable.ReadDecimal(string.Format(prompt, 3)), - Base.Nullable.ReadDecimal(string.Format(prompt, 4))); + return TupleU.Of(BaseU.Nullable.ReadDecimal(string.Format(prompt, 0)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 1)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 2)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 3)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Decimal?. /// /// Кортеж. public static Tuple ReadDecimalTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), - Base.Nullable.ReadDecimal(string.Format(prompt, 1)), - Base.Nullable.ReadDecimal(string.Format(prompt, 2)), - Base.Nullable.ReadDecimal(string.Format(prompt, 3)), - Base.Nullable.ReadDecimal(string.Format(prompt, 4)), - Base.Nullable.ReadDecimal(string.Format(prompt, 5))); + return TupleU.Of(BaseU.Nullable.ReadDecimal(string.Format(prompt, 0)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 1)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 2)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 3)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 4)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Decimal?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Decimal?. /// /// Кортеж. public static Tuple ReadDecimalTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDecimal(string.Format(prompt, 0)), - Base.Nullable.ReadDecimal(string.Format(prompt, 1)), - Base.Nullable.ReadDecimal(string.Format(prompt, 2)), - Base.Nullable.ReadDecimal(string.Format(prompt, 3)), - Base.Nullable.ReadDecimal(string.Format(prompt, 4)), - Base.Nullable.ReadDecimal(string.Format(prompt, 5)), - Base.Nullable.ReadDecimal(string.Format(prompt, 6))); + return TupleU.Of(BaseU.Nullable.ReadDecimal(string.Format(prompt, 0)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 1)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 2)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 3)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 4)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 5)), + BaseU.Nullable.ReadDecimal(string.Format(prompt, 6))); } #endregion - + #region ReadDouble? /// - /// Читает кортеж из двух значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Double?. /// /// Кортеж. public static Tuple ReadDoubleTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), - Base.Nullable.ReadDouble(string.Format(prompt, 1))); + return TupleU.Of(BaseU.Nullable.ReadDouble(string.Format(prompt, 0)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Double?. /// /// Кортеж. public static Tuple ReadDoubleTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), - Base.Nullable.ReadDouble(string.Format(prompt, 1)), - Base.Nullable.ReadDouble(string.Format(prompt, 2))); + return TupleU.Of(BaseU.Nullable.ReadDouble(string.Format(prompt, 0)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 1)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Double?. /// /// Кортеж. public static Tuple ReadDoubleTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), - Base.Nullable.ReadDouble(string.Format(prompt, 1)), - Base.Nullable.ReadDouble(string.Format(prompt, 2)), - Base.Nullable.ReadDouble(string.Format(prompt, 3))); + return TupleU.Of(BaseU.Nullable.ReadDouble(string.Format(prompt, 0)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 1)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 2)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Double?. /// /// Кортеж. public static Tuple ReadDoubleTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), - Base.Nullable.ReadDouble(string.Format(prompt, 1)), - Base.Nullable.ReadDouble(string.Format(prompt, 2)), - Base.Nullable.ReadDouble(string.Format(prompt, 3)), - Base.Nullable.ReadDouble(string.Format(prompt, 4))); + return TupleU.Of(BaseU.Nullable.ReadDouble(string.Format(prompt, 0)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 1)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 2)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 3)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Double?. /// /// Кортеж. public static Tuple ReadDoubleTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), - Base.Nullable.ReadDouble(string.Format(prompt, 1)), - Base.Nullable.ReadDouble(string.Format(prompt, 2)), - Base.Nullable.ReadDouble(string.Format(prompt, 3)), - Base.Nullable.ReadDouble(string.Format(prompt, 4)), - Base.Nullable.ReadDouble(string.Format(prompt, 5))); + return TupleU.Of(BaseU.Nullable.ReadDouble(string.Format(prompt, 0)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 1)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 2)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 3)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 4)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Double?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Double?. /// /// Кортеж. public static Tuple ReadDoubleTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadDouble(string.Format(prompt, 0)), - Base.Nullable.ReadDouble(string.Format(prompt, 1)), - Base.Nullable.ReadDouble(string.Format(prompt, 2)), - Base.Nullable.ReadDouble(string.Format(prompt, 3)), - Base.Nullable.ReadDouble(string.Format(prompt, 4)), - Base.Nullable.ReadDouble(string.Format(prompt, 5)), - Base.Nullable.ReadDouble(string.Format(prompt, 6))); + return TupleU.Of(BaseU.Nullable.ReadDouble(string.Format(prompt, 0)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 1)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 2)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 3)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 4)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 5)), + BaseU.Nullable.ReadDouble(string.Format(prompt, 6))); } #endregion - - #region ReadSingle? + + #region ReadInt16? /// - /// Читает кортеж из двух значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Int16?. /// /// Кортеж. - public static Tuple ReadSingleTuple2(string prompt = null) + public static Tuple ReadInt16Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), - Base.Nullable.ReadSingle(string.Format(prompt, 1))); + return TupleU.Of(BaseU.Nullable.ReadInt16(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Int16?. /// /// Кортеж. - public static Tuple ReadSingleTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), - Base.Nullable.ReadSingle(string.Format(prompt, 1)), - Base.Nullable.ReadSingle(string.Format(prompt, 2))); + return TupleU.Of(BaseU.Nullable.ReadInt16(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 1)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Int16?. /// /// Кортеж. - public static Tuple ReadSingleTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), - Base.Nullable.ReadSingle(string.Format(prompt, 1)), - Base.Nullable.ReadSingle(string.Format(prompt, 2)), - Base.Nullable.ReadSingle(string.Format(prompt, 3))); + return TupleU.Of(BaseU.Nullable.ReadInt16(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 1)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 2)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Int16?. /// /// Кортеж. - public static Tuple ReadSingleTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), - Base.Nullable.ReadSingle(string.Format(prompt, 1)), - Base.Nullable.ReadSingle(string.Format(prompt, 2)), - Base.Nullable.ReadSingle(string.Format(prompt, 3)), - Base.Nullable.ReadSingle(string.Format(prompt, 4))); + return TupleU.Of(BaseU.Nullable.ReadInt16(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 1)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 2)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 3)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Int16?. /// /// Кортеж. - public static Tuple ReadSingleTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), - Base.Nullable.ReadSingle(string.Format(prompt, 1)), - Base.Nullable.ReadSingle(string.Format(prompt, 2)), - Base.Nullable.ReadSingle(string.Format(prompt, 3)), - Base.Nullable.ReadSingle(string.Format(prompt, 4)), - Base.Nullable.ReadSingle(string.Format(prompt, 5))); + return TupleU.Of(BaseU.Nullable.ReadInt16(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 1)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 2)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 3)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 4)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Single?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Int16?. /// /// Кортеж. - public static Tuple ReadSingleTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt16Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadSingle(string.Format(prompt, 0)), - Base.Nullable.ReadSingle(string.Format(prompt, 1)), - Base.Nullable.ReadSingle(string.Format(prompt, 2)), - Base.Nullable.ReadSingle(string.Format(prompt, 3)), - Base.Nullable.ReadSingle(string.Format(prompt, 4)), - Base.Nullable.ReadSingle(string.Format(prompt, 5)), - Base.Nullable.ReadSingle(string.Format(prompt, 6))); + return TupleU.Of(BaseU.Nullable.ReadInt16(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 1)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 2)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 3)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 4)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 5)), + BaseU.Nullable.ReadInt16(string.Format(prompt, 6))); } #endregion - + #region ReadInt32? /// - /// Читает кортеж из двух значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Int32?. /// /// Кортеж. public static Tuple ReadInt32Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), - Base.Nullable.ReadInt32(string.Format(prompt, 1))); + return TupleU.Of(BaseU.Nullable.ReadInt32(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Int32?. /// /// Кортеж. public static Tuple ReadInt32Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), - Base.Nullable.ReadInt32(string.Format(prompt, 1)), - Base.Nullable.ReadInt32(string.Format(prompt, 2))); + return TupleU.Of(BaseU.Nullable.ReadInt32(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 1)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Int32?. /// /// Кортеж. public static Tuple ReadInt32Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), - Base.Nullable.ReadInt32(string.Format(prompt, 1)), - Base.Nullable.ReadInt32(string.Format(prompt, 2)), - Base.Nullable.ReadInt32(string.Format(prompt, 3))); + return TupleU.Of(BaseU.Nullable.ReadInt32(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 1)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 2)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Int32?. /// /// Кортеж. public static Tuple ReadInt32Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), - Base.Nullable.ReadInt32(string.Format(prompt, 1)), - Base.Nullable.ReadInt32(string.Format(prompt, 2)), - Base.Nullable.ReadInt32(string.Format(prompt, 3)), - Base.Nullable.ReadInt32(string.Format(prompt, 4))); + return TupleU.Of(BaseU.Nullable.ReadInt32(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 1)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 2)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 3)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Int32?. /// /// Кортеж. public static Tuple ReadInt32Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), - Base.Nullable.ReadInt32(string.Format(prompt, 1)), - Base.Nullable.ReadInt32(string.Format(prompt, 2)), - Base.Nullable.ReadInt32(string.Format(prompt, 3)), - Base.Nullable.ReadInt32(string.Format(prompt, 4)), - Base.Nullable.ReadInt32(string.Format(prompt, 5))); + return TupleU.Of(BaseU.Nullable.ReadInt32(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 1)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 2)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 3)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 4)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Int32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Int32?. /// /// Кортеж. public static Tuple ReadInt32Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt32(string.Format(prompt, 0)), - Base.Nullable.ReadInt32(string.Format(prompt, 1)), - Base.Nullable.ReadInt32(string.Format(prompt, 2)), - Base.Nullable.ReadInt32(string.Format(prompt, 3)), - Base.Nullable.ReadInt32(string.Format(prompt, 4)), - Base.Nullable.ReadInt32(string.Format(prompt, 5)), - Base.Nullable.ReadInt32(string.Format(prompt, 6))); + return TupleU.Of(BaseU.Nullable.ReadInt32(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 1)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 2)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 3)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 4)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 5)), + BaseU.Nullable.ReadInt32(string.Format(prompt, 6))); } #endregion - - #region ReadUInt32? + + #region ReadInt64? /// - /// Читает кортеж из двух значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Int64?. /// /// Кортеж. - public static Tuple ReadUInt32Tuple2(string prompt = null) + public static Tuple ReadInt64Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), - Base.Nullable.ReadUInt32(string.Format(prompt, 1))); + return TupleU.Of(BaseU.Nullable.ReadInt64(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Int64?. /// /// Кортеж. - public static Tuple ReadUInt32Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), - Base.Nullable.ReadUInt32(string.Format(prompt, 1)), - Base.Nullable.ReadUInt32(string.Format(prompt, 2))); + return TupleU.Of(BaseU.Nullable.ReadInt64(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 1)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Int64?. /// /// Кортеж. - public static Tuple ReadUInt32Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), - Base.Nullable.ReadUInt32(string.Format(prompt, 1)), - Base.Nullable.ReadUInt32(string.Format(prompt, 2)), - Base.Nullable.ReadUInt32(string.Format(prompt, 3))); + return TupleU.Of(BaseU.Nullable.ReadInt64(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 1)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 2)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Int64?. /// /// Кортеж. - public static Tuple ReadUInt32Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), - Base.Nullable.ReadUInt32(string.Format(prompt, 1)), - Base.Nullable.ReadUInt32(string.Format(prompt, 2)), - Base.Nullable.ReadUInt32(string.Format(prompt, 3)), - Base.Nullable.ReadUInt32(string.Format(prompt, 4))); + return TupleU.Of(BaseU.Nullable.ReadInt64(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 1)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 2)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 3)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Int64?. /// /// Кортеж. - public static Tuple ReadUInt32Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), - Base.Nullable.ReadUInt32(string.Format(prompt, 1)), - Base.Nullable.ReadUInt32(string.Format(prompt, 2)), - Base.Nullable.ReadUInt32(string.Format(prompt, 3)), - Base.Nullable.ReadUInt32(string.Format(prompt, 4)), - Base.Nullable.ReadUInt32(string.Format(prompt, 5))); + return TupleU.Of(BaseU.Nullable.ReadInt64(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 1)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 2)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 3)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 4)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа UInt32?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Int64?. /// /// Кортеж. - public static Tuple ReadUInt32Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadInt64Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt32(string.Format(prompt, 0)), - Base.Nullable.ReadUInt32(string.Format(prompt, 1)), - Base.Nullable.ReadUInt32(string.Format(prompt, 2)), - Base.Nullable.ReadUInt32(string.Format(prompt, 3)), - Base.Nullable.ReadUInt32(string.Format(prompt, 4)), - Base.Nullable.ReadUInt32(string.Format(prompt, 5)), - Base.Nullable.ReadUInt32(string.Format(prompt, 6))); + return TupleU.Of(BaseU.Nullable.ReadInt64(string.Format(prompt, 0)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 1)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 2)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 3)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 4)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 5)), + BaseU.Nullable.ReadInt64(string.Format(prompt, 6))); } #endregion - - #region ReadInt64? + + #region ReadSByte? /// - /// Читает кортеж из двух значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа SByte?. /// /// Кортеж. - public static Tuple ReadInt64Tuple2(string prompt = null) + public static Tuple ReadSByteTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), - Base.Nullable.ReadInt64(string.Format(prompt, 1))); + return TupleU.Of(BaseU.Nullable.ReadSByte(string.Format(prompt, 0)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа SByte?. /// /// Кортеж. - public static Tuple ReadInt64Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), - Base.Nullable.ReadInt64(string.Format(prompt, 1)), - Base.Nullable.ReadInt64(string.Format(prompt, 2))); + return TupleU.Of(BaseU.Nullable.ReadSByte(string.Format(prompt, 0)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 1)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа SByte?. /// /// Кортеж. - public static Tuple ReadInt64Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), - Base.Nullable.ReadInt64(string.Format(prompt, 1)), - Base.Nullable.ReadInt64(string.Format(prompt, 2)), - Base.Nullable.ReadInt64(string.Format(prompt, 3))); + return TupleU.Of(BaseU.Nullable.ReadSByte(string.Format(prompt, 0)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 1)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 2)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа SByte?. /// /// Кортеж. - public static Tuple ReadInt64Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), - Base.Nullable.ReadInt64(string.Format(prompt, 1)), - Base.Nullable.ReadInt64(string.Format(prompt, 2)), - Base.Nullable.ReadInt64(string.Format(prompt, 3)), - Base.Nullable.ReadInt64(string.Format(prompt, 4))); + return TupleU.Of(BaseU.Nullable.ReadSByte(string.Format(prompt, 0)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 1)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 2)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 3)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа SByte?. /// /// Кортеж. - public static Tuple ReadInt64Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), - Base.Nullable.ReadInt64(string.Format(prompt, 1)), - Base.Nullable.ReadInt64(string.Format(prompt, 2)), - Base.Nullable.ReadInt64(string.Format(prompt, 3)), - Base.Nullable.ReadInt64(string.Format(prompt, 4)), - Base.Nullable.ReadInt64(string.Format(prompt, 5))); + return TupleU.Of(BaseU.Nullable.ReadSByte(string.Format(prompt, 0)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 1)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 2)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 3)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 4)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Int64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа SByte?. /// /// Кортеж. - public static Tuple ReadInt64Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSByteTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt64(string.Format(prompt, 0)), - Base.Nullable.ReadInt64(string.Format(prompt, 1)), - Base.Nullable.ReadInt64(string.Format(prompt, 2)), - Base.Nullable.ReadInt64(string.Format(prompt, 3)), - Base.Nullable.ReadInt64(string.Format(prompt, 4)), - Base.Nullable.ReadInt64(string.Format(prompt, 5)), - Base.Nullable.ReadInt64(string.Format(prompt, 6))); + return TupleU.Of(BaseU.Nullable.ReadSByte(string.Format(prompt, 0)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 1)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 2)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 3)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 4)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 5)), + BaseU.Nullable.ReadSByte(string.Format(prompt, 6))); } #endregion - - #region ReadUInt64? + + #region ReadSingle? /// - /// Читает кортеж из двух значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа Single?. /// /// Кортеж. - public static Tuple ReadUInt64Tuple2(string prompt = null) + public static Tuple ReadSingleTuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), - Base.Nullable.ReadUInt64(string.Format(prompt, 1))); + return TupleU.Of(BaseU.Nullable.ReadSingle(string.Format(prompt, 0)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа Single?. /// /// Кортеж. - public static Tuple ReadUInt64Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), - Base.Nullable.ReadUInt64(string.Format(prompt, 1)), - Base.Nullable.ReadUInt64(string.Format(prompt, 2))); + return TupleU.Of(BaseU.Nullable.ReadSingle(string.Format(prompt, 0)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 1)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа Single?. /// /// Кортеж. - public static Tuple ReadUInt64Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), - Base.Nullable.ReadUInt64(string.Format(prompt, 1)), - Base.Nullable.ReadUInt64(string.Format(prompt, 2)), - Base.Nullable.ReadUInt64(string.Format(prompt, 3))); + return TupleU.Of(BaseU.Nullable.ReadSingle(string.Format(prompt, 0)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 1)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 2)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа Single?. /// /// Кортеж. - public static Tuple ReadUInt64Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), - Base.Nullable.ReadUInt64(string.Format(prompt, 1)), - Base.Nullable.ReadUInt64(string.Format(prompt, 2)), - Base.Nullable.ReadUInt64(string.Format(prompt, 3)), - Base.Nullable.ReadUInt64(string.Format(prompt, 4))); + return TupleU.Of(BaseU.Nullable.ReadSingle(string.Format(prompt, 0)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 1)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 2)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 3)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа Single?. /// /// Кортеж. - public static Tuple ReadUInt64Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), - Base.Nullable.ReadUInt64(string.Format(prompt, 1)), - Base.Nullable.ReadUInt64(string.Format(prompt, 2)), - Base.Nullable.ReadUInt64(string.Format(prompt, 3)), - Base.Nullable.ReadUInt64(string.Format(prompt, 4)), - Base.Nullable.ReadUInt64(string.Format(prompt, 5))); + return TupleU.Of(BaseU.Nullable.ReadSingle(string.Format(prompt, 0)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 1)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 2)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 3)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 4)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа UInt64?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа Single?. /// /// Кортеж. - public static Tuple ReadUInt64Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadSingleTuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt64(string.Format(prompt, 0)), - Base.Nullable.ReadUInt64(string.Format(prompt, 1)), - Base.Nullable.ReadUInt64(string.Format(prompt, 2)), - Base.Nullable.ReadUInt64(string.Format(prompt, 3)), - Base.Nullable.ReadUInt64(string.Format(prompt, 4)), - Base.Nullable.ReadUInt64(string.Format(prompt, 5)), - Base.Nullable.ReadUInt64(string.Format(prompt, 6))); + return TupleU.Of(BaseU.Nullable.ReadSingle(string.Format(prompt, 0)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 1)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 2)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 3)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 4)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 5)), + BaseU.Nullable.ReadSingle(string.Format(prompt, 6))); } - #endregion - - #region ReadInt16? + #region + + #endregion ReadUInt16? /// - /// Читает кортеж из двух значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа UInt16?. /// /// Кортеж. - public static Tuple ReadInt16Tuple2(string prompt = null) + public static Tuple ReadUInt16Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), - Base.Nullable.ReadInt16(string.Format(prompt, 1))); + return TupleU.Of(BaseU.Nullable.ReadUInt16(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа UInt16?. /// /// Кортеж. - public static Tuple ReadInt16Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt16Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), - Base.Nullable.ReadInt16(string.Format(prompt, 1)), - Base.Nullable.ReadInt16(string.Format(prompt, 2))); + return TupleU.Of(BaseU.Nullable.ReadUInt16(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 1)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа UInt16?. /// /// Кортеж. - public static Tuple ReadInt16Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt16Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), - Base.Nullable.ReadInt16(string.Format(prompt, 1)), - Base.Nullable.ReadInt16(string.Format(prompt, 2)), - Base.Nullable.ReadInt16(string.Format(prompt, 3))); + return TupleU.Of(BaseU.Nullable.ReadUInt16(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 1)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 2)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа UInt16?. /// /// Кортеж. - public static Tuple ReadInt16Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt16Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), - Base.Nullable.ReadInt16(string.Format(prompt, 1)), - Base.Nullable.ReadInt16(string.Format(prompt, 2)), - Base.Nullable.ReadInt16(string.Format(prompt, 3)), - Base.Nullable.ReadInt16(string.Format(prompt, 4))); + return TupleU.Of(BaseU.Nullable.ReadUInt16(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 1)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 2)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 3)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа UInt16?. /// /// Кортеж. - public static Tuple ReadInt16Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt16Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), - Base.Nullable.ReadInt16(string.Format(prompt, 1)), - Base.Nullable.ReadInt16(string.Format(prompt, 2)), - Base.Nullable.ReadInt16(string.Format(prompt, 3)), - Base.Nullable.ReadInt16(string.Format(prompt, 4)), - Base.Nullable.ReadInt16(string.Format(prompt, 5))); + return TupleU.Of(BaseU.Nullable.ReadUInt16(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 1)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 2)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 3)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 4)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа Int16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа UInt16?. /// /// Кортеж. - public static Tuple ReadInt16Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt16Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadInt16(string.Format(prompt, 0)), - Base.Nullable.ReadInt16(string.Format(prompt, 1)), - Base.Nullable.ReadInt16(string.Format(prompt, 2)), - Base.Nullable.ReadInt16(string.Format(prompt, 3)), - Base.Nullable.ReadInt16(string.Format(prompt, 4)), - Base.Nullable.ReadInt16(string.Format(prompt, 5)), - Base.Nullable.ReadInt16(string.Format(prompt, 6))); + return TupleU.Of(BaseU.Nullable.ReadUInt16(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 1)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 2)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 3)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 4)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 5)), + BaseU.Nullable.ReadUInt16(string.Format(prompt, 6))); } #endregion - - #region ReadUInt16? + + #region ReadUInt32? /// - /// Читает кортеж из двух значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа UInt32?. /// /// Кортеж. - public static Tuple ReadUInt16Tuple2(string prompt = null) + public static Tuple ReadUInt32Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), - Base.Nullable.ReadUInt16(string.Format(prompt, 1))); + return TupleU.Of(BaseU.Nullable.ReadUInt32(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа UInt32?. /// /// Кортеж. - public static Tuple ReadUInt16Tuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), - Base.Nullable.ReadUInt16(string.Format(prompt, 1)), - Base.Nullable.ReadUInt16(string.Format(prompt, 2))); + return TupleU.Of(BaseU.Nullable.ReadUInt32(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 1)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа UInt32?. /// /// Кортеж. - public static Tuple ReadUInt16Tuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), - Base.Nullable.ReadUInt16(string.Format(prompt, 1)), - Base.Nullable.ReadUInt16(string.Format(prompt, 2)), - Base.Nullable.ReadUInt16(string.Format(prompt, 3))); + return TupleU.Of(BaseU.Nullable.ReadUInt32(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 1)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 2)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа UInt32?. /// /// Кортеж. - public static Tuple ReadUInt16Tuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), - Base.Nullable.ReadUInt16(string.Format(prompt, 1)), - Base.Nullable.ReadUInt16(string.Format(prompt, 2)), - Base.Nullable.ReadUInt16(string.Format(prompt, 3)), - Base.Nullable.ReadUInt16(string.Format(prompt, 4))); + return TupleU.Of(BaseU.Nullable.ReadUInt32(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 1)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 2)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 3)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа UInt32?. /// /// Кортеж. - public static Tuple ReadUInt16Tuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), - Base.Nullable.ReadUInt16(string.Format(prompt, 1)), - Base.Nullable.ReadUInt16(string.Format(prompt, 2)), - Base.Nullable.ReadUInt16(string.Format(prompt, 3)), - Base.Nullable.ReadUInt16(string.Format(prompt, 4)), - Base.Nullable.ReadUInt16(string.Format(prompt, 5))); + return TupleU.Of(BaseU.Nullable.ReadUInt32(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 1)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 2)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 3)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 4)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа UInt16?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа UInt32?. /// /// Кортеж. - public static Tuple ReadUInt16Tuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt32Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadUInt16(string.Format(prompt, 0)), - Base.Nullable.ReadUInt16(string.Format(prompt, 1)), - Base.Nullable.ReadUInt16(string.Format(prompt, 2)), - Base.Nullable.ReadUInt16(string.Format(prompt, 3)), - Base.Nullable.ReadUInt16(string.Format(prompt, 4)), - Base.Nullable.ReadUInt16(string.Format(prompt, 5)), - Base.Nullable.ReadUInt16(string.Format(prompt, 6))); + return TupleU.Of(BaseU.Nullable.ReadUInt32(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 1)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 2)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 3)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 4)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 5)), + BaseU.Nullable.ReadUInt32(string.Format(prompt, 6))); } #endregion - - #region ReadBigInteger? + + #region ReadUInt64? /// - /// Читает кортеж из двух значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из двух значений типа UInt64?. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple2(string prompt = null) + public static Tuple ReadUInt64Tuple2(string prompt = null) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 1))); + return TupleU.Of(BaseU.Nullable.ReadUInt64(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 1))); } /// - /// Читает кортеж из трёх значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из трёх значений типа UInt64?. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple3(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple3(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 2))); + return TupleU.Of(BaseU.Nullable.ReadUInt64(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 1)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 2))); } /// - /// Читает кортеж из четырёх значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из четырёх значений типа UInt64?. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple4(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple4(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 2)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 3))); + return TupleU.Of(BaseU.Nullable.ReadUInt64(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 1)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 2)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 3))); } /// - /// Читает кортеж из пяти значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из пяти значений типа UInt64?. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple5(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple5(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 2)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 3)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 4))); + return TupleU.Of(BaseU.Nullable.ReadUInt64(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 1)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 2)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 3)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 4))); } /// - /// Читает кортеж из шести значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из шести значений типа UInt64?. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple6(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple6(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 2)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 3)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 4)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 5))); + return TupleU.Of(BaseU.Nullable.ReadUInt64(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 1)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 2)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 3)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 4)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 5))); } /// - /// Читает кортеж из семи значений типа BigInteger?. [Не работает при запуске из под оболочки в IDE PascalABC.NET.] + /// Читает кортеж из семи значений типа UInt64?. /// /// Кортеж. - public static Tuple ReadBigIntegerTuple7(string prompt = EmptyStringHelper.Empty) + public static Tuple ReadUInt64Tuple7(string prompt = EmptyStringHelper.Empty) { prompt = prompt ?? EmptyStringHelper.Empty; - return Tuple.Of(Base.Nullable.ReadBigInteger(string.Format(prompt, 0)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 1)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 2)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 3)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 4)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 5)), - Base.Nullable.ReadBigInteger(string.Format(prompt, 6))); + return TupleU.Of(BaseU.Nullable.ReadUInt64(string.Format(prompt, 0)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 1)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 2)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 3)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 4)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 5)), + BaseU.Nullable.ReadUInt64(string.Format(prompt, 6))); } #endregion @@ -1294,4 +1294,4 @@ public static partial class Nullable } } -} +} \ No newline at end of file From b5c626cf033e008a0a0ed02a94271519eb407e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Wed, 10 Jun 2020 14:08:39 +0700 Subject: [PATCH 101/102] Some changes --- TestProgram/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TestProgram/Program.cs b/TestProgram/Program.cs index b185141..8546b35 100644 --- a/TestProgram/Program.cs +++ b/TestProgram/Program.cs @@ -8,11 +8,11 @@ internal static class Program { private static void Main(string[] args) { - /*var t = Tuple.By7(1, x => x * 2); + /*var t = TupleU.By7(1, x => x * 2); t.PrintLine(); - Array.Of(1, 2); + ArrayU.Of(1, 2); "Hell".PrintLine(); - //Matr.ReadInt32(Base.ReadInt32("N:"), Base.ReadInt32("M:"), "Элемент ({0}, {1})-ый:").Count().Numerate().MaxBy(x => x.Item).Index.Println();*/ + //Matr.ReadInt32(BaseU.ReadInt32("N:"), BaseU.ReadInt32("M:"), "Элемент ({0}, {1})-ый:").Count().Numerate().MaxBy(x => x.Item).Index.Println();*/ Console.WriteLine(string.Format("kjlsgri", "jg")); Console.ReadLine(); } From 50c7fcf399d226c896d5b8b8a0c3ae12b417d153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=97=D0=B0=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BA=D0=B8=D0=BD?= Date: Wed, 10 Jun 2020 15:20:22 +0700 Subject: [PATCH 102/102] Little optimization and adding IsBetween() overload --- .../Extensions/BaseE.Other.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/NETMouse - .NET release/Extensions/BaseE.Other.cs b/NETMouse - .NET release/Extensions/BaseE.Other.cs index ff64e4b..35cd0c0 100644 --- a/NETMouse - .NET release/Extensions/BaseE.Other.cs +++ b/NETMouse - .NET release/Extensions/BaseE.Other.cs @@ -18,10 +18,24 @@ public static partial class BaseE public static bool IsBetween(this int target, int firstBorder, int secondBorder) { if (firstBorder > secondBorder) - Utils.BaseU.Swap(ref firstBorder, ref secondBorder); + return (target >= secondBorder) && (target <= firstBorder); return (target >= firstBorder) && (target <= secondBorder); } + /// + /// Проверяет лежит ли число между другими двумя. + /// + /// Число. + /// Первая граница. + /// Вторая граница. + /// Результат. + public static bool IsBetween(this int target, int firstBorder, bool equalsFirst, int secondBorder, bool equalsSecond) + { + if (firstBorder > secondBorder) + return (target > secondBorder || (equalsSecond && target == secondBorder)) && (target < firstBorder || (equalsFirst && target == firstBorder)); + return (target > firstBorder || (equalsFirst && target == firstBorder)) && (target < secondBorder || (equalsSecond && target == secondBorder)); + } + #endregion public }