Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- using System.Runtime.CompilerServices;
- using System.Runtime.InteropServices;
- using System.Threading.Tasks;
- namespace PDLL
- {
- // Token: 0x02000002 RID: 2
- public class ClassTools
- {
- // Token: 0x06000001 RID: 1
- [STAThread]
- [DllImport("kernel32.dll", SetLastError = true)]
- private static extern string GetCommandLineA();
- // Token: 0x06000002 RID: 2 RVA: 0x00002050 File Offset: 0x00000250
- public static void TheMethod()
- {
- try
- {
- Task.Run(new Func<Task>(new ClassTools().Run)).Wait();
- }
- catch (Exception ex)
- {
- File.WriteAllText(ClassTools.str, DateTime.Now.ToString() + " Me: " + ex.InnerException.Message);
- }
- }
- // Token: 0x06000003 RID: 3 RVA: 0x000020B8 File Offset: 0x000002B8
- private Task Run()
- {
- ClassTools.<Run>d__3 <Run>d__;
- <Run>d__.<>t__builder = AsyncTaskMethodBuilder.Create();
- <Run>d__.<>4__this = this;
- <Run>d__.<>1__state = -1;
- <Run>d__.<>t__builder.Start<ClassTools.<Run>d__3>(ref <Run>d__);
- return <Run>d__.<>t__builder.Task;
- }
- // Token: 0x06000004 RID: 4 RVA: 0x000020FC File Offset: 0x000002FC
- private Task<string> MyMethod(string mand, bool outs)
- {
- ClassTools.<MyMethod>d__4 <MyMethod>d__;
- <MyMethod>d__.<>t__builder = AsyncTaskMethodBuilder<string>.Create();
- <MyMethod>d__.mand = mand;
- <MyMethod>d__.outs = outs;
- <MyMethod>d__.<>1__state = -1;
- <MyMethod>d__.<>t__builder.Start<ClassTools.<MyMethod>d__4>(ref <MyMethod>d__);
- return <MyMethod>d__.<>t__builder.Task;
- }
- // Token: 0x04000001 RID: 1
- private static string str = "";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement