17
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
dynamic number = 123;
8
number = number + 456;
9
Console.WriteLine($"Value: {number}\tType: {number.GetType()}");
10
11
number = "a string";
12
Console.WriteLine($"Value: {number}\tType: {number.GetType()}");
13
14
number = number - 1;
15
16
}
17
}
Cached Result