The CLR name for nested types uses "+", e.g. "MyMod+MyClass". Stuff like "GenericType`2" is also CLR.

The commented code below is suggestive of F# control.

There's also an example of an easy way to find out the CLR name.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
 

//[<CompilationRepresentationAttribute(CompilationRepresentationFlags.ModuleSuffix)>]
module MyMod

type MyClass() = class end

let t = System.Reflection.Assembly.GetExecutingAssembly().GetType("MyMod+MyClass")
printfn "%A" t

let u = typeof<MyClass>
printfn "%s" u.FullName 

By on 11/14/2009 4:50 PM ()

> The CLR name for nested types uses "+"

[slap on the forehead] Duh... :)

thanks

By on 11/14/2009 6:07 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper