> For the complete documentation index, see [llms.txt](https://andreyakinshin.gitbook.io/problembookdotnet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://andreyakinshin.gitbook.io/problembookdotnet/en/math/dynamicincrement-p.md).

# “DynamicIncrement” (Problem)

What will the following code display?

```csharp
byte foo = 1;
dynamic bar = foo;
Console.WriteLine(bar.GetType());
bar += foo;
Console.WriteLine(bar.GetType());
```

[Solution](/problembookdotnet/en/math/dynamicincrement-s.md)
