Skip to content

Commit

Permalink
C#9
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsck committed Nov 11, 2020
1 parent 9b0621d commit b96bec7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b96bec7

Please sign in to comment.