File: System\Xml\DiagnosticsSwitches.cs
Web Access
Project: src\src\libraries\System.Private.Xml\src\System.Private.Xml.csproj (System.Private.Xml)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Diagnostics;
 
namespace System.Xml
{
    internal static class DiagnosticsSwitches
    {
        private static volatile BooleanSwitch? s_keepTempFiles;
        private static volatile BooleanSwitch? s_nonRecursiveTypeLoading;
 
        public static BooleanSwitch KeepTempFiles =>
            s_keepTempFiles ??= new BooleanSwitch("XmlSerialization.Compilation", "Keep XmlSerialization generated (temp) files.");
 
        public static BooleanSwitch NonRecursiveTypeLoading =>
            s_nonRecursiveTypeLoading ??= new BooleanSwitch("XmlSerialization.NonRecursiveTypeLoading", "Turn on non-recursive algorithm generating XmlMappings for CLR types.");
    }
}