18 references to LocalAppContextSwitches
System.Xml (18)
System\Xml\Core\XmlEncodedRawTextWriter.cs (1)
1388
(
LocalAppContextSwitches
.DontThrowOnInvalidSurrogatePairs || lowChar <= XmlCharType.SurLowEnd)) {
System\Xml\Core\XmlUtf8RawTextWriter.cs (1)
1253
(
LocalAppContextSwitches
.DontThrowOnInvalidSurrogatePairs || lowChar <= XmlCharType.SurLowEnd)) {
System\Xml\Schema\XmlSchemaValidator.cs (1)
1974
if (
LocalAppContextSwitches
.IgnoreEmptyKeySequences) {
System\Xml\Serialization\CodeGenerator.cs (1)
1116
if (valueType == typeof(TimeSpan) &&
LocalAppContextSwitches
.EnableTimeSpanSerialization)
System\Xml\Serialization\PrimitiveXmlSerializers.cs (1)
611
if (
LocalAppContextSwitches
.EnableTimeSpanSerialization)
System\Xml\Serialization\Types.cs (2)
488
if (
LocalAppContextSwitches
.EnableTimeSpanSerialization)
532
else if (
LocalAppContextSwitches
.EnableTimeSpanSerialization && type == typeof(TimeSpan))
System\Xml\Serialization\Xmlcustomformatter.cs (2)
78
if (!
LocalAppContextSwitches
.IgnoreKindInUtcTimeSerialization && value.Kind == DateTimeKind.Utc)
342
if (!
LocalAppContextSwitches
.IgnoreKindInUtcTimeSerialization)
System\Xml\Serialization\XmlSerializationReader.cs (4)
235
if (
LocalAppContextSwitches
.EnableTimeSpanSerialization)
666
else if ((object)type.Name == (object)timeSpanID &&
LocalAppContextSwitches
.EnableTimeSpanSerialization)
759
else if ((object)type.Name == (object)timeSpanID &&
LocalAppContextSwitches
.EnableTimeSpanSerialization)
4299
if (element.Mapping.TypeDesc.Type == typeof(TimeSpan) &&
LocalAppContextSwitches
.EnableTimeSpanSerialization)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
3071
if (
LocalAppContextSwitches
.EnableTimeSpanSerialization && element.Mapping.TypeDesc.Type == typeof(TimeSpan))
System\Xml\Serialization\XmlSerializationWriter.cs (3)
202
else if (type == typeof(TimeSpan) &&
LocalAppContextSwitches
.EnableTimeSpanSerialization)
314
else if (t == typeof(TimeSpan) &&
LocalAppContextSwitches
.EnableTimeSpanSerialization) {
3122
else if(type == typeof(TimeSpan) &&
LocalAppContextSwitches
.EnableTimeSpanSerialization) {
System\Xml\Serialization\XmlSerializer.cs (1)
867
else if (primitiveType == typeof(TimeSpan) &&
LocalAppContextSwitches
.EnableTimeSpanSerialization) {