8

Does anyone know what type providers are available on tryfsharp.org?

For example, I know that a CsvFile type provider is available by referencing:

#r "Samples.Csv.dll"

Additionally, there are:

#r "Samples.Hadoop.TypeProviders.dll"
#r "Samples.DataStore.Freebase.dll"

But what others can be used? It would be cool if an XML or JSON type provider were available. I can't seem to find any documentation on what dll's can be referenced in a script on tryfsharp.org.

Anyone have additional information on the matter?

4

1 回答 1

9

您注意到的都是 TryFSharp.org 的“学习”部分的一部分。我发现发现这些的最好方法是浏览教程。

Hadoop

#r "Samples.Hadoop.TypeProviders.dll"

游离碱

#r "Samples.DataStore.Freebase.dll"

CSV

#r "Samples.Csv.dll"

天蓝色

#r "System.Data.Services.Client"
#r "Samples.WindowsAzure.Marketplace"

世界银行

#r "Samples.WorldBank.dll"

Excel.WorksheetTable

#r "Samples.Excel.WorksheetTable.dll"

几个非类型提供者(我可能错过了一些):

MathNet.数值

#r "MathNet.Numerics.dll"

MathNet.Numerics.Fsharp

#r "MathNet.Numerics.FSharp.dll"

TryFSharp.org 的浏览器 API

open TryFSharp
Canvas.Show()
Canvas.Clear()

Canvas.SetContent "<h1>Try F# interop</h1>Try F# interop rocks!"

Canvas.RunJavaScript "document.getElementsByTagName('h1')[0].innerHTML = 'New title!'"

let raphaelUndefined = Canvas.RunJavaScript "(typeof dojo === 'undefined')"
if raphaelUndefined :?> bool then
    Canvas.LoadScript "http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"

(对于这个请注意Canvas.LoadScript它允许您加载 javascript)

不是需要加载的文件,但还有:

Samples.Charting.DojoChart

open Samples.Charting.DojoChart

于 2013-03-21T19:15:18.820 回答