We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e2d40f commit 0c57262Copy full SHA for 0c57262
dynamic_Deep_Dive/02-Intermediate/Medium.cs
@@ -34,6 +34,11 @@ public static void Run()
34
user.SayHi = new Action(() => Console.WriteLine("Hi from Sam!"));
35
user.SayHi();
36
37
+ // Calling methods that may or may not exist
38
+
39
+ dynamic maybe = new { Message = "I exist!" };
40
+ // Will throw RuntimeBinderException if method does not exist
41
+ Console.WriteLine(maybe.Message);
42
43
#endregion
44
}
0 commit comments