Get type descriptions in F # Interactive?

Can I get FSI.exe, the F # Interactive tool, to describe the type for me? In other words, there is a type that I know how to access (in particular, IExpression in the Infer.NET library), but I don’t know what methods it provides. I hope that I can use fsi to get a description of the available methods, properties, etc.

Can this be done, or is there a better way to do this? Unfortunately, I do not have Visual Studio, since I used this information ...

Thanks Nels

+3
source share
1 answer

, "", , . .NET , . :

typeof<System.String>.GetMethods()

, MethodInfo String. .

:

let showMethods(t:System.Type) =
  t.GetMethods() |> Seq.iter (printfn "%A")
+4

Source: https://habr.com/ru/post/1752298/


All Articles