System.Xml.Serialization.XmlReflectionImporter.GetAttributes C# (CSharp) Method

GetAttributes() private method

private GetAttributes ( Type type, bool canBeSimpleType ) : XmlAttributes
type System.Type
canBeSimpleType bool
return XmlAttributes
        private XmlAttributes GetAttributes(Type type, bool canBeSimpleType)
        {
            XmlAttributes attrs = _attributeOverrides[type];
            if (attrs != null) return attrs;
            if (canBeSimpleType && TypeScope.IsKnownType(type))
            {
                return _defaultAttributes;
            }
            return new XmlAttributes(type.GetTypeInfo());
        }

Same methods

XmlReflectionImporter::GetAttributes ( MemberInfo memberInfo ) : XmlAttributes