... | ... | @@ -15,7 +15,7 @@ |
|
|
result = Int32.Parse(s4); //-- OverflowException
|
|
|
```
|
|
|
**2. Convert.ToInt32(string)**
|
|
|
When s is a null reference, it will return 0 rather than throw ArgumentNullException.
|
|
|
null reference일 때, ArgumentNullException throw하는 대신에 0을 반환한다.
|
|
|
``` cs
|
|
|
result = Convert.ToInt32(s1); //-- 1234
|
|
|
result = Convert.ToInt32(s2); //-- FormatException
|
... | ... | @@ -34,8 +34,8 @@ When s is a null reference, it will return 0 rather than throw ArgumentNullExcep |
|
|
1. 캡쳐되는 변수를 reference 하는 delegate가 있다면 garbage-collect 되지 않는다.
|
|
|
2. lambda expression에 사용되는 변수는 outer method에 표시되지 않는다.
|
|
|
3. lambda expression에서는 ref, out parameter를 사용할 수 없다.
|
|
|
4. A return statement in a lambda expression does not cause the enclosing method to return
|
|
|
5. A lambda expression cannot contain a goto statement, break statement, or continue statement that is inside the lambda function if the jump statement’s target is outside the block. It is also an error to have a jump statement outside the lambda function block if the target is inside the block.
|
|
|
4. lambda expression에서 사용하는 return statement는 lambda expression을 포함하고 있는 method를 return시킬 수 없다.
|
|
|
5. lambda expression에서 jump statement's의 target이 lambda expression block 밖에 있는 goto statement, break statement, continue statement를 포함할 수 없다.
|
|
|
|
|
|
### FileStream
|
|
|
* **binary writer vs stream writer**
|
... | ... | |