public DateTime MemberAccessWithFastMember_TypeAccessor() { var obj = new PropsOnClass { A = 123, B = "abc", C = DateTime.Now, D = null }; var accessor = TypeAccessor.Create(typeof(PropsOnClass)); return((DateTime)accessor[obj, "C"]); }
public DateTime MemberAccessWithFastMember_ObjectAccessor() { var obj = new PropsOnClass { A = 123, B = "abc", C = DateTime.Now, D = null }; var accessor = ObjectAccessor.Create(obj); return((DateTime)accessor["C"]); }
public DateTime MemberAccessWithReflection() { var obj = new PropsOnClass { A = 123, B = "abc", C = DateTime.Now, D = null }; return((DateTime)typeof(PropsOnClass).GetProperty("C") .GetValue(obj)); }