El problema es que me ha renombrardo los métodos usando simbolos raros, la clase es:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Linq.Expressions; using System.Runtime.CompilerServices; using System.Threading; using System.Windows.Forms; using Microsoft.CSharp.RuntimeBinder; using TeleSharp.TL; using TeleSharp.TL.Contacts; namespace TelegramTools { // Token: 0x02000003 RID: 3 public class MainForm : Form { // Token: 0x06000007 RID: 7 RVA: 0x000024E0 File Offset: 0x000006E0 public MainForm() { this.InitializeComponent(); } // Token: 0x06000008 RID: 8 RVA: 0x000024F0 File Offset: 0x000006F0 private async void button1_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(this.textBox1.Text) && !string.IsNullOrEmpty(this.textBox2.Text)) { try { await Program.client.ConnectAsync(false); IEnumerable<string> arg_10A_0 = this.textBox1.Text.Split(new char[] { ',' }); Func<string, string> arg_10A_1; if ((arg_10A_1 = MainForm.<>c.<>9__1_0) == null) { arg_10A_1 = (MainForm.<>c.<>9__1_0 = new Func<string, string>(MainForm.<>c.<>9.<button1_Click>b__1_0)); } IEnumerable<string> enumerable = arg_10A_0.Select(arg_10A_1); if (enumerable.Count<string>() > 3) { MessageBox.Show("In FREE version you can send only to 3 users at once. Get FULL version to remove the restriction.", "Full Version needed"); } else { TLRequestImportContacts tLRequestImportContacts = new TLRequestImportContacts(); tLRequestImportContacts.contacts = new TLVector<TLInputPhoneContact>(); int num = 0; this.progressBar1.Minimum = 0; this.progressBar1.Maximum = enumerable.Count<string>(); this.progressBar1.Step = 1; this.progressBar1.Enabled = true; IEnumerator<string> enumerator = enumerable.GetEnumerator(); int num2; try { while (enumerator.MoveNext()) { string current = enumerator.Current; TLInputPhoneContact tLInputPhoneContact = new TLInputPhoneContact(); tLInputPhoneContact.phone = current; tLInputPhoneContact.first_name = num.ToString(); tLInputPhoneContact.last_name = num.ToString(); tLRequestImportContacts.contacts.lists.Add(tLInputPhoneContact); num++; } } finally { if (num2 < 0 && enumerator != null) { enumerator.Dispose(); } } TLImportedContacts tLImportedContacts = await Program.client.SendRequestAsync<TLImportedContacts>(tLRequestImportContacts); List<TLAbsUser>.Enumerator enumerator2 = tLImportedContacts.users.lists.GetEnumerator(); try { while (enumerator2.MoveNext()) { TLAbsUser current2 = enumerator2.Current; if (MainForm.<>o__1.<>p__3 == null) { MainForm.<>o__1.<>p__3 = CallSite<Func<CallSite, object, bool>>.Create(Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsTrue, typeof(MainForm), new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) })); } Func<CallSite, object, bool> arg_3D3_0 = MainForm.<>o__1.<>p__3.Target; CallSite arg_3D3_1 = MainForm.<>o__1.<>p__3; if (MainForm.<>o__1.<>p__2 == null) { MainForm.<>o__1.<>p__2 = CallSite<Func<CallSite, object, object, object>>.Create(Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.Equal, typeof(MainForm), new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.Constant, null) })); } Func<CallSite, object, object, object> arg_3CE_0 = MainForm.<>o__1.<>p__2.Target; CallSite arg_3CE_1 = MainForm.<>o__1.<>p__2; if (MainForm.<>o__1.<>p__1 == null) { MainForm.<>o__1.<>p__1 = CallSite<Func<CallSite, object, string, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "GetProperty", null, typeof(MainForm), new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null) })); } Func<CallSite, object, string, object> arg_3C8_0 = MainForm.<>o__1.<>p__1.Target; CallSite arg_3C8_1 = MainForm.<>o__1.<>p__1; if (MainForm.<>o__1.<>p__0 == null) { MainForm.<>o__1.<>p__0 = CallSite<Func<CallSite, object, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "GetType", null, typeof(MainForm), new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) })); } if (!arg_3D3_0(arg_3D3_1, arg_3CE_0(arg_3CE_1, arg_3C8_0(arg_3C8_1, MainForm.<>o__1.<>p__0.Target(MainForm.<>o__1.<>p__0, current2), "id"), null))) { TLInputPeerUser tLInputPeerUser = new TLInputPeerUser(); if (MainForm.<>o__1.<>p__5 == null) { MainForm.<>o__1.<>p__5 = CallSite<Func<CallSite, object, int>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(int), typeof(MainForm))); } Func<CallSite, object, int> arg_46C_0 = MainForm.<>o__1.<>p__5.Target; CallSite arg_46C_1 = MainForm.<>o__1.<>p__5; if (MainForm.<>o__1.<>p__4 == null) { MainForm.<>o__1.<>p__4 = CallSite<Func<CallSite, object, object>>.Create(Binder.GetMember(CSharpBinderFlags.None, "id", typeof(MainForm), new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) })); } tLInputPeerUser.user_id = arg_46C_0(arg_46C_1, MainForm.<>o__1.<>p__4.Target(MainForm.<>o__1.<>p__4, current2)); await Program.client.SendMessageAsync(tLInputPeerUser, this.textBox2.Text); this.progressBar1.PerformStep(); Thread.Sleep(2000); } } } finally { if (num2 < 0) { ((IDisposable)enumerator2).Dispose(); } } enumerator2 = default(List<TLAbsUser>.Enumerator); this.progressBar1.Enabled = false; this.progressBar1.Value = 0; MessageBox.Show("Sent!", "Success"); } } catch (Exception ex) { MessageBox.Show(string.Format("Something went wrong. Exception: {0}", ex.ToString()), "Error"); } } } // Token: 0x06000009 RID: 9 RVA: 0x00002529 File Offset: 0x00000729 private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Process.Start("http://sochix.ru"); } // Token: 0x0600000A RID: 10 RVA: 0x00002536 File Offset: 0x00000736 private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Process.Start("https://github.com/sochix/telegram-tools#different-version"); } // Token: 0x0600000B RID: 11 RVA: 0x00002543 File Offset: 0x00000743 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Process.Start("https://github.com/sochix/telegram-tools"); } // Token: 0x0600000C RID: 12 RVA: 0x00002550 File Offset: 0x00000750 protected override void Dispose(bool disposing) { if (disposing && this.components != null) { this.components.Dispose(); } base.Dispose(disposing); } // Token: 0x0600000D RID: 13 RVA: 0x00002570 File Offset: 0x00000770 private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(MainForm)); this.textBox1 = new TextBox(); this.label1 = new Label(); this.label2 = new Label(); this.textBox2 = new TextBox(); this.button1 = new Button(); this.progressBar1 = new ProgressBar(); this.linkLabel1 = new LinkLabel(); this.linkLabel2 = new LinkLabel(); this.linkLabel3 = new LinkLabel(); base.SuspendLayout(); this.textBox1.Location = new Point(10, 60); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.ScrollBars = ScrollBars.Horizontal; this.textBox1.Size = new Size(470, 600); this.textBox1.TabIndex = 0; this.label1.AutoSize = true; this.label1.Location = new Point(10, 10); this.label1.Name = "label1"; this.label1.Size = new Size(470, 25); this.label1.TabIndex = 1; this.label1.Text = "User Phone Numbers, separated with comma (,)"; this.label2.AutoSize = true; this.label2.Location = new Point(530, 10); this.label2.Name = "label2"; this.label2.Size = new Size(131, 25); this.label2.TabIndex = 2; this.label2.Text = "Text to send"; this.textBox2.Location = new Point(530, 60); this.textBox2.Multiline = true; this.textBox2.Name = "textBox2"; this.textBox2.ScrollBars = ScrollBars.Horizontal; this.textBox2.Size = new Size(470, 600); this.textBox2.TabIndex = 3; this.button1.ImageAlign = ContentAlignment.MiddleLeft; this.button1.Location = new Point(400, 727); this.button1.Name = "button1"; this.button1.Size = new Size(208, 64); this.button1.TabIndex = 4; this.button1.Text = "Send"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new EventHandler(this.button1_Click); this.progressBar1.Enabled = false; this.progressBar1.Location = new Point(10, 678); this.progressBar1.Name = "progressBar1"; this.progressBar1.Size = new Size(990, 36); this.progressBar1.TabIndex = 5; this.linkLabel1.AutoSize = true; this.linkLabel1.Location = new Point(5, 731); this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.Size = new Size(214, 25); this.linkLabel1.TabIndex = 6; this.linkLabel1.TabStop = true; this.linkLabel1.Text = "Have any questions?"; this.linkLabel1.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); this.linkLabel2.AutoSize = true; this.linkLabel2.Location = new Point(5, 762); this.linkLabel2.Name = "linkLabel2"; this.linkLabel2.Size = new Size(159, 25); this.linkLabel2.TabIndex = 7; this.linkLabel2.TabStop = true; this.linkLabel2.Text = "Buy full version"; this.linkLabel2.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked); this.linkLabel3.AutoSize = true; this.linkLabel3.Location = new Point(696, 762); this.linkLabel3.Name = "linkLabel3"; this.linkLabel3.Size = new Size(304, 25); this.linkLabel3.TabIndex = 8; this.linkLabel3.TabStop = true; this.linkLabel3.Text = "Developed by Sochix (C) 2017"; this.linkLabel3.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabel3_LinkClicked); base.AutoScaleDimensions = new SizeF(192f, 192f); base.AutoScaleMode = AutoScaleMode.Dpi; base.ClientSize = new Size(1009, 803); base.Controls.Add(this.linkLabel3); base.Controls.Add(this.linkLabel2); base.Controls.Add(this.linkLabel1); base.Controls.Add(this.progressBar1); base.Controls.Add(this.button1); base.Controls.Add(this.textBox2); base.Controls.Add(this.label2); base.Controls.Add(this.label1); base.Controls.Add(this.textBox1); base.FormBorderStyle = FormBorderStyle.FixedSingle; base.Icon = (Icon)componentResourceManager.GetObject("$ this.Icon"); base.MaximizeBox = false; base.Name = "MainForm"; base.StartPosition = FormStartPosition.CenterParent; this.Text = "TelegramTools"; base.ResumeLayout(false); base.PerformLayout(); } // Token: 0x04000009 RID: 9 private IContainer components; // Token: 0x0400000A RID: 10 private TextBox textBox1; // Token: 0x0400000B RID: 11 private Label label1; // Token: 0x0400000C RID: 12 private Label label2; // Token: 0x0400000D RID: 13 private TextBox textBox2; // Token: 0x0400000E RID: 14 private Button button1; // Token: 0x0400000F RID: 15 private ProgressBar progressBar1; // Token: 0x04000010 RID: 16 private LinkLabel linkLabel1; // Token: 0x04000011 RID: 17 private LinkLabel linkLabel2; // Token: 0x04000012 RID: 18 private LinkLabel linkLabel3; // Token: 0x02000009 RID: 9 [CompilerGenerated] private static class <>o__1 { // Token: 0x04000021 RID: 33 public static CallSite<Func<CallSite, object, object>> <>p__0; // Token: 0x04000022 RID: 34 public static CallSite<Func<CallSite, object, string, object>> <>p__1; // Token: 0x04000023 RID: 35 public static CallSite<Func<CallSite, object, object, object>> <>p__2; // Token: 0x04000024 RID: 36 public static CallSite<Func<CallSite, object, bool>> <>p__3; // Token: 0x04000025 RID: 37 public static CallSite<Func<CallSite, object, object>> <>p__4; // Token: 0x04000026 RID: 38 public static CallSite<Func<CallSite, object, int>> <>p__5; } // Token: 0x0200000A RID: 10 [CompilerGenerated] [Serializable] private sealed class <>c { // Token: 0x0600001C RID: 28 RVA: 0x00002F9A File Offset: 0x0000119A internal string <button1_Click>b__1_0(string x) { return x.Trim(); } // Token: 0x04000027 RID: 39 public static readonly MainForm.<>c <>9 = new MainForm.<>c(); // Token: 0x04000028 RID: 40 public static Func<string, string> <>9__1_0; } } }
El problema esque en las nombres de mis funciones pone el código tal que así:
MainForm.<>o__1.<>p__3
Y a la hora de compilarlo no me deja. Alguien podría orientarme un poco¿?
el programa es: https://www.sendspace.com/file/562r7o