Ben F # Aşağıdaki C# arabirimini uygulamak istiyoruz:F # C# arabirimi nasıl uygulanır?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mono.Addins;
[TypeExtensionPoint]
public interface ISparqlCommand
{
string Name { get; }
object Run(Dictionary<string, string> NamespacesDictionary, org.openrdf.repository.Repository repository, params object[] argsRest);
}
Bu ne denedim, ama bana verir: "Eksik yapılı yapısını veya ifadede bu noktada daha önce"
#light
module Module1
open System
open System.Collections.Generic;
type MyClass() =
interface ISparqlCommand with
member this.Name =
"Finding the path between two tops in the Graph"
member this.Run(NamespacesDictionary, repository, argsRest) =
new System.Object
Neyi yanlış yapıyorum? Belki girinti yanlış?
Belki sadece eksik parens Mono.Addins nasıl kullanılacağına bir örnektir? –
C# arabirimi nedir? C# 'da bir CLR arayüzü tanımladınız. –