No, F# does not support defining nested types. (Note that the .Net Framework Design Guidelines suggest avoiding nested types in public APIs.)

By on 8/12/2009 12:10 AM ()

Well, I just read that particular guideline now, and there's nothing suggesting that I avoid them entirely.

My nested type is indeed seldom accessed from outside, and it does not have a public constructor. It's actually a set of System.Configuration.ConfigurationElement types and the ConfigurationElementCollection types that instantiate them. Logically sound, I would say.

By on 8/12/2009 12:30 AM ()
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