/// <summary>
        /// </summary>
        /// <param name="writer"></param>
        public override void WriteXml(System.Xml.XmlWriter writer)
        {
            writer.WriteElementString(RedmineKeys.NAME, Name);
            writer.WriteElementString(RedmineKeys.IDENTIFIER, Identifier);
            writer.WriteElementString(RedmineKeys.DESCRIPTION, Description);
            writer.WriteElementString(RedmineKeys.INHERIT_MEMBERS, InheritMembers.ToString().ToLowerInvariant());
            writer.WriteElementString(RedmineKeys.IS_PUBLIC, IsPublic.ToString().ToLowerInvariant());
            writer.WriteIdOrEmpty(Parent, RedmineKeys.PARENT_ID);
            writer.WriteElementString(RedmineKeys.HOMEPAGE, HomePage);

            writer.WriteListElements(Trackers as System.Collections.Generic.List <IValue>, RedmineKeys.TRACKER_IDS);
            writer.WriteListElements(EnabledModules as System.Collections.Generic.List <IValue>, RedmineKeys.ENABLED_MODULE_NAMES);

            if (Id == 0)
            {
                return;
            }

            writer.WriteArray(CustomFields, RedmineKeys.CUSTOM_FIELDS);
        }