open Mono.Cecil

let resolver = new DefaultAssemblyResolver()
let assembly_load fullname = 
resolver.Resolve(AssemblyNameReference.Parse(fullname)).MainModule
let mscorlib = assembly_load "mscorlib"
let fsharp_core = assembly_load "FSharp.Core, Version=4.4.0.0, 
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

let bool = mscorlib.GetType("System.Boolean")
let ops = fsharp_core.GetType("Microsoft.FSharp.Core.Operators")
let isNull =
    ops.Methods
    |> Seq.find (fun x -> x.Name = "IsNull")

isNull.ReturnType.Resolve() = bool // false
// Is there any way to make this resolve to the same type?

---

Since I am using types in dictionaries, I need the equality to be firm. I 
am nearly done with rewriting the interop module to use Mono.Cecil and 
above is the last hurdle before I can get it to work.

-- 
-- 
--
mono-cecil
--- 
You received this message because you are subscribed to the Google Groups 
"mono-cecil" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to