functional programming - How to define and use static variables in F# class -


is there way have mutable static variable in f# class identical static variable in c# class ?

you use static let bindings (note: while necessary times, it's none functional):

type staticmembertest () =      static let mutable test : string = ""      member this.test           get() =              test <- "asdf"             test 

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -