We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf36ff15 commit2f76f88Copy full SHA for 2f76f88
src/absil/ilreflect.fs
@@ -668,7 +668,14 @@ let rec convAttribElem cenv emEnv = function
668
// This is gross. TypeBuilderInstantiation should really be a public type, since we
669
// have to use alternative means for various Method/Field/Constructor lookups. However since
670
// it isn't we resort to this technique...
671
-letTypeBuilderInstantiationT= Type.GetType("System.Reflection.Emit.TypeBuilderInstantiation")
+letTypeBuilderInstantiationT=
672
+letty=
673
+if runningOnMonothen
674
+ Type.GetType("System.Reflection.MonoGenericClass")
675
+else
676
+ Type.GetType("System.Reflection.Emit.TypeBuilderInstantiation")
677
+assert(not(isNull ty))
678
+ ty
679
680
lettypeIsNotQueryable(typ:Type)=
681
(typ:? TypeBuilder)||((typ.GetType()).Equals(TypeBuilderInstantiationT))