クラスにメンバー関数を作成しました。その後、このメンバー関数の結果に設定されるメンバー値を作成したいと思います。
type MyType() =
member this.drawFilledPlanet(xCoord:int, yCoord:int, pWidth:int, pHeight:int, color) =
let brush = new System.Drawing.SolidBrush(color)
this.window.Paint.Add(fun e ->
e.Graphics.FillEllipse(brush, xCoord, yCoord, pWidth, pHeight))
member val theSun = drawFilledPlanet(350,350,100,100, this.yellow)
drawFilledPlanet
定義されていないエラーが発生しています。
誰かが私に何が起こっているのか教えてもらえますか?