System.Xml.Serialization.XmlSchemaImporter.IsMixed C# (CSharp) Method

IsMixed() static private method

static private IsMixed ( XmlSchemaType type ) : bool
type System.Xml.Schema.XmlSchemaType
return bool
        internal static bool IsMixed(XmlSchemaType type)
        {
            if (!(type is XmlSchemaComplexType))
                return false;

            XmlSchemaComplexType ct = (XmlSchemaComplexType)type;
            bool mixed = ct.IsMixed;

            // check the mixed attribute on the complexContent
            if (!mixed)
            {
                if (ct.ContentModel != null && ct.ContentModel is XmlSchemaComplexContent)
                {
                    mixed = ((XmlSchemaComplexContent)ct.ContentModel).IsMixed;
                }
            }
            return mixed;
        }