1 write to primitiveType
System.Xml (1)
System\Xml\Serialization\XmlSerializer.cs (1)
189
this.
primitiveType
= type;
16 references to primitiveType
System.Xml (16)
System\Xml\Serialization\XmlSerializer.cs (16)
327
if (
primitiveType
!= null) {
403
if (
primitiveType
!= null) {
445
if (
primitiveType
!= null) {
446
TypeDesc typeDesc = (TypeDesc)TypeScope.PrimtiveTypes[
primitiveType
];
739
switch (Type.GetTypeCode(
primitiveType
)) {
787
if (
primitiveType
== typeof(XmlQualifiedName)) {
790
else if (
primitiveType
== typeof(byte[])) {
793
else if (
primitiveType
== typeof(Guid)) {
796
else if (
primitiveType
== typeof(TimeSpan)) {
800
throw new InvalidOperationException(Res.GetString(Res.XmlUnxpectedType,
primitiveType
.FullName));
810
switch (Type.GetTypeCode(
primitiveType
)) {
858
if (
primitiveType
== typeof(XmlQualifiedName)) {
861
else if (
primitiveType
== typeof(byte[])) {
864
else if (
primitiveType
== typeof(Guid)) {
867
else if (
primitiveType
== typeof(TimeSpan) && LocalAppContextSwitches.EnableTimeSpanSerialization) {
871
throw new InvalidOperationException(Res.GetString(Res.XmlUnxpectedType,
primitiveType
.FullName));