Use expression-bodied members in more places (dotnet/coreclr#26500)
commitff7dd88cfaffa7fa430fd3e0e98f4662d0f7dc59
authorStephen Toub <stoub@microsoft.com>
Wed, 4 Sep 2019 15:21:59 +0000 (4 11:21 -0400)
committerMarek Safar <marek.safar@gmail.com>
Thu, 5 Sep 2019 08:46:55 +0000 (5 10:46 +0200)
treef052ce1235ced9d0abd9dde513c7bdf6e6682302
parentdb626fe9d370fb1f431667ae31a370b70275ef2b
Use expression-bodied members in more places (dotnet/coreclr#26500)

* Fix IDE0027 (use expression body for accessors)

* Fix IDE0023 / IDE0024 (use expression body for operators)

* Apply suggestions from code review

Co-Authored-By: Adam Sitnik <adam.sitnik@gmail.com>
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
82 files changed:
netcore/System.Private.CoreLib/shared/Internal/Threading/Tasks/AsyncCausalitySupport.cs
netcore/System.Private.CoreLib/shared/Microsoft/Win32/SafeHandles/SafeFileHandle.Windows.cs
netcore/System.Private.CoreLib/shared/System/AppDomain.cs
netcore/System.Private.CoreLib/shared/System/Array.cs
netcore/System.Private.CoreLib/shared/System/AttributeUsageAttribute.cs
netcore/System.Private.CoreLib/shared/System/ByReference.cs
netcore/System.Private.CoreLib/shared/System/Collections/ArrayList.cs
netcore/System.Private.CoreLib/shared/System/Collections/DictionaryEntry.cs
netcore/System.Private.CoreLib/shared/System/Collections/Generic/List.cs
netcore/System.Private.CoreLib/shared/System/Collections/Hashtable.cs
netcore/System.Private.CoreLib/shared/System/Collections/ObjectModel/Collection.cs
netcore/System.Private.CoreLib/shared/System/Collections/ObjectModel/ReadOnlyCollection.cs
netcore/System.Private.CoreLib/shared/System/DateTime.cs
netcore/System.Private.CoreLib/shared/System/DateTimeOffset.cs
netcore/System.Private.CoreLib/shared/System/Decimal.cs
netcore/System.Private.CoreLib/shared/System/Diagnostics/Debug.cs
netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/DiagnosticCounter.cs
netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventDescriptor.cs
netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs
netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventSource.cs
netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/TraceLogging/EventDataAttribute.cs
netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/TraceLogging/EventPayload.cs
netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/TraceLogging/EventSourceActivity.cs
netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/TraceLogging/EventSourceOptions.cs
netcore/System.Private.CoreLib/shared/System/Double.cs
netcore/System.Private.CoreLib/shared/System/Exception.cs
netcore/System.Private.CoreLib/shared/System/Globalization/CultureInfo.cs
netcore/System.Private.CoreLib/shared/System/Globalization/IdnMapping.cs
netcore/System.Private.CoreLib/shared/System/Globalization/SortVersion.cs
netcore/System.Private.CoreLib/shared/System/Guid.cs
netcore/System.Private.CoreLib/shared/System/IO/Stream.cs
netcore/System.Private.CoreLib/shared/System/IO/StreamWriter.cs
netcore/System.Private.CoreLib/shared/System/IO/TextWriter.cs
netcore/System.Private.CoreLib/shared/System/IO/UnmanagedMemoryStreamWrapper.cs
netcore/System.Private.CoreLib/shared/System/IntPtr.cs
netcore/System.Private.CoreLib/shared/System/LocalAppContextSwitches.cs
netcore/System.Private.CoreLib/shared/System/Nullable.cs
netcore/System.Private.CoreLib/shared/System/Numerics/Vector.cs
netcore/System.Private.CoreLib/shared/System/Numerics/Vector_Operations.cs
netcore/System.Private.CoreLib/shared/System/OperationCanceledException.cs
netcore/System.Private.CoreLib/shared/System/ReadOnlySpan.Fast.cs
netcore/System.Private.CoreLib/shared/System/ReadOnlySpan.cs
netcore/System.Private.CoreLib/shared/System/Reflection/Assembly.cs
netcore/System.Private.CoreLib/shared/System/Reflection/AssemblyName.cs
netcore/System.Private.CoreLib/shared/System/Reflection/Emit/Label.cs
netcore/System.Private.CoreLib/shared/System/Reflection/Emit/Opcode.cs
netcore/System.Private.CoreLib/shared/System/Reflection/ParameterModifier.cs
netcore/System.Private.CoreLib/shared/System/Resources/ResourceManager.cs
netcore/System.Private.CoreLib/shared/System/Resources/ResourceReader.cs
netcore/System.Private.CoreLib/shared/System/Runtime/CompilerServices/StrongBox.cs
netcore/System.Private.CoreLib/shared/System/Runtime/InteropServices/ArrayWithOffset.cs
netcore/System.Private.CoreLib/shared/System/Runtime/InteropServices/HandleRef.cs
netcore/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Arm/Arm64/Aes.PlatformNotSupported.cs
netcore/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Arm/Arm64/Base.PlatformNotSupported.cs
netcore/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Arm/Arm64/Sha1.PlatformNotSupported.cs
netcore/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Arm/Arm64/Sha256.PlatformNotSupported.cs
netcore/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Arm/Arm64/Simd.PlatformNotSupported.cs
netcore/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128_1.cs
netcore/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256_1.cs
netcore/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64_1.cs
netcore/System.Private.CoreLib/shared/System/Runtime/MemoryFailPoint.cs
netcore/System.Private.CoreLib/shared/System/Runtime/Serialization/OptionalFieldAttribute.cs
netcore/System.Private.CoreLib/shared/System/Runtime/Serialization/SerializationInfo.cs
netcore/System.Private.CoreLib/shared/System/Runtime/Versioning/TargetFrameworkAttribute.cs
netcore/System.Private.CoreLib/shared/System/Security/SecurityElement.cs
netcore/System.Private.CoreLib/shared/System/Single.cs
netcore/System.Private.CoreLib/shared/System/Span.Fast.cs
netcore/System.Private.CoreLib/shared/System/Span.cs
netcore/System.Private.CoreLib/shared/System/String.Comparison.cs
netcore/System.Private.CoreLib/shared/System/Text/Decoder.cs
netcore/System.Private.CoreLib/shared/System/Text/Encoder.cs
netcore/System.Private.CoreLib/shared/System/Text/Encoding.cs
netcore/System.Private.CoreLib/shared/System/Text/StringBuilder.cs
netcore/System.Private.CoreLib/shared/System/Threading/AsyncLocal.cs
netcore/System.Private.CoreLib/shared/System/Threading/ExecutionContext.cs
netcore/System.Private.CoreLib/shared/System/Threading/ManualResetEventSlim.cs
netcore/System.Private.CoreLib/shared/System/Threading/Tasks/Task.cs
netcore/System.Private.CoreLib/shared/System/Threading/Thread.cs
netcore/System.Private.CoreLib/shared/System/Threading/WaitHandle.cs
netcore/System.Private.CoreLib/shared/System/TimeSpan.cs
netcore/System.Private.CoreLib/shared/System/UIntPtr.cs
netcore/System.Private.CoreLib/shared/System/Version.cs