Restore most serialization implementations in coreclr
authorStephen Toub <stoub@microsoft.com>
Sat, 23 Jul 2016 03:26:01 +0000 (20:26 -0700)
committerStephen Toub <stoub@microsoft.com>
Mon, 15 Aug 2016 00:15:48 +0000 (20:15 -0400)
commit537d6588c662c1ad3ead43d1f9471da33da9d3b4
tree07df39e128a0c2b91178ea9c639a84ed6f8fbbb0
parent4915910993ff3f1ab132d5d8dcfe7497e303c059
Restore most serialization implementations in coreclr

I audited all uses of FEATURE_SERIALIZATION in coreclr and removed most of the ifdef'ing.  The remaining uses of FEATURE_SERIALIZATION are primary related to actually implementing formatters, CAS-related types, and a few types I've left non-serializable (e.g. ExecutionContext) but that we can revisit later if needed.

Commit migrated from https://github.com/dotnet/coreclr/commit/cca188e1f2719e6b6705c2e0d2cf7e1d1847b829
177 files changed:
src/coreclr/src/mscorlib/System.Private.CoreLib.sln [new file with mode: 0644]
src/coreclr/src/mscorlib/src/System.Private.CoreLib.txt
src/coreclr/src/mscorlib/src/System/AccessViolationException.cs
src/coreclr/src/mscorlib/src/System/AggregateException.cs
src/coreclr/src/mscorlib/src/System/AppDomain.cs
src/coreclr/src/mscorlib/src/System/AppDomainUnloadedException.cs
src/coreclr/src/mscorlib/src/System/ApplicationException.cs
src/coreclr/src/mscorlib/src/System/ArgumentException.cs
src/coreclr/src/mscorlib/src/System/ArgumentNullException.cs
src/coreclr/src/mscorlib/src/System/ArgumentOutOfRangeException.cs
src/coreclr/src/mscorlib/src/System/ArithmeticException.cs
src/coreclr/src/mscorlib/src/System/ArrayTypeMismatchException.cs
src/coreclr/src/mscorlib/src/System/AsyncCallback.cs
src/coreclr/src/mscorlib/src/System/BadImageFormatException.cs
src/coreclr/src/mscorlib/src/System/CannotUnloadAppDomainException.cs
src/coreclr/src/mscorlib/src/System/Collections/Comparer.cs
src/coreclr/src/mscorlib/src/System/Collections/Concurrent/ConcurrentDictionary.cs
src/coreclr/src/mscorlib/src/System/Collections/Concurrent/ConcurrentQueue.cs
src/coreclr/src/mscorlib/src/System/Collections/Concurrent/ConcurrentStack.cs
src/coreclr/src/mscorlib/src/System/Collections/Generic/Comparer.cs
src/coreclr/src/mscorlib/src/System/Collections/Generic/Dictionary.cs
src/coreclr/src/mscorlib/src/System/Collections/Generic/EqualityComparer.cs
src/coreclr/src/mscorlib/src/System/Collections/Generic/KeyNotFoundException.cs
src/coreclr/src/mscorlib/src/System/Collections/Hashtable.cs
src/coreclr/src/mscorlib/src/System/ContextMarshalException.cs
src/coreclr/src/mscorlib/src/System/DBNull.cs
src/coreclr/src/mscorlib/src/System/DataMisalignedException.cs
src/coreclr/src/mscorlib/src/System/DateTimeOffset.cs
src/coreclr/src/mscorlib/src/System/Decimal.cs
src/coreclr/src/mscorlib/src/System/Delegate.cs
src/coreclr/src/mscorlib/src/System/DelegateSerializationHolder.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/Contracts/Contracts.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/Contracts/ContractsBCL.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/Eventing/EventSourceException.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/Stacktrace.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/log.cs
src/coreclr/src/mscorlib/src/System/DivideByZeroException.cs
src/coreclr/src/mscorlib/src/System/DllNotFoundException.cs
src/coreclr/src/mscorlib/src/System/DuplicateWaitObjectException.cs
src/coreclr/src/mscorlib/src/System/Empty.cs
src/coreclr/src/mscorlib/src/System/EntryPointNotFoundException.cs
src/coreclr/src/mscorlib/src/System/EventHandler.cs
src/coreclr/src/mscorlib/src/System/Exception.cs
src/coreclr/src/mscorlib/src/System/ExecutionEngineException.cs
src/coreclr/src/mscorlib/src/System/FieldAccessException.cs
src/coreclr/src/mscorlib/src/System/FormatException.cs
src/coreclr/src/mscorlib/src/System/Globalization/CompareInfo.cs
src/coreclr/src/mscorlib/src/System/Globalization/CultureInfo.cs
src/coreclr/src/mscorlib/src/System/Globalization/CultureNotFoundException.cs
src/coreclr/src/mscorlib/src/System/Globalization/DateTimeFormatInfo.cs
src/coreclr/src/mscorlib/src/System/Globalization/GregorianCalendar.cs
src/coreclr/src/mscorlib/src/System/Globalization/RegionInfo.cs
src/coreclr/src/mscorlib/src/System/Globalization/SortKey.cs
src/coreclr/src/mscorlib/src/System/Globalization/StringInfo.cs
src/coreclr/src/mscorlib/src/System/Globalization/TextElementEnumerator.cs
src/coreclr/src/mscorlib/src/System/Globalization/TextInfo.cs
src/coreclr/src/mscorlib/src/System/IO/DirectoryNotFoundException.cs
src/coreclr/src/mscorlib/src/System/IO/DriveNotFoundException.cs
src/coreclr/src/mscorlib/src/System/IO/EndOfStreamException.cs
src/coreclr/src/mscorlib/src/System/IO/FileLoadException.cs
src/coreclr/src/mscorlib/src/System/IO/FileNotFoundException.cs
src/coreclr/src/mscorlib/src/System/IO/IOException.cs
src/coreclr/src/mscorlib/src/System/IO/PathTooLongException.cs
src/coreclr/src/mscorlib/src/System/IndexOutOfRangeException.cs
src/coreclr/src/mscorlib/src/System/InsufficientExecutionStackException.cs
src/coreclr/src/mscorlib/src/System/InsufficientMemoryException.cs
src/coreclr/src/mscorlib/src/System/IntPtr.cs
src/coreclr/src/mscorlib/src/System/InvalidCastException.cs
src/coreclr/src/mscorlib/src/System/InvalidOperationException.cs
src/coreclr/src/mscorlib/src/System/InvalidProgramException.cs
src/coreclr/src/mscorlib/src/System/InvalidTimeZoneException.cs
src/coreclr/src/mscorlib/src/System/Lazy.cs
src/coreclr/src/mscorlib/src/System/MemberAccessException.cs
src/coreclr/src/mscorlib/src/System/MethodAccessException.cs
src/coreclr/src/mscorlib/src/System/MissingFieldException.cs
src/coreclr/src/mscorlib/src/System/MissingMemberException.cs
src/coreclr/src/mscorlib/src/System/MissingMethodException.cs
src/coreclr/src/mscorlib/src/System/MulticastDelegate.cs
src/coreclr/src/mscorlib/src/System/MulticastNotSupportedException.cs
src/coreclr/src/mscorlib/src/System/NotFiniteNumberException.cs
src/coreclr/src/mscorlib/src/System/NotImplementedException.cs
src/coreclr/src/mscorlib/src/System/NotSupportedException.cs
src/coreclr/src/mscorlib/src/System/NullReferenceException.cs
src/coreclr/src/mscorlib/src/System/ObjectDisposedException.cs
src/coreclr/src/mscorlib/src/System/OperatingSystem.cs
src/coreclr/src/mscorlib/src/System/OperationCanceledException.cs
src/coreclr/src/mscorlib/src/System/OutOfMemoryException.cs
src/coreclr/src/mscorlib/src/System/OverflowException.cs
src/coreclr/src/mscorlib/src/System/PlatformNotSupportedException.cs
src/coreclr/src/mscorlib/src/System/RankException.cs
src/coreclr/src/mscorlib/src/System/Reflection/AmbiguousMatchException.cs
src/coreclr/src/mscorlib/src/System/Reflection/Assembly.cs
src/coreclr/src/mscorlib/src/System/Reflection/AssemblyName.cs
src/coreclr/src/mscorlib/src/System/Reflection/ConstructorInfo.cs
src/coreclr/src/mscorlib/src/System/Reflection/CustomAttribute.cs
src/coreclr/src/mscorlib/src/System/Reflection/CustomAttributeFormatException.cs
src/coreclr/src/mscorlib/src/System/Reflection/EventInfo.cs
src/coreclr/src/mscorlib/src/System/Reflection/FieldInfo.cs
src/coreclr/src/mscorlib/src/System/Reflection/InvalidFilterCriteriaException.cs
src/coreclr/src/mscorlib/src/System/Reflection/MemberFilter.cs
src/coreclr/src/mscorlib/src/System/Reflection/MemberInfoSerializationHolder.cs
src/coreclr/src/mscorlib/src/System/Reflection/MethodInfo.cs
src/coreclr/src/mscorlib/src/System/Reflection/Missing.cs
src/coreclr/src/mscorlib/src/System/Reflection/Module.cs
src/coreclr/src/mscorlib/src/System/Reflection/ParameterInfo.cs
src/coreclr/src/mscorlib/src/System/Reflection/PropertyInfo.cs
src/coreclr/src/mscorlib/src/System/Reflection/ReflectionTypeLoadException.cs
src/coreclr/src/mscorlib/src/System/Reflection/StrongNameKeyPair.cs
src/coreclr/src/mscorlib/src/System/Reflection/TargetException.cs
src/coreclr/src/mscorlib/src/System/Reflection/TargetInvocationException.cs
src/coreclr/src/mscorlib/src/System/Reflection/TargetParameterCountException.cs
src/coreclr/src/mscorlib/src/System/Reflection/TypeFilter.cs
src/coreclr/src/mscorlib/src/System/Resources/MissingManifestResourceException.cs
src/coreclr/src/mscorlib/src/System/Resources/MissingSatelliteAssemblyException.cs
src/coreclr/src/mscorlib/src/System/Resources/ResourceManager.cs
src/coreclr/src/mscorlib/src/System/RtType.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/COMException.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/ExternalException.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/InvalidComObjectException.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/InvalidOleVariantTypeException.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/MarshalDirectiveException.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/SEHException.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/SafeArrayRankMismatchException.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/SafeArrayTypeMismatchException.cs
src/coreclr/src/mscorlib/src/System/Runtime/Serialization/SerializationException.cs
src/coreclr/src/mscorlib/src/System/RuntimeHandles.cs
src/coreclr/src/mscorlib/src/System/Security/HostProtectionException.cs
src/coreclr/src/mscorlib/src/System/Security/SecurityException.cs
src/coreclr/src/mscorlib/src/System/Security/VerificationException.cs
src/coreclr/src/mscorlib/src/System/StackOverflowException.cs
src/coreclr/src/mscorlib/src/System/SystemException.cs
src/coreclr/src/mscorlib/src/System/Text/BaseCodePageEncoding.cs
src/coreclr/src/mscorlib/src/System/Text/CodePageEncoding.cs
src/coreclr/src/mscorlib/src/System/Text/DBCSCodePageEncoding.cs
src/coreclr/src/mscorlib/src/System/Text/DecoderExceptionFallback.cs
src/coreclr/src/mscorlib/src/System/Text/DecoderNLS.cs
src/coreclr/src/mscorlib/src/System/Text/EncoderExceptionFallback.cs
src/coreclr/src/mscorlib/src/System/Text/EncoderNLS.cs
src/coreclr/src/mscorlib/src/System/Text/Encoding.cs
src/coreclr/src/mscorlib/src/System/Text/GB18030Encoding.cs
src/coreclr/src/mscorlib/src/System/Text/ISCIIEncoding.cs
src/coreclr/src/mscorlib/src/System/Text/Latin1Encoding.cs
src/coreclr/src/mscorlib/src/System/Text/MLangCodePageEncoding.cs
src/coreclr/src/mscorlib/src/System/Text/SBCSCodePageEncoding.cs
src/coreclr/src/mscorlib/src/System/Text/StringBuilder.cs
src/coreclr/src/mscorlib/src/System/Text/SurrogateEncoder.cs
src/coreclr/src/mscorlib/src/System/Text/UTF7Encoding.cs
src/coreclr/src/mscorlib/src/System/Text/UTF8Encoding.cs
src/coreclr/src/mscorlib/src/System/Text/UnicodeEncoding.cs
src/coreclr/src/mscorlib/src/System/Threading/AbandonedMutexException.cs
src/coreclr/src/mscorlib/src/System/Threading/LockRecursionException.cs
src/coreclr/src/mscorlib/src/System/Threading/SemaphoreFullException.cs
src/coreclr/src/mscorlib/src/System/Threading/SynchronizationLockException.cs
src/coreclr/src/mscorlib/src/System/Threading/Tasks/TaskCanceledException.cs
src/coreclr/src/mscorlib/src/System/Threading/Tasks/TaskSchedulerException.cs
src/coreclr/src/mscorlib/src/System/Threading/ThreadAbortException.cs
src/coreclr/src/mscorlib/src/System/Threading/ThreadInterruptedException.cs
src/coreclr/src/mscorlib/src/System/Threading/ThreadStartException.cs
src/coreclr/src/mscorlib/src/System/Threading/ThreadStateException.cs
src/coreclr/src/mscorlib/src/System/Threading/WaitHandleCannotBeOpenedException.cs
src/coreclr/src/mscorlib/src/System/TimeZoneInfo.cs
src/coreclr/src/mscorlib/src/System/TimeZoneNotFoundException.cs
src/coreclr/src/mscorlib/src/System/TimeoutException.cs
src/coreclr/src/mscorlib/src/System/TypeAccessException.cs
src/coreclr/src/mscorlib/src/System/TypeInitializationException.cs
src/coreclr/src/mscorlib/src/System/TypeLoadException.cs
src/coreclr/src/mscorlib/src/System/TypeUnloadedException.cs
src/coreclr/src/mscorlib/src/System/UIntPtr.cs
src/coreclr/src/mscorlib/src/System/UnauthorizedAccessException.cs
src/coreclr/src/mscorlib/src/System/UnhandledExceptionEventHandler.cs
src/coreclr/src/mscorlib/src/System/UnitySerializationHolder.cs
src/coreclr/src/mscorlib/src/System/WeakReference.cs
src/coreclr/src/mscorlib/src/System/WeakReferenceOfT.cs
src/coreclr/src/mscorlib/src/mscorlib.txt
src/coreclr/src/vm/ecalllist.h
src/coreclr/src/vm/mscorlib.h
src/coreclr/src/vm/object.h