static void Main(string[] args) { dynamic obj = new SampleObject(); Console.WriteLine(obj.SomeProperty); }