Diff
checker
Texto
Texto
Imagens
Documentos
Excel
Pastas
Legal
Enterprise
Aplicativo para desktop
Preços
Fazer login
Baixar o Diffchecker Desktop
Comparar texto
Encontre a diferença entre dois arquivos de texto
Ferramentas
Histórico
Editor live
Recolher inalteradas
Sem quebra de linha
Layout
Dividido
Unificado
Nível de detalhe
Inteligente
Palavra
Caractere
Realce de sintaxe
Escolher sintaxe
Ignorar
Transformar texto
Ir à primeira mudança
Editar entrada
Diffchecker Desktop
A maneira mais segura de usar o Diffchecker. Obtenha o aplicativo Diffchecker Desktop: seus diffs nunca saem do seu computador!
Obter Desktop
async Task Main修改为返回Task<int>
Criado
há 3 anos
O diff nunca expira
Limpar
Exportar
Compartilhar
Explicar
0 remoções
Linhas
Total
Removido
Caracteres
Total
Removido
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
62 linhas
Copiar tudo
6 adições
Linhas
Total
Adicionado
Caracteres
Total
Adicionado
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
64 linhas
Copiar tudo
namespace CSharp_AsyncLearn
namespace CSharp_AsyncLearn
{
{
internal class Program
internal class Program
{
{
[CompilerGenerated]
[CompilerGenerated]
private sealed class <Main>d__0 : IAsyncStateMachine
private sealed class <Main>d__0 : IAsyncStateMachine
{
{
public int <>1__state;
public int <>1__state;
Copiar
Copiado
Copiar
Copiado
public AsyncTaskMethodBuilder
<>t__builder;
public AsyncTaskMethodBuilder
<int>
<>t__builder;
[System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1 })]
[System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1 })]
public string[] args;
public string[] args;
private void MoveNext()
private void MoveNext()
{
{
int num = <>1__state;
int num = <>1__state;
Copiar
Copiado
Copiar
Copiado
int result;
try
try
{
{
Copiar
Copiado
Copiar
Copiado
result = 114514;
}
}
catch (Exception exception)
catch (Exception exception)
{
{
<>1__state = -2;
<>1__state = -2;
<>t__builder.SetException(exception);
<>t__builder.SetException(exception);
return;
return;
}
}
<>1__state = -2;
<>1__state = -2;
Copiar
Copiado
Copiar
Copiado
<>t__builder.SetResult(
);
<>t__builder.SetResult(
result
);
}
}
void IAsyncStateMachine.MoveNext()
void IAsyncStateMachine.MoveNext()
{
{
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
this.MoveNext();
this.MoveNext();
}
}
[DebuggerHidden]
[DebuggerHidden]
private void SetStateMachine([System.Runtime.CompilerServices.Nullable(1)] IAsyncStateMachine stateMachine)
private void SetStateMachine([System.Runtime.CompilerServices.Nullable(1)] IAsyncStateMachine stateMachine)
{
{
}
}
void IAsyncStateMachine.SetStateMachine([System.Runtime.CompilerServices.Nullable(1)] IAsyncStateMachine stateMachine)
void IAsyncStateMachine.SetStateMachine([System.Runtime.CompilerServices.Nullable(1)] IAsyncStateMachine stateMachine)
{
{
//ILSpy generated this explicit interface implementation from .override directive in SetStateMachine
//ILSpy generated this explicit interface implementation from .override directive in SetStateMachine
this.SetStateMachine(stateMachine);
this.SetStateMachine(stateMachine);
}
}
}
}
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.NullableContext(1)]
[AsyncStateMachine(typeof(<Main>d__0))]
[AsyncStateMachine(typeof(<Main>d__0))]
[DebuggerStepThrough]
[DebuggerStepThrough]
Copiar
Copiado
Copiar
Copiado
private static Task
Main(string[] args)
private static Task
<int>
Main(string[] args)
{
{
<Main>d__0 stateMachine = new <Main>d__0();
<Main>d__0 stateMachine = new <Main>d__0();
Copiar
Copiado
Copiar
Copiado
stateMachine.<>t__builder = AsyncTaskMethodBuilder
.Create();
stateMachine.<>t__builder = AsyncTaskMethodBuilder
<int>
.Create();
stateMachine.args = args;
stateMachine.args = args;
stateMachine.<>1__state = -1;
stateMachine.<>1__state = -1;
stateMachine.<>t__builder.Start(ref stateMachine);
stateMachine.<>t__builder.Start(ref stateMachine);
return stateMachine.<>t__builder.Task;
return stateMachine.<>t__builder.Task;
}
}
}
}
}
}
Diferenças salvas
Texto original
Abrir arquivo
namespace CSharp_AsyncLearn { internal class Program { [CompilerGenerated] private sealed class <Main>d__0 : IAsyncStateMachine { public int <>1__state; public AsyncTaskMethodBuilder <>t__builder; [System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1 })] public string[] args; private void MoveNext() { int num = <>1__state; try { } catch (Exception exception) { <>1__state = -2; <>t__builder.SetException(exception); return; } <>1__state = -2; <>t__builder.SetResult(); } void IAsyncStateMachine.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext this.MoveNext(); } [DebuggerHidden] private void SetStateMachine([System.Runtime.CompilerServices.Nullable(1)] IAsyncStateMachine stateMachine) { } void IAsyncStateMachine.SetStateMachine([System.Runtime.CompilerServices.Nullable(1)] IAsyncStateMachine stateMachine) { //ILSpy generated this explicit interface implementation from .override directive in SetStateMachine this.SetStateMachine(stateMachine); } } [System.Runtime.CompilerServices.NullableContext(1)] [AsyncStateMachine(typeof(<Main>d__0))] [DebuggerStepThrough] private static Task Main(string[] args) { <Main>d__0 stateMachine = new <Main>d__0(); stateMachine.<>t__builder = AsyncTaskMethodBuilder.Create(); stateMachine.args = args; stateMachine.<>1__state = -1; stateMachine.<>t__builder.Start(ref stateMachine); return stateMachine.<>t__builder.Task; } } }
Texto alterado
Abrir arquivo
namespace CSharp_AsyncLearn { internal class Program { [CompilerGenerated] private sealed class <Main>d__0 : IAsyncStateMachine { public int <>1__state; public AsyncTaskMethodBuilder<int> <>t__builder; [System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1 })] public string[] args; private void MoveNext() { int num = <>1__state; int result; try { result = 114514; } catch (Exception exception) { <>1__state = -2; <>t__builder.SetException(exception); return; } <>1__state = -2; <>t__builder.SetResult(result); } void IAsyncStateMachine.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext this.MoveNext(); } [DebuggerHidden] private void SetStateMachine([System.Runtime.CompilerServices.Nullable(1)] IAsyncStateMachine stateMachine) { } void IAsyncStateMachine.SetStateMachine([System.Runtime.CompilerServices.Nullable(1)] IAsyncStateMachine stateMachine) { //ILSpy generated this explicit interface implementation from .override directive in SetStateMachine this.SetStateMachine(stateMachine); } } [System.Runtime.CompilerServices.NullableContext(1)] [AsyncStateMachine(typeof(<Main>d__0))] [DebuggerStepThrough] private static Task<int> Main(string[] args) { <Main>d__0 stateMachine = new <Main>d__0(); stateMachine.<>t__builder = AsyncTaskMethodBuilder<int>.Create(); stateMachine.args = args; stateMachine.<>1__state = -1; stateMachine.<>t__builder.Start(ref stateMachine); return stateMachine.<>t__builder.Task; } } }
Encontrar Diferença