// Decompiled with JetBrains decompiler // Type: BCV5StuB.My.MyProject // Assembly: Windows, Version=7.8.9.10, Culture=neutral, PublicKeyToken=null // MVID: 9F0D14B2-64CD-49F4-8243-2271113E9FED // Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00001-msil\Worm.Win32.AutoRun.hgi-f7f655882362e3de6b26b28c84c129a11a52fb9cd813ce2911fb258b72766e44.exe using Microsoft.VisualBasic; using Microsoft.VisualBasic.ApplicationServices; using Microsoft.VisualBasic.CompilerServices; using System; using System.CodeDom.Compiler; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows.Forms; namespace BCV5StuB.My { [HideModuleName] [GeneratedCode("MyTemplate", "8.0.0.0")] [StandardModule] internal sealed class MyProject { private static readonly MyProject.ThreadSafeObjectProvider m_ComputerObjectProvider = new MyProject.ThreadSafeObjectProvider(); private static readonly MyProject.ThreadSafeObjectProvider m_AppObjectProvider = new MyProject.ThreadSafeObjectProvider(); private static readonly MyProject.ThreadSafeObjectProvider m_UserObjectProvider = new MyProject.ThreadSafeObjectProvider(); private static MyProject.ThreadSafeObjectProvider m_MyFormsObjectProvider = new MyProject.ThreadSafeObjectProvider(); private static readonly MyProject.ThreadSafeObjectProvider m_MyWebServicesObjectProvider = new MyProject.ThreadSafeObjectProvider(); [DebuggerNonUserCode] static MyProject() { } [HelpKeyword("My.Computer")] internal static MyComputer Computer { [DebuggerHidden] get => MyProject.m_ComputerObjectProvider.GetInstance; } [HelpKeyword("My.Application")] internal static MyApplication Application { [DebuggerHidden] get => MyProject.m_AppObjectProvider.GetInstance; } [HelpKeyword("My.User")] internal static User User { [DebuggerHidden] get => MyProject.m_UserObjectProvider.GetInstance; } [HelpKeyword("My.Forms")] internal static MyProject.MyForms Forms { [DebuggerHidden] get => MyProject.m_MyFormsObjectProvider.GetInstance; } [HelpKeyword("My.WebServices")] internal static MyProject.MyWebServices WebServices { [DebuggerHidden] get => MyProject.m_MyWebServicesObjectProvider.GetInstance; } [MyGroupCollection("System.Windows.Forms.Form", "Create__Instance__", "Dispose__Instance__", "My.MyProject.Forms")] [EditorBrowsable(EditorBrowsableState.Never)] internal sealed class MyForms { public Form1 m_Form1; [ThreadStatic] private static Hashtable m_FormBeingCreated; public Form1 Form1 { [DebuggerNonUserCode] get { this.m_Form1 = MyProject.MyForms.Create__Instance__(this.m_Form1); return this.m_Form1; } [DebuggerNonUserCode] set { if (value == this.m_Form1) return; if (value != null) throw new ArgumentException("Property can only be set to Nothing"); this.Dispose__Instance__(ref this.m_Form1); } } [DebuggerHidden] private static T Create__Instance__(T Instance) where T : Form, new() { if ((object) Instance != null && !Instance.IsDisposed) return Instance; if (MyProject.MyForms.m_FormBeingCreated != null) { if (MyProject.MyForms.m_FormBeingCreated.ContainsKey((object) typeof (T))) throw new InvalidOperationException(Utils.GetResourceString("WinForms_RecursiveFormCreate")); } else MyProject.MyForms.m_FormBeingCreated = new Hashtable(); MyProject.MyForms.m_FormBeingCreated.Add((object) typeof (T), (object) null); try { return new T(); } catch (TargetInvocationException ex) when ( { // ISSUE: unable to correctly present filter ProjectData.SetProjectError((Exception) ex); if (ex.InnerException != null) { SuccessfulFiltering; } else throw; } ) { throw new InvalidOperationException(Utils.GetResourceString("WinForms_SeeInnerException", ex.InnerException.Message), ex.InnerException); } finally { MyProject.MyForms.m_FormBeingCreated.Remove((object) typeof (T)); } } [DebuggerHidden] private void Dispose__Instance__(ref T instance) where T : Form { instance.Dispose(); instance = default (T); } [EditorBrowsable(EditorBrowsableState.Never)] [DebuggerHidden] public MyForms() { } [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object o) => base.Equals(RuntimeHelpers.GetObjectValue(o)); [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => base.GetHashCode(); [EditorBrowsable(EditorBrowsableState.Never)] internal new System.Type GetType() => typeof (MyProject.MyForms); [EditorBrowsable(EditorBrowsableState.Never)] public override string ToString() => base.ToString(); } [EditorBrowsable(EditorBrowsableState.Never)] [MyGroupCollection("System.Web.Services.Protocols.SoapHttpClientProtocol", "Create__Instance__", "Dispose__Instance__", "")] internal sealed class MyWebServices { [EditorBrowsable(EditorBrowsableState.Never)] [DebuggerHidden] public override bool Equals(object o) => base.Equals(RuntimeHelpers.GetObjectValue(o)); [DebuggerHidden] [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() => base.GetHashCode(); [EditorBrowsable(EditorBrowsableState.Never)] [DebuggerHidden] internal new System.Type GetType() => typeof (MyProject.MyWebServices); [EditorBrowsable(EditorBrowsableState.Never)] [DebuggerHidden] public override string ToString() => base.ToString(); [DebuggerHidden] private static T Create__Instance__(T instance) where T : new() => (object) instance == null ? new T() : instance; [DebuggerHidden] private void Dispose__Instance__(ref T instance) => instance = default (T); [EditorBrowsable(EditorBrowsableState.Never)] [DebuggerHidden] public MyWebServices() { } } [EditorBrowsable(EditorBrowsableState.Never)] [ComVisible(false)] internal sealed class ThreadSafeObjectProvider where T : new() { internal T GetInstance { [DebuggerHidden] get { if ((object) MyProject.ThreadSafeObjectProvider.m_ThreadStaticValue == null) MyProject.ThreadSafeObjectProvider.m_ThreadStaticValue = new T(); return MyProject.ThreadSafeObjectProvider.m_ThreadStaticValue; } } [DebuggerHidden] [EditorBrowsable(EditorBrowsableState.Never)] public ThreadSafeObjectProvider() { } } } }