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

ImportArray() private method

private ImportArray ( XmlSchemaElement element, string identifier, string ns, bool repeats ) : ElementAccessor
element System.Xml.Schema.XmlSchemaElement
identifier string
ns string
repeats bool
return ElementAccessor
        private ElementAccessor ImportArray(XmlSchemaElement element, string identifier, string ns, bool repeats)
        {
            if (repeats) return null;
            if (element.SchemaType == null) return null;
            if (element.IsMultipleOccurrence) return null;
            XmlSchemaType type = element.SchemaType;
            ArrayMapping arrayMapping = ImportArrayMapping(type, identifier, ns, repeats);
            if (arrayMapping == null) return null;
            ElementAccessor arrayAccessor = new ElementAccessor();
            arrayAccessor.Name = element.Name;
            arrayAccessor.Namespace = ns;
            arrayAccessor.Mapping = arrayMapping;
            if (arrayMapping.TypeDesc.IsNullable)
                arrayAccessor.IsNullable = element.IsNillable;
            arrayAccessor.Form = ElementForm(ns, element);
            return arrayAccessor;
        }