internal override XElement CreateXml() { var xRoot = new XElement("legoNxtMotorTurnAngleBrick"); var xVariable = new XElement("degrees"); xVariable.Add(Degrees.CreateXml()); xRoot.Add(xVariable); xRoot.Add(new XElement("motor") { Value = Motor }); return(xRoot); }