Article / Updated 02-01-2018
When you define a new variable, you can use the dynamic keyword, and C# will let you make assumptions about the members of the variable. For example, if you want to declare a new Course object, you do it like this:Course newCourse = new Course();newCourse.Schedule();This is, of course, assuming that you have a Course class defined somewhere else in your program, like this:class Course {public void Schedule(){//Something fancy here}}But what if you don't know what class the new object will be?