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

ImportSpecialAttribute() private method

private ImportSpecialAttribute ( XmlQualifiedName name, string identifier ) : AttributeAccessor
name System.Xml.XmlQualifiedName
identifier string
return AttributeAccessor
        private AttributeAccessor ImportSpecialAttribute(XmlQualifiedName name, string identifier)
        {
            PrimitiveMapping mapping = new PrimitiveMapping();
            mapping.TypeDesc = Scope.GetTypeDesc(typeof(string));
            mapping.TypeName = mapping.TypeDesc.DataType.Name;
            AttributeAccessor accessor = new AttributeAccessor();
            accessor.Name = name.Name;
            accessor.Namespace = XmlReservedNs.NsXml;
            accessor.CheckSpecial();
            accessor.Mapping = mapping;
            return accessor;
        }