I'm newbie to F# and experimenting it. I'm trying to implement a F# interface.
This is my F# file:
namespace Services.Auth.Domain
type IAuthMathematics =
abstract Sum : unit -> int
type AuthMathematics(a : int, b : int) =
member this.A = a
member this.B = b
interface IAuthMathematics with
member this.Sum() = this.A + this.B
When using it in C# and pressing F12, giving me this
[CompilationMapping(SourceConstructFlags.ObjectType)]
public class AuthMathematics : IAuthMathematics
{
public AuthMathematics(int a, int b);
public int A { get; }
public int B { get; }
}
[CompilationMapping(SourceConstructFlags.ObjectType)]
public interface IAuthMathematics
{
int Sum();
}
Where are my sum function and properties initialization ?