I'm playing around with F# in VS 2010 and i can't quite figure out how to assign a value to a member in a class.
type SampleGame =
class
inherit Game
override Game.Initialize() =
spriteBatch <- new SpriteBatch(this.GraphicsDevice)
base.Initialize()
val mutable spriteBatch : SpriteBatch
end
I thought this was right but it says it cannot find "spriteBatch". is this the correct way to make members for objects, or is there a better way?