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
Post a Comment