No need to convert it to a class:

1
2
3
4
5
6
7
8
9
10
type TTT = 
        {
            AAA : int
            BBB : string
            CCC : float
        }
        override this.ToString() =
            sprintf "AAA: %d BBB: %s CCC: %f" this.AAA this.BBB this.CCC 
let ttt = { AAA=42; BBB="hi"; CCC=3.14 }            
printfn "%A" ttt
By on 11/15/2008 5:16 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper