From b96bec73e654f15af298eb294b5bd0ecb37166d0 Mon Sep 17 00:00:00 2001 From: 0xd4d Date: Wed, 11 Nov 2020 20:46:39 +0100 Subject: [PATCH] C#9 --- .../Impl/DbgEngineProviderImpl.cs | 8 ++++---- .../Impl/DbgEngineProviderImpl.cs | 10 +++++----- .../Steppers/Engine/DbgEngineStepperImpl.cs | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Extensions/dnSpy.Debugger/dnSpy.Debugger.DotNet.CorDebug/Impl/DbgEngineProviderImpl.cs b/Extensions/dnSpy.Debugger/dnSpy.Debugger.DotNet.CorDebug/Impl/DbgEngineProviderImpl.cs index f0af3c5e1a..6ca90b8e31 100644 --- a/Extensions/dnSpy.Debugger/dnSpy.Debugger.DotNet.CorDebug/Impl/DbgEngineProviderImpl.cs +++ b/Extensions/dnSpy.Debugger/dnSpy.Debugger.DotNet.CorDebug/Impl/DbgEngineProviderImpl.cs @@ -35,16 +35,16 @@ sealed class DbgEngineProviderImpl : DbgEngineProvider { public override DbgEngine? Create(DbgManager dbgManager, DebugProgramOptions options) { switch (options) { - case DotNetFrameworkStartDebuggingOptions _: + case DotNetFrameworkStartDebuggingOptions: return new DotNetFrameworkDbgEngineImpl(dbgEngineImplDependencies.Value, dbgManager, DbgStartKind.Start); - case DotNetStartDebuggingOptions _: + case DotNetStartDebuggingOptions: return new DotNetDbgEngineImpl(dbgEngineImplDependencies.Value, dbgManager, DbgStartKind.Start); - case DotNetFrameworkAttachToProgramOptions _: + case DotNetFrameworkAttachToProgramOptions: return new DotNetFrameworkDbgEngineImpl(dbgEngineImplDependencies.Value, dbgManager, DbgStartKind.Attach); - case DotNetAttachToProgramOptions _: + case DotNetAttachToProgramOptions: return new DotNetDbgEngineImpl(dbgEngineImplDependencies.Value, dbgManager, DbgStartKind.Attach); } diff --git a/Extensions/dnSpy.Debugger/dnSpy.Debugger.DotNet.Mono/Impl/DbgEngineProviderImpl.cs b/Extensions/dnSpy.Debugger/dnSpy.Debugger.DotNet.Mono/Impl/DbgEngineProviderImpl.cs index 1e1de27346..6d01d30074 100644 --- a/Extensions/dnSpy.Debugger/dnSpy.Debugger.DotNet.Mono/Impl/DbgEngineProviderImpl.cs +++ b/Extensions/dnSpy.Debugger/dnSpy.Debugger.DotNet.Mono/Impl/DbgEngineProviderImpl.cs @@ -35,13 +35,13 @@ sealed class DbgEngineProviderImpl : DbgEngineProvider { public override DbgEngine? Create(DbgManager dbgManager, DebugProgramOptions options) { switch (options) { - case MonoStartDebuggingOptions _: - case MonoConnectStartDebuggingOptions _: + case MonoStartDebuggingOptions: + case MonoConnectStartDebuggingOptions: return new DbgEngineImpl(dbgEngineImplDependencies.Value, dbgManager, MonoDebugRuntimeKind.Mono); - case UnityConnectStartDebuggingOptions _: - case UnityAttachToProgramOptions _: - case UnityStartDebuggingOptions _: + case UnityConnectStartDebuggingOptions: + case UnityAttachToProgramOptions: + case UnityStartDebuggingOptions: return new DbgEngineImpl(dbgEngineImplDependencies.Value, dbgManager, MonoDebugRuntimeKind.Unity); } diff --git a/Extensions/dnSpy.Debugger/dnSpy.Debugger.DotNet/Steppers/Engine/DbgEngineStepperImpl.cs b/Extensions/dnSpy.Debugger/dnSpy.Debugger.DotNet/Steppers/Engine/DbgEngineStepperImpl.cs index 2fa0a6a17f..a480f1d19c 100644 --- a/Extensions/dnSpy.Debugger/dnSpy.Debugger.DotNet/Steppers/Engine/DbgEngineStepperImpl.cs +++ b/Extensions/dnSpy.Debugger/dnSpy.Debugger.DotNet/Steppers/Engine/DbgEngineStepperImpl.cs @@ -599,10 +599,10 @@ string GetStepFilterMessage(DmdMemberInfo member) { var memberName = typeName + "." + member.Name; switch (member) { - case DmdPropertyInfo _: + case DmdPropertyInfo: return string.Format(dnSpy_Debugger_DotNet_Resources.StepFilter_SteppingOverProperty, memberName); - case DmdMethodBase _: + case DmdMethodBase: return string.Format(dnSpy_Debugger_DotNet_Resources.StepFilter_SteppingOverOperator, memberName); default: