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

XsdTypeName() private method

private XsdTypeName ( Type type ) : string
type System.Type
return string
        internal string XsdTypeName(Type type)
        {
            if (type == typeof(object)) return Soap.UrType;
            TypeDesc typeDesc = _typeScope.GetTypeDesc(type);
            if (typeDesc.IsPrimitive && typeDesc.DataType != null && typeDesc.DataType.Name != null && typeDesc.DataType.Name.Length > 0)
                return typeDesc.DataType.Name;
            return XsdTypeName(type, GetAttributes(type, false), typeDesc.Name);
        }

Same methods

XmlReflectionImporter::XsdTypeName ( Type type, XmlAttributes a, string name ) : string