Hi,

you can use the .NET reflection API to discover methods at runtime and invoke them. A small example:

[link:snipt.org]

If you need reflection on F#-specific types (tuples, unions, functions...) you would use stuff from the Microsoft.FSharp.Reflection namespace.

BTW, I also happen to know Oz quite well. If you are used to dynamic language features, you may find that F# is quite good in that area, too (for a statically typed language). When e.g. you would create a class in a function in Oz, you might use "object expressions" in F#.

By on 9/14/2010 6:53 AM ()
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