type IFoo =
interface
abstract MyMethod: parameterA:int * parameterB:string -> string
end

You just defined a method named MyMethod with two paramters, paramterA and parameterB. The method returns type is string.

By on 2/8/2009 10:32 PM ()

Yes, I too was bitten by this when trying to use F# and WCF. You can name your parameters if you want to:

1
2
3
type IFoo = interface
    abstract Method: foo:int * bar:string -> string
end
By on 7/22/2008 12:44 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper