private static MethodInfo Accessor(PropertyInfo p, SetOrGet gos) { return gos == SetOrGet.Get ? p.GetGetMethod(true) : p.GetSetMethod(true); }