private static DynamicMethod CreateDynamicSetMethod(Type type) { return new DynamicMethod("DynamicSet", typeof(void), new[] {typeof(object), typeof(object)}, type, true); }