Diff
checker
Testo
Testo
Immagini
Documenti
Excel
Cartelle
Legal
Enterprise
Applicazione per desktop
Prezzi
Accedi
Scarica Diffchecker Desktop
Confronta il testo
Trova la differenza tra due file di testo
Strumenti
Cronologia
Editor live
Comprimi invariate
Senza a capo
Layout
Diviso
Unificato
Livello di dettaglio
Intelligente
Parola
Carattere
Evidenziazione sintassi
Scegli sintassi
Ignora
Trasforma testo
Vai alla prima modifica
Modifica input
Diffchecker Desktop
Il modo più sicuro per usare Diffchecker. Ottieni l'app Diffchecker Desktop: i tuoi diff non lasciano mai il tuo computer!
Ottieni Desktop
void Main添加async修饰符
Creato
3 anni fa
Il diff non scade mai
Eliminare
Esporta
Condividere
Spiegare
0 rimozioni
Linee
Totale
Rimosso
Caratteri
Totale
Rimosso
Per continuare a utilizzare questa funzione, aggiorna a
Diff
checker
Pro
Visualizza prezzi
10 linee
Copia tutti
51 aggiunte
Linee
Totale
Aggiunto
Caratteri
Totale
Aggiunto
Per continuare a utilizzare questa funzione, aggiorna a
Diff
checker
Pro
Visualizza prezzi
61 linee
Copia tutti
namespace CSharp_AsyncLearn
namespace CSharp_AsyncLearn
{
{
internal class Program
internal class Program
{
{
Copia
Copiato
Copia
Copiato
[CompilerGenerated]
private sealed class <Main>d__0 : IAsyncStateMachine
{
public int <>1__state;
public AsyncVoidMethodBuilder <>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)]
[System.Runtime.CompilerServices.NullableContext(1)]
Copia
Copiato
Copia
Copiato
[AsyncStateMachine(typeof(<Main>d__0))]
[DebuggerStepThrough]
private static void Main(string[] args)
private static void Main(string[] args)
{
{
Copia
Copiato
Copia
Copiato
<Main>d__0 stateMachine = new <Main>d__0();
stateMachine.<>t__builder = AsyncVoidMethodBuilder.Create();
stateMachine.args = args;
stateMachine.<>1__state = -1;
stateMachine.<>t__builder.Start(ref stateMachine);
}
}
}
}
}
}
Diff salvati
Testo originale
Apri file
namespace CSharp_AsyncLearn { internal class Program { [System.Runtime.CompilerServices.NullableContext(1)] private static void Main(string[] args) { } } }
Testo modificato
Apri file
namespace CSharp_AsyncLearn { internal class Program { [CompilerGenerated] private sealed class <Main>d__0 : IAsyncStateMachine { public int <>1__state; public AsyncVoidMethodBuilder <>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 void Main(string[] args) { <Main>d__0 stateMachine = new <Main>d__0(); stateMachine.<>t__builder = AsyncVoidMethodBuilder.Create(); stateMachine.args = args; stateMachine.<>1__state = -1; stateMachine.<>t__builder.Start(ref stateMachine); } } }
Trovare la differenza