Pages

Thursday, April 19, 2012

XML document on F# primary constructor


XML document on primary constructor is not supported. The workaround is to define another constructor with a dummy parameter. See the following sample code

/// my xml doc
type A(args) =
               

// change to the following code with a dummy parameter
type A private(args, _dummyParameter:unit) =
                /// docs
                new(args) = A(args, ())

No comments: