How do I turn this Extension Method into an Extension Property?
f#
Solution
Jon's answer is one way to do it, but for a read-only property there's also a more concise way to write it:
type System.Int32 with
member this.Thousand = this * 1000
Also, depending on your preferences, you may find it more pleasing to write `5 .Thousand` (note the extra space) than `(5).Thousand` (but you won't be able to do just `5.Thousand`, or even `5.ToString()`).
Problem
I have an extension method ``` type System.Int32 with member this.Thousand() = this * 1000 ``` but it requires me to write like this ``` (5).Thousand() ``` I'd love to get rid of both parenthesis, starting with making it a property instead of a method (for learning sake) how do I make this a property?