Как реализовать интерфейс C # в F #?

Я хотел бы реализовать следующий интерфейс C # в F #:

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);
}   

Это то, что я пробовал, но он дает мне: «Неполная структурированная конструкция в этой точке выражения или до нее»

#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

Что я делаю не так? Может быть, отступ неверен?

7
задан Anton Andreev 29 December 2010 в 17:48
поделиться