Sage.Integration.Northwind.Application.Base.RTDVField.GetUnhandledAttributes C# (CSharp) Method

GetUnhandledAttributes() private method

private GetUnhandledAttributes ( XmlDocument xmlDoc ) : System.Xml.XmlAttribute[]
xmlDoc System.Xml.XmlDocument
return System.Xml.XmlAttribute[]
        private XmlAttribute[] GetUnhandledAttributes(XmlDocument xmlDoc)
        {
            // declarations
            List<XmlAttribute> attributeList;
            XmlAttribute attribute;

            // Initializations
            attributeList  = new List<XmlAttribute>();

            // caption
            attribute = xmlDoc.CreateAttribute("caption");
            attribute.Value = _displayName;
            attributeList.Add(attribute);

            if (_typeCode == TypeCode.String)
            {
                // size
                attribute = xmlDoc.CreateAttribute("size");
                attribute.Value = Convert.ToString(_size);
                attributeList.Add(attribute);
            }
            #warning remove if crm does not need the size anymore
            else
            {
                attribute = xmlDoc.CreateAttribute("size");
                attribute.Value = Convert.ToString(GetSize());
                attributeList.Add(attribute);
            }

            return attributeList.ToArray();
        }