var vals = new List<int> { 1, 2, 3, 4, 5, 6, 0,11 };
var res = vals.Select(e => 
  {
    try
    {
      return (e => 2000/e));
    }
    catch(Exception)
    {
      return 0;
    }
  });var vals = new List<int> { 1, 2, 3, 4, 5, 6, 0, 11 };
var res = vals.Select(e => e == 0 ? 0 : 2000 / e);      
  
  
  
  var password = ValuePass.Text;
            var regex = new Regex(@"([a - z])");
            var regex2 = new Regex(@"([a-zA-Z])");
            var regex1 = new Regex(@"([0 - 9])");
            var regex3 = new Regex(@"([!,@,#,$,%,^,&,*,?,_,~])");
            if (password.Length >= 8 && regex1.IsMatch(password) && regex2.IsMatch(password) && regex3.IsMatch(password))
            {
                resultValue.Text = "4 уровень";
                return;
            }
            if (password.Length >= 8 &&  regex1.IsMatch(password) && regex2.IsMatch(password))
            {
                resultValue.Text = "3 уровень";
                return;
            }
            if (password.Length >= 8 && regex2.IsMatch(password))
            {
                resultValue.Text = "2 уровень";
                return;
            }
            if (password.Length < 8 && regex.IsMatch(password))
            {
                resultValue.Text = "1 уровень";
                return;
            }var password = ValuePass.Text;
            var regex = new Regex(@"([a - z])");
            if (password.Length < 8 && regex.IsMatch(password))
            {
                resultValue.Text = "1 уровень";
            }
            var regex2 = new Regex(@"([a-zA-Z])");
            if (password.Length >= 8 && regex2.IsMatch(password))
            {
                resultValue.Text = "2 уровень";
            }
            var regex1 = new Regex(@"([0 - 9])");
            if (password.Length >= 8 &&  regex1.IsMatch(password) && regex2.IsMatch(password))
            {
                resultValue.Text = "3 уровень";
            }
            var regex3 = new Regex(@"([!,@,#,$,%,^,&,*,?,_,~])");
            if (password.Length >= 8 && regex1.IsMatch(password) && regex2.IsMatch(password) && regex3.IsMatch(password))
            {
                resultValue.Text = "4 уровень";
            }
            return;      
  
  /// <summary>
	/// Базовый класс для всех классов модели приложения
	/// </summary>
	public abstract class BaseEntity
    {
        /// <inheritdoc />
        /// <summary>
        /// Идентификатор
        /// </summary>
        [Key]
        public virtual long Id { get; set; }
        /// <inheritdoc />
        /// <summary>
        /// Дата занесения записи
        /// </summary>
        public DateTime CreatedOn { get; set; } = DateTime.Now;
        /// <summary>
        /// Дата модификации записи
        /// </summary>
        public DateTime UpdatedOn { get; set; } = DateTime.Now;
        /// <inheritdoc />
        /// <summary>
        /// Активен
        /// </summary>
        [DefaultValue(true)]
        public bool Active { get; set; } = true;
        /// <inheritdoc />
        /// <summary>
        /// Удален
        /// </summary>
        [DefaultValue(false)]
        public bool Deleted { get; set; }
    }      
  
  var menuPics = document.QuerySelectorAll("img.imgClass")
    .Select(el => el.GetAttribute("src")).ToArray();      
  
  public class Service : EntityBase
    {
[Required]
        public Guid Id { get; set; }
        [Required]
        [Display(Name = "Название")]
        public override string H1 { get; set; }
        [Display(Name = "Категория")]
        public virtual Category ParentCategory { get; set; }
    }dataManager.Services.GetAll().Include(x => x.ParentCategory).FirstOrDefault(x => x.Id ==id);
  
  int x = 123;
//Целая часть при делении, то есть ответ будет 1
 int a = x / 100;
            
Console.WriteLine(a);//1
//В скобках берем целую часть, то есть 12 и от 12 получаем остаток, то есть 2
 int b = (x / 10) % 10;
Console.WriteLine(b);//2
//Остаток от деления, то есть 3
int c = x % 10;
            
Console.WriteLine(c);//3
Console.ReadKey();
  
  public ActionResult Edit(string number)
		{
			number = number.ToString().Replace(".",",");
			return View();
		}      
  
  Console.WriteLine("Нажмите Y или N");
string selection = Console.ReadLine();
switch (selection)
{
    case "Y":
        Console.WriteLine("Вы нажали букву Y");
        break;
    case "N":
        Console.WriteLine("Вы нажали букву N");
        break;
    default:
        Console.WriteLine("Вы нажали неизвестную букву");
        break;
}      
  
  mounted(){
axios.post("/Home/GetList", null).then(resp =>{
this.list = resp.data;
});
}public JsonResult GetList(){
var res = db.TableList.GetAll();
return Json(res);
}
  
  public class Customer
    {
        private string name;
        private int age;
        public int Id { get; set; }
        public string Name
        {
            set
            {
                if (name != null)
                {
                    Console.WriteLine("Поле уже заполнено " + name);
                }
                else
                {
                    name = value;
                }
            }
            get { return name; }         
        }
        public int Age
        {
            get { return age; }
            set
            {
                if (age != 0)
                {
                    Console.WriteLine("Поле уже заполнено " + age);
                }
                else
                {
                    age = value;
                }
            }
        }
        public Address[] Addresses { get; set; }
        public Job[] Jobs { get; set; }
    }