File tree Expand file tree Collapse file tree 6 files changed +50
-0
lines changed
Expand file tree Collapse file tree 6 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ # “DynamicIncrement” (Problem)
2+
3+ What will the following code display?
4+
5+ ``` cs
6+ byte foo = 1 ;
7+ dynamic bar = foo ;
8+ Console .WriteLine (bar .GetType ());
9+ bar += foo ;
10+ Console .WriteLine (bar .GetType ());
11+ ```
12+
13+ [ Solution] ( ./DynamicIncrement-S.md )
Original file line number Diff line number Diff line change 1+ # “DynamicIncrement” (Solution)
2+
3+ ## Answer
4+
5+ ```
6+ System.Byte
7+ System.Int32
8+ ```
9+
10+ [ Problem] ( ./DynamicIncrement-P.md )
Original file line number Diff line number Diff line change 2424 * [ DivideByZero] ( Math/DivideByZero-P.md )
2525 * [ Overflow] ( Math/Overflow-P.md )
2626 * [ AugmentedAssignment] ( Math/AugmentedAssignment-P.md )
27+ * [ DynamicIncrement] ( Math/DynamicIncrement-P.md )
2728* [ Value types (Problems)] ( ValueTypes/README-P.md )
2829 * [ Boxing] ( ValueTypes/Boxing-P.md )
2930 * [ MutableProperty] ( ValueTypes/MutableProperty-P.md )
7071 * [ DivideByZero] ( Math/DivideByZero-S.md )
7172 * [ Overflow] ( Math/Overflow-S.md )
7273 * [ AugmentedAssignment] ( Math/AugmentedAssignment-S.md )
74+ * [ DynamicIncrement] ( Math/DynamicIncrement-S.md )
7375* [ Value types (Solutions)] ( ValueTypes/README-S.md )
7476 * [ Boxing] ( ValueTypes/Boxing-S.md )
7577 * [ MutableProperty] ( ValueTypes/MutableProperty-S.md )
Original file line number Diff line number Diff line change 1+ # «DynamicIncrement» (Задача)
2+
3+ Что выведет следующий код?
4+
5+ ``` cs
6+ byte foo = 1 ;
7+ dynamic bar = foo ;
8+ Console .WriteLine (bar .GetType ());
9+ bar += foo ;
10+ Console .WriteLine (bar .GetType ());
11+ ```
12+
13+ [ Решение] ( ./DynamicIncrement-S.md )
Original file line number Diff line number Diff line change 1+ # «DynamicIncrement» (Решение)
2+
3+ ## Ответ
4+
5+ ```
6+ System.Byte
7+ System.Int32
8+ ```
9+
10+ [ Задача] ( ./DynamicIncrement-P.md )
Original file line number Diff line number Diff line change 2424 * [ DivideByZero] ( Math/DivideByZero-P.md )
2525 * [ Overflow] ( Math/Overflow-P.md )
2626 * [ AugmentedAssignment] ( Math/AugmentedAssignment-P.md )
27+ * [ DynamicIncrement] ( Math/DynamicIncrement-P.md )
2728* [ Значимые типы (Задачи)] ( ValueTypes/README-P.md )
2829 * [ Boxing] ( ValueTypes/Boxing-P.md )
2930 * [ MutableProperty] ( ValueTypes/MutableProperty-P.md )
7071 * [ DivideByZero] ( Math/DivideByZero-S.md )
7172 * [ Overflow] ( Math/Overflow-S.md )
7273 * [ AugmentedAssignment] ( Math/AugmentedAssignment-S.md )
74+ * [ DynamicIncrement] ( Math/DynamicIncrement-S.md )
7375* [ Значимые типы (Решения)] ( ValueTypes/README-S.md )
7476 * [ Boxing] ( ValueTypes/Boxing-S.md )
7577 * [ MutableProperty] ( ValueTypes/MutableProperty-S.md )
You can’t perform that action at this time.
0 commit comments