protected override bool SerializeElement(XmlWriter writer, bool serializeCollectionKey) { bool DataToWrite = false; if (base.SerializeElement(null, false) == true || GroupSettings.InternalSerialize(null, false) == true) { DataToWrite |= base.SerializeElement(writer, false); DataToWrite |= GroupSettings.InternalSerialize(writer, false); } return(DataToWrite); }