tailieunhanh - C# 2005 Programmer’s Reference - Chapter 7
Tham khảo tài liệu 'c# 2005 programmer’s reference - chapter 7', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chapter 7 is as I A expressions Compound assignment expressions Checked expressions Unchecked expressions Array Delegate creation expressions Rules for Expressions Next we ll look at an expression expr of the form expr-first expr-second The definite assignment state of v before expr-first will be the same as the definite assignment state of v before expr. The definite assignment state of v before expr-second will be definitely assigned if the state of v after expr-first is either definitely assigned or definitely assigned after a true expression. Otherwise it will not be definitely assigned. The definite assignment state of v after expr is determined by If the state of v after expr-first is definitely assigned the state of v after expr is also definitely assigned. Otherwise if the state of v after expr-second is definitely assigned and the state of v after expr-first is definitely assigned after false expression the state of v after expr is definitely assigned. Otherwise if the state of v after expr-second is definitely assigned or definitely assigned after a true expression the state of v after expr is definitely assigned after true expression. 96 Variables Otherwise if the state of v after expr-first is definitely assigned after false expression and the state of v after expr-second is definitely assigned after false expression the state of v after expr is definitely assigned after a false expression. Otherwise the state of v after expr is not definitely assigned. Rules for II Expressions Next we ll look at an expression expr of the form expr-first expr-second The definite assignment state of v before expr-first will be the same as the definite assignment state of v before expr. The definite assignment state of v before expr-second will be definitely assigned if the state of vafter expr-first is either definitely assigned or definitely assigned after a false expression. Otherwise it will not be definitely assigned. The definite assignment state of v after expr is
đang nạp các trang xem trước