private bool Bool1;public bool Bool2{ get => Bool1; if (a = 1) { set => Bool2 = true; } else { set => Bool2 = false; }}