White =Red | Yellow | Blue
private static void PrintPersonInfo((string, int)person)
Console.WriteLine("Имя: {0}, Возраст: {1}",person.Item1,person.Item2);
private static (string, string) GetUser(string login,string password)
var user = (login,password);
private static (int sum, int count) GetArrayData(int[] numbers)
var result = (sum: 0, count: numbers.Length);
for (int i = 0; i < numbers.Length; i++)
result.sum += numbers[i];
static void Main(string[] args)
PrintPersonInfo(("Vald", 17));
var user = GetUser("guest","12345");
Console.WriteLine(user.Item1);
Console.WriteLine(user.Item2);
var tuple = GetArrayData(new int[] { 2, 4, 6, 8, 9, 0 });
Console.WriteLine("Количество элементов : {0}, их сумма = {1}",tuple.count,tuple.sum);
SummerMonth month = SummerMonth.August;
Color orange = Color.Red | Color.Yellow;
Season season = (Season)2;
int monthValue = (int)month;
int colorValue = (int)orange;
for (int i = 0; i < 8; i++)
Console.WriteLine("Значение счетчика:{0}, Значение Color:{1}",i,(Color)i);
for (Color i = Color.Balck; i < Color.White; i++)