throw new InvalidOperationException ();
}
- public override extern Type ReflectedType {
- [MethodImplAttribute(MethodImplOptions.InternalCall)]
- get;
- }
}
[Serializable]
// this should not be used
throw new InvalidOperationException ();
}
-
- public override extern Type ReflectedType {
- [MethodImplAttribute(MethodImplOptions.InternalCall)]
- get;
- }
}
}
ICALL(MFIELD_4, "SetValueInternal", ves_icall_MonoField_SetValueInternal)
ICALL(MFIELD_7, "get_core_clr_security_level", ves_icall_MonoField_get_core_clr_security_level)
-ICALL_TYPE(MGENCM, "System.Reflection.MonoGenericCMethod", MGENCM_1)
-ICALL(MGENCM_1, "get_ReflectedType", ves_icall_MonoGenericMethod_get_ReflectedType)
-
ICALL_TYPE(MGENCL, "System.Reflection.MonoGenericClass", MGENCL_5)
ICALL(MGENCL_5, "initialize", mono_reflection_generic_class_initialize)
ICALL(MGENCL_6, "register_with_runtime", mono_reflection_register_with_runtime)
-/* note this is the same as above: unify */
-ICALL_TYPE(MGENM, "System.Reflection.MonoGenericMethod", MGENM_1)
-ICALL(MGENM_1, "get_ReflectedType", ves_icall_MonoGenericMethod_get_ReflectedType)
-
ICALL_TYPE(MMETH, "System.Reflection.MonoMethod", MMETH_2)
ICALL(MMETH_2, "GetGenericArguments", ves_icall_MonoMethod_GetGenericArguments)
ICALL(MMETH_3, "GetGenericMethodDefinition_impl", ves_icall_MonoMethod_GetGenericMethodDefinition)
return mono_type_get_object (mono_object_domain (ref_field), type);
}
-ICALL_EXPORT MonoReflectionType*
-ves_icall_MonoGenericMethod_get_ReflectedType (MonoReflectionGenericMethod *rmethod)
-{
- MonoMethod *method = rmethod->method.method;
-
- return mono_type_get_object (mono_object_domain (rmethod), &method->klass->byval_arg);
-}
-
/* From MonoProperty.cs */
typedef enum {
PInfo_Attributes = 1,
if (method->is_inflated) {
MonoReflectionGenericMethod *gret;
- refclass = method->klass;
+ if (!refclass)
+ refclass = method->klass;
CHECK_OBJECT (MonoReflectionMethod *, method, refclass);
if ((*method->name == '.') && (!strcmp (method->name, ".ctor") || !strcmp (method->name, ".cctor"))) {
if (!System_Reflection_MonoGenericCMethod)