Fix StyleCop rule SA1129 ("Do not use default value type constructor") (dotnet/corecl...
authorStephen Toub <stoub@microsoft.com>
Mon, 11 Nov 2019 14:08:53 +0000 (09:08 -0500)
committerGitHub <noreply@github.com>
Mon, 11 Nov 2019 14:08:53 +0000 (09:08 -0500)
commitbb491848ce0e2eb5680bc8c59067f20474d26363
treef9be19be824c6a4e57f699e16cd79fefedda9b13
parent6e6ef43f5268acd0c2e73e74d2eb650278a8e16c
Fix StyleCop rule SA1129 ("Do not use default value type constructor") (dotnet/coreclr#27716)

Will enable the rule in corefx once these changes have propagated.

Commit migrated from https://github.com/dotnet/coreclr/commit/5fd4e7055571f3200b64cf6272c81ede96b6fc8b
62 files changed:
src/coreclr/src/System.Private.CoreLib/src/Microsoft/Win32/OAVariantLib.cs
src/coreclr/src/System.Private.CoreLib/src/System/ArgIterator.cs
src/coreclr/src/System.Private.CoreLib/src/System/Array.CoreCLR.cs
src/coreclr/src/System.Private.CoreLib/src/System/Reflection/CustomAttribute.cs
src/coreclr/src/System.Private.CoreLib/src/System/Reflection/Emit/DynamicILGenerator.cs
src/coreclr/src/System.Private.CoreLib/src/System/Reflection/MdImport.cs
src/coreclr/src/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs
src/coreclr/src/System.Private.CoreLib/src/System/Runtime/InteropServices/CustomMarshalers/EnumerableViewOfDispatch.cs
src/coreclr/src/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.CoreCLR.cs
src/coreclr/src/System.Private.CoreLib/src/System/Runtime/InteropServices/WindowsRuntime/CLRIPropertyValueImpl.cs
src/coreclr/src/System.Private.CoreLib/src/System/Runtime/InteropServices/WindowsRuntime/WindowsRuntimeMarshal.cs
src/coreclr/src/System.Private.CoreLib/src/System/RuntimeHandles.cs
src/coreclr/src/System.Private.CoreLib/src/System/RuntimeType.CoreCLR.cs
src/coreclr/src/System.Private.CoreLib/src/System/TypedReference.cs
src/coreclr/src/System.Private.CoreLib/src/System/Variant.cs
src/libraries/System.Private.CoreLib/src/Internal/IO/File.Windows.cs
src/libraries/System.Private.CoreLib/src/System/Collections/Concurrent/ConcurrentQueue.cs
src/libraries/System.Private.CoreLib/src/System/Collections/Concurrent/ConcurrentQueueSegment.cs
src/libraries/System.Private.CoreLib/src/System/Collections/Generic/Dictionary.cs
src/libraries/System.Private.CoreLib/src/System/Collections/Hashtable.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/TraceLogging/DataCollector.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/TraceLogging/EventSourceActivity.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/TraceLogging/TraceLoggingEventSource.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/CalendarData.Unix.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/CalendarData.Windows.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/CompareInfo.Windows.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/CultureData.Windows.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/DateTimeParse.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/TimeSpanFormat.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/TimeSpanParse.cs
src/libraries/System.Private.CoreLib/src/System/Guid.cs
src/libraries/System.Private.CoreLib/src/System/IO/DisableMediaInsertionPrompt.cs
src/libraries/System.Private.CoreLib/src/System/IO/PathHelper.Windows.cs
src/libraries/System.Private.CoreLib/src/System/Lazy.cs
src/libraries/System.Private.CoreLib/src/System/Numerics/Matrix4x4.cs
src/libraries/System.Private.CoreLib/src/System/Numerics/Quaternion.cs
src/libraries/System.Private.CoreLib/src/System/Numerics/Vector.cs
src/libraries/System.Private.CoreLib/src/System/Numerics/Vector.tt
src/libraries/System.Private.CoreLib/src/System/Numerics/Vector2.cs
src/libraries/System.Private.CoreLib/src/System/Numerics/Vector3.cs
src/libraries/System.Private.CoreLib/src/System/Numerics/Vector4.cs
src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/EventToken.cs
src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/FieldToken.cs
src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/MethodToken.cs
src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/ParameterToken.cs
src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/PropertyToken.cs
src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/SignatureToken.cs
src/libraries/System.Private.CoreLib/src/System/Reflection/Emit/TypeToken.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/TaskAwaiter.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/YieldAwaitable.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/MemoryFailPoint.Windows.cs
src/libraries/System.Private.CoreLib/src/System/Threading/CancellationTokenSource.cs
src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs
src/libraries/System.Private.CoreLib/src/System/Threading/ManualResetEventSlim.cs
src/libraries/System.Private.CoreLib/src/System/Threading/SemaphoreSlim.cs
src/libraries/System.Private.CoreLib/src/System/Threading/SpinLock.cs
src/libraries/System.Private.CoreLib/src/System/Threading/SpinWait.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TaskCanceledException.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/TaskCompletionSource.cs
src/libraries/System.Private.CoreLib/src/System/ValueTuple.cs