using System; using System.Collections.Generic; using System.Globalization; using System.Xml; using System.IO; using System.Configuration; public class blah { public static void Main(string[] args) { Formatter f = new Formatter(); f.BoldStyle.Color = 5; f.BoldStyle.Strength = 2; } } public class Formatter { public Bold BoldStyle = new Bold(); public class Bold { int _Color; public int Color { get { return _Color; } set { _Color = value; } } int _Strength; public int Strength { get { return _Strength; } set { _Strength = value; } } } }