Beispiel #1
0
        public void TearDown()
        {
            if (SerializerDebugging.DumpEnabled)
            {
#if !NETSTANDARD2_0
                try
                {
                    SerializerDebugging.Dump();
                }
                catch (NotSupportedException ex)
                {
                    Console.Error.WriteLine(ex);
                }
                finally
                {
                    SerializationMethodGeneratorManager.Refresh();
                }
#else // !NETSTANDARD2_0
                SerializationMethodGeneratorManager.Refresh();
#endif // !NETSTANDARD2_0
            }

            SerializerDebugging.Reset();
            SerializerDebugging.OnTheFlyCodeGenerationEnabled = false;
        }
        public void TearDown()
        {
            if (SerializerDebugging.DumpEnabled)
            {
                try
                {
                    SerializerDebugging.Dump();
                }
                finally
                {
                    DefaultSerializationMethodGeneratorManager.Refresh();
                }
            }

            SerializerDebugging.Reset();
            SerializerDebugging.OnTheFlyCodeDomEnabled = false;
        }
Beispiel #3
0
        public void TearDown()
        {
#if !NETSTANDARD1_1 && !NETSTANDARD1_3
            if (SerializerDebugging.DumpEnabled)
            {
                try
                {
                    SerializerDebugging.Dump();
                }
                finally
                {
                    SerializationMethodGeneratorManager.Refresh();
                }
            }

            SerializerDebugging.Reset();
            SerializerDebugging.OnTheFlyCodeGenerationEnabled = false;
#endif // !NETSTANDARD1_1 && !NETSTANDARD1_3
        }
        public void TearDown()
        {
            if (SerializerDebugging.DumpEnabled && this.CanDump)
            {
                try
                {
                    SerializerDebugging.Dump();
                }
                catch (NotSupportedException ex)
                {
                    Console.Error.WriteLine(ex);
                }
                finally
                {
                    SerializationMethodGeneratorManager.Refresh();
                }
            }

            SerializerDebugging.Reset();
            SerializerDebugging.OnTheFlyCodeDomEnabled = false;
        }