I\'m working with an api that requires a value of type Func. (Specifically, I\'m trying to call ModelMetadataProviders.Current.GetMetadataForType().
How can I construct
You can normally pass in any () -> obj and it will be automatically converted to Func. You may need to wrap your fun with Func:
() -> obj
Func
fun
> let d : Func = Func(fun () -> box "hello");; val d : Func