Skip to content

Commit cb07447

Browse files
Add "Math/DynamicIncrement"
1 parent ceb5e41 commit cb07447

File tree

6 files changed

+50
-0
lines changed

6 files changed

+50
-0
lines changed

en/Math/DynamicIncrement-P.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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)

en/Math/DynamicIncrement-S.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# “DynamicIncrement” (Solution)
2+
3+
## Answer
4+
5+
```
6+
System.Byte
7+
System.Int32
8+
```
9+
10+
[Problem](./DynamicIncrement-P.md)

en/SUMMARY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
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)
@@ -70,6 +71,7 @@
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)

ru/Math/DynamicIncrement-P.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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)

ru/Math/DynamicIncrement-S.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# «DynamicIncrement» (Решение)
2+
3+
## Ответ
4+
5+
```
6+
System.Byte
7+
System.Int32
8+
```
9+
10+
[Задача](./DynamicIncrement-P.md)

ru/SUMMARY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
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)
@@ -70,6 +71,7 @@
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)

0 commit comments

Comments
 (0)