c# to f# - Shortest declaration of the read/write property in F# -


i need few public properties, in c# way.

public vendororderservice { get; set; } 

what shortest (correct/idiomatic) syntax such properties in f#?

member val vendorservice = unchecked.defaultof<vendororderservice> get, set 

p.s. understand public properties not super idiomatic f#. code working in larger .net project, such properties obligatory.

type foo() =      member val text : string = null get, set 

Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -