me gustaría poner en práctica el siguiente # interfaz de C en C#:¿Cómo implementar una interfaz C# en 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);
}
Esto es lo que he intentado, pero me da: "constructo estructurado incompleto en o antes de este punto en la expresión"
#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
¿Qué estoy haciendo mal? ¿Quizás la sangría es incorrecta?
Quizás sólo falta el parens en 'nueva System.Object()'? –
¿Qué es una interfaz C#? Ha definido una interfaz CLR en C#. –