Fastest way for Get Value of a property (Reflection) in C#
问题 I want to know what is fastest way to get value (only for this problem) from an object`s property ? after some searching I saw a post from @MarkGravell in this site He wrote this code : using System; using System.Reflection; using System.Reflection.Emit; public class Foo { public Foo(int bar) { Bar = bar; } private int Bar { get; set; } } static class Program { static void Main() { var method = new DynamicMethod("cheat", typeof(int), new[] { typeof(object) }, typeof(Foo), true); var il =