We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 948e2c7 commit 4a2f4b2Copy full SHA for 4a2f4b2
1 file changed
src/absil/ilreflect.fs
@@ -616,14 +616,16 @@ let convFieldInit x =
616
// it isn't we resort to this technique...
617
let TypeBuilderInstantiationT =
618
let ty =
619
- Type.GetType("System.Reflection.Emit.TypeBuilderInstantiation")
620
#if ENABLE_MONO_SUPPORT
621
- let ty =
622
- if runningOnMono && (isNull ty) then
623
- Type.GetType("System.Reflection.MonoGenericClass")
+ if runningOnMono then
+ let ty = Type.GetType("System.Reflection.MonoGenericClass")
+ match ty with
+ | null -> Type.GetType("System.Reflection.Emit.TypeBuilderInstantiation")
624
+ | _ -> ty
625
else
- ty
626
#endif
627
+ Type.GetType("System.Reflection.Emit.TypeBuilderInstantiation")
628
+
629
assert (not (isNull ty))
630
ty
631
0 commit comments