मैं एफ # में निम्नलिखित सी # इंटरफ़ेस को लागू करना चाहते हैं:एफ # में सी # इंटरफेस को कैसे कार्यान्वित करें?
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
मैं क्या गलत कर रहा हूँ? शायद इंडेंटेशन गलत है?
कोष्ठक शायद सिर्फ लापता एफ # के साथ Mono.Addins उपयोग करने के लिए का एक उदाहरण है? –
सी # इंटरफ़ेस क्या है? आपने सी # में एक सीएलआर इंटरफ़ेस परिभाषित किया है। –