private XmlQualifiedName GetPrimitiveTypeName(Type type, bool throwIfUnknown) { XmlQualifiedName qname = GetPrimitiveTypeNameInternal(type); if (throwIfUnknown && qname == null) throw CreateUnknownTypeException(type); return qname; }