private void method_0(Class53 dc) { Class63 lpgs = new Class63(); if (Class61.GetFontUnicodeRanges(dc.Handle, lpgs) == 0U) { throw new Exception("Unable to retrieve unicode ranges."); } this.class76_0 = new Class76[lpgs.uint_3]; int index1 = 0; int num1 = 0; for (; (long)index1 < (long)lpgs.uint_3; ++index1) { byte[] byte0_1 = lpgs.byte_0; int index2 = num1; int num2 = index2 + 1; int num3 = (int)byte0_1[index2]; byte[] byte0_2 = lpgs.byte_0; int index3 = num2; int num4 = index3 + 1; int num5 = (int)byte0_2[index3] << 8; ushort start = (ushort)(num3 + num5); byte[] byte0_3 = lpgs.byte_0; int index4 = num4; int num6 = index4 + 1; int num7 = (int)byte0_3[index4]; byte[] byte0_4 = lpgs.byte_0; int index5 = num6; num1 = index5 + 1; int num8 = (int)byte0_4[index5] << 8; ushort num9 = (ushort)(num7 + num8); this.class76_0[index1] = new Class76(dc, start, (ushort)((int)start + (int)num9 - 1)); } }
// Token: 0x06000B6B RID: 2923 RVA: 0x0003B808 File Offset: 0x00039A08 private void method_4(string string_0, JsonWriter jsonWriter_1, JsonSchemaType jsonSchemaType_0) { if (Enum.IsDefined(typeof(JsonSchemaType), jsonSchemaType_0)) { jsonWriter_1.WritePropertyName(string_0); jsonWriter_1.WriteValue(Class130.smethod_1(jsonSchemaType_0)); return; } IEnumerator <JsonSchemaType> enumerator = Class53.smethod_1 <JsonSchemaType>(jsonSchemaType_0).Where(new Func <JsonSchemaType, bool>(Class141.Class142.class142_0.method_0)).GetEnumerator(); if (enumerator.MoveNext()) { jsonWriter_1.WritePropertyName(string_0); JsonSchemaType jsonSchemaType_ = enumerator.Current; if (enumerator.MoveNext()) { jsonWriter_1.WriteStartArray(); jsonWriter_1.WriteValue(Class130.smethod_1(jsonSchemaType_)); do { jsonWriter_1.WriteValue(Class130.smethod_1(enumerator.Current)); }while (enumerator.MoveNext()); jsonWriter_1.WriteEndArray(); return; } jsonWriter_1.WriteValue(Class130.smethod_1(jsonSchemaType_)); } }
// Token: 0x06001307 RID: 4871 RVA: 0x00004865 File Offset: 0x00002A65 internal void method_33(object object_0, Class53 class53_0) { if (this.delegate148_0 != null) { this.delegate148_0(object_0, class53_0); } }
public static Class53 smethod_0(byte[] byte_0, int int_11) { int startIndex = int_11; Class53 class2 = new Class53 { int_0 = BitConverter.ToInt32(byte_0, startIndex) }; startIndex += 4; class2.int_1 = BitConverter.ToInt32(byte_0, startIndex); startIndex += 4; class2.int_2 = BitConverter.ToInt32(byte_0, startIndex); startIndex += 4; class2.int_3 = BitConverter.ToInt32(byte_0, startIndex); startIndex += 4; class2.int_4 = BitConverter.ToInt32(byte_0, startIndex); startIndex += 4; class2.int_5 = BitConverter.ToInt32(byte_0, startIndex); startIndex += 4; class2.int_6 = BitConverter.ToInt32(byte_0, startIndex); startIndex += 4; class2.int_7 = BitConverter.ToInt32(byte_0, startIndex); startIndex += 4; class2.int_8 = BitConverter.ToInt32(byte_0, startIndex); startIndex += 4; class2.int_9 = BitConverter.ToInt32(byte_0, startIndex); startIndex += 4; return(class2); }
// Token: 0x06000686 RID: 1670 RVA: 0x0002B5C8 File Offset: 0x000297C8 public static IList <FLhW6tQJXRaEOkM5DWI> smethod_1 <FLhW6tQJXRaEOkM5DWI>(FLhW6tQJXRaEOkM5DWI i9yu2fQKFA1w1fr3s7w) where FLhW6tQJXRaEOkM5DWI : struct { Type typeFromHandle = typeof(FLhW6tQJXRaEOkM5DWI); if (!typeFromHandle.IsDefined(typeof(FlagsAttribute), false)) { throw new ArgumentException("Enum type {0} is not a set of flags.".smethod_0(CultureInfo.InvariantCulture, typeFromHandle)); } Type underlyingType = Enum.GetUnderlyingType(i9yu2fQKFA1w1fr3s7w.GetType()); ulong num = Class53.smethod_6(i9yu2fQKFA1w1fr3s7w); Class52 @class = Class53.smethod_5(typeFromHandle); IList <FLhW6tQJXRaEOkM5DWI> list = new List <FLhW6tQJXRaEOkM5DWI>(); for (int i = 0; i < @class.ulong_0.Length; i++) { ulong num2 = @class.ulong_0[i]; if ((num & num2) == num2 && num2 != 0UL) { list.Add((FLhW6tQJXRaEOkM5DWI)((object)Convert.ChangeType(num2, underlyingType, CultureInfo.CurrentCulture))); } } if (list.Count == 0) { if (@class.ulong_0.Any(new Func <ulong, bool>(Class53.Class55 <FLhW6tQJXRaEOkM5DWI> .class55_0.method_0))) { list.Add(default(FLhW6tQJXRaEOkM5DWI)); } } return(list); }
private void method_0() { this.class53_0 = new Class53(); Class78 class78 = Class78.smethod_1(this.fontProperties_0.FaceName, this.fontProperties_0.IsBold, this.fontProperties_0.IsItalic, this.class53_0); this.class52_0 = new Class52(this.class53_0); this.class42_0 = class78.method_0(this.class53_0); }
public bool method_5() { object obj2; bool flag; Monitor.Enter(obj2 = this.object_1); try { if (!this.bool_0) { return(false); } this.int_4++; Class53 class3 = new Class53 { int_0 = this.int_3, int_6 = this.int_4, int_7 = this.int_0, int_8 = this.int_1, int_9 = 0 }; byte[] src = class3.method_0(); byte[] dst = new byte[4 + src.Length]; Buffer.BlockCopy(BitConverter.GetBytes(this.int_7), 0, dst, 0, 4); Buffer.BlockCopy(src, 0, dst, 4, src.Length); byte[] buffer5 = this.method_9(dst, this.string_0); byte[] buffer6 = new byte[buffer5.Length + 8]; byte[] bytes = BitConverter.GetBytes(buffer5.Length); byte[] buffer8 = BitConverter.GetBytes(this.int_0); Buffer.BlockCopy(bytes, 0, buffer6, 0, 4); Buffer.BlockCopy(buffer8, 0, buffer6, 4, 4); Buffer.BlockCopy(buffer5, 0, buffer6, 8, buffer5.Length); this.object_0.Write(buffer6, 0, buffer6.Length); int num = BitConverter.ToInt32(this.method_7((NetworkStream)this.object_0, 8), 0); byte[] buffer10 = this.method_7((NetworkStream)this.object_0, num); byte[] buffer = this.method_10(buffer10, this.string_0); if (BitConverter.ToInt32(buffer, 0) != this.int_8) { return(false); } Class54 class2 = Class54.smethod_0(buffer, 4); if (class2.int_3 != class3.int_6) { return(false); } flag = this.bool_1 = class2.int_4 == 1; } catch (Exception) { this.method_3(); flag = false; } finally { Monitor.Exit(obj2); } return(flag); }
internal static Class53 smethod_1(Enum0 requiredEdition) { Assembly executingAssembly = Assembly.GetExecutingAssembly(); Attribute0 customAttribute = (Attribute0)executingAssembly.GetCustomAttributes(typeof(Attribute0), true)[0]; Class53 licenseInfo = new Class53(customAttribute.ProductName); Class123.smethod_2(licenseInfo, executingAssembly, customAttribute, requiredEdition); return(licenseInfo); }
// Token: 0x0600068D RID: 1677 RVA: 0x0002BAE8 File Offset: 0x00029CE8 private static int?smethod_8(string string_0, object object_0, object object_1, int int_0, int int_1, StringComparison stringComparison_0) { int?result = Class53.smethod_9(object_1, string_0, int_0, int_1, stringComparison_0); if (result == null) { result = Class53.smethod_9(object_0, string_0, int_0, int_1, stringComparison_0); } return(result); }
public Class76(Class53 dc, ushort start, ushort end) { if ((int)start > (int)end) { throw new ArgumentException("start cannot be greater than end"); } this.class53_0 = dc; this.ushort_0 = start; this.ushort_1 = end; }
internal static void smethod_0(Enum0 edition) { Class53 class53 = Class123.smethod_1(edition); if (class53.LicensedEdition < edition) { string str; if (class53.IsTrial) { str = "Trial period expired!"; } else { str = class53.ProductName + " " + (object)class53.LicensedEdition + " is not licensed."; } int num = (int)MessageBox.Show(class53.Message, str, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); throw new InternalException(str); } }
// Token: 0x06000688 RID: 1672 RVA: 0x0002B6CC File Offset: 0x000298CC public static bool smethod_3(Type type_0, object object_0, object object_1, out string string_0) { Class52 @class = Class53.class99_0.Get(new Struct9 <Type, NamingStrategy>(type_0, object_1)); ulong num = Class53.smethod_6(object_0); if (@class.bool_0) { string_0 = Class53.smethod_4(@class, num); return(string_0 != null); } int num2 = Array.BinarySearch <ulong>(@class.ulong_0, num); if (num2 >= 0) { string_0 = @class.string_1[num2]; return(true); } string_0 = null; return(false); }
// Token: 0x06000685 RID: 1669 RVA: 0x0002B4A4 File Offset: 0x000296A4 private static Class52 smethod_0(Struct9 <Type, NamingStrategy> struct9_0) { Type gparam_ = struct9_0.gparam_0; string[] names = Enum.GetNames(gparam_); string[] array = new string[names.Length]; ulong[] array2 = new ulong[names.Length]; for (int i = 0; i < names.Length; i++) { string name = names[i]; FieldInfo field = gparam_.GetField(name, BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); array2[i] = Class53.smethod_6(field.GetValue(null)); string text = field.GetCustomAttributes(typeof(EnumMemberAttribute), true).Cast <EnumMemberAttribute>().Select(new Func <EnumMemberAttribute, string>(Class53.Class54.class54_0.method_0)).SingleOrDefault <string>() ?? field.Name; if (Array.IndexOf <string>(array, text, 0, i) != -1) { throw new InvalidOperationException("Enum name '{0}' already exists on enum '{1}'.".smethod_1(CultureInfo.InvariantCulture, text, gparam_.Name)); } array[i] = ((struct9_0.gparam_1 != null) ? struct9_0.gparam_1.GetPropertyName(text, false) : text); } return(new Class52(gparam_.IsDefined(typeof(FlagsAttribute), false), array2, names, array)); }
private static Assembly smethod_0(object object_0, ResolveEventArgs resolveEventArgs_0) { lock (hashtable_0) { string str = resolveEventArgs_0.Name.Trim(); object obj2 = hashtable_0[str]; if (obj2 == null) { try { string str2 = smethod_1(str); foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies()) { if (assembly.GetName().Name.ToUpper() == str2.ToUpper()) { return(assembly); } } } catch { } } if (obj2 == null) { try { RSACryptoServiceProvider.UseMachineKeyStore = true; string s = smethod_1(str); byte[] bytes = Encoding.Unicode.GetBytes(s); string name = "b0494a1f-4bd3-" + Convert.ToBase64String(Class53.smethod_9(bytes)); Stream manifestResourceStream = typeof(Class57).Assembly.GetManifestResourceStream(name); if (manifestResourceStream != null) { try { BinaryReader reader = new BinaryReader(manifestResourceStream) { BaseStream = { Position = 0L } }; byte[] buffer = new byte[manifestResourceStream.Length]; reader.Read(buffer, 0, buffer.Length); reader.Close(); bool flag = false; Assembly assembly2 = null; try { assembly2 = Assembly.Load(buffer); } catch (FileLoadException) { flag = true; } catch (BadImageFormatException) { flag = true; } if (flag) { string path = Path.Combine(Path.Combine(Path.GetTempPath(), name), s + ".dll"); if (!File.Exists(path)) { Directory.CreateDirectory(Path.GetDirectoryName(path)); FileStream stream2 = new FileStream(path, FileMode.Create, FileAccess.Write); stream2.Write(buffer, 0, buffer.Length); stream2.Close(); } assembly2 = Assembly.LoadFile(path); hashtable_0.Add(str, assembly2); return(assembly2); } hashtable_0.Add(str, assembly2); return(assembly2); } catch { } } } catch { } return(null); } return((Assembly)obj2); } }
// Token: 0x0600011B RID: 283 RVA: 0x0000D864 File Offset: 0x0000BA64 public static void smethod_1(JObject jobject_0, string string_0) { try { foreach (JToken jtoken in jobject_0.Values()) { if (!Class130.dictionary_0.ContainsKey((int)jtoken["id"])) { MainWindow.webView_0.QueueScriptCall(string.Format("updateButton({0},true)", jtoken["id"])); string text = jtoken["store"].ToString().ToLower(); uint num = Class79.smethod_0(text); Class44 @class; if (num <= 2430139328u) { if (num <= 1369243890u) { if (num <= 650952027u) { if (num <= 536391395u) { if (num != 75628775u) { if (num != 536391395u) { goto IL_6E9; } if (!(text == "net-a-porter us")) { goto IL_6E9; } @class = new Class50(jtoken, "am", "us"); } else { if (!(text == "footpatrol")) { goto IL_6E9; } @class = new Class45(jtoken, "footpatrol", "AD60F89E1BB248F388B9FC671851A2B8"); } } else if (num != 634394085u) { if (num != 650952027u) { goto IL_6E9; } if (!(text == "footaction")) { goto IL_6E9; } @class = new Class51(jtoken, "footaction.com"); } else { if (!(text == "net-a-porter eu")) { goto IL_6E9; } @class = new Class50(jtoken, "intl", "gb"); } } else if (num <= 1003079584u) { if (num != 988777544u) { if (num != 1003079584u) { goto IL_6E9; } if (!(text == "champs sports")) { goto IL_6E9; } @class = new Class47(jtoken, "champssports.com"); } else { if (!(text == "the hip store")) { goto IL_6E9; } @class = new Class45(jtoken, "thehipstore", "117860D26D504A5FB26B2FB64CE35FB8"); } } else if (num != 1271241200u) { if (num != 1369243890u) { goto IL_6E9; } if (!(text == "supreme eu")) { goto IL_6E9; } @class = new Class54(jtoken, "EU"); } else { if (!(text == "supreme us")) { goto IL_6E9; } @class = new Class54(jtoken, "US"); } } else if (num <= 2033596121u) { if (num <= 1613681225u) { if (num != 1374915048u) { if (num != 1613681225u) { goto IL_6E9; } if (!(text == "footlocker us ")) { goto IL_6E9; } @class = new Class51(jtoken, "footlocker.com"); } else { if (!(text == "eastbay")) { goto IL_6E9; } @class = new Class47(jtoken, "eastbay.com"); } } else if (num != 1819840374u) { if (num != 2033596121u) { goto IL_6E9; } if (!(text == "size?")) { goto IL_6E9; } @class = new Class45(jtoken, "size", "3565AE9C56464BB0AD8020F735D1479E"); } else { if (!(text == "jd sports")) { goto IL_6E9; } @class = new Class45(jtoken, "jdsports", "60743806B14F4AF389F582E83A141733"); } } else if (num <= 2404272289u) { if (num != 2191237913u) { if (num != 2404272289u) { goto IL_6E9; } if (!(text == "footaction ")) { goto IL_6E9; } @class = new Class51(jtoken, "footaction.com"); } else { if (!(text == "footlocker ca ")) { goto IL_6E9; } @class = new Class51(jtoken, "footlocker.ca"); } } else if (num != 2407667328u) { if (num != 2414935827u) { if (num != 2430139328u) { goto IL_6E9; } if (!(text == "lacoste nl")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-NL-Site/fr/"); } else { if (!(text == "lacoste dk")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-DK-Site/fr/"); } } else { if (!(text == "mr porter eu")) { goto IL_6E9; } @class = new Class46(jtoken, "intl", "gb"); } } else if (num <= 2661617280u) { if (num <= 2551966898u) { if (num <= 2500795398u) { if (num != 2464533209u) { if (num != 2500795398u) { goto IL_6E9; } if (!(text == "lacoste pl")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-PL-Site/fr/"); } else { if (!(text == "lacoste ch")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-CH-Site/fr/"); } } else if (num != 2505773186u) { if (num != 2551966898u) { goto IL_6E9; } if (!(text == "lacoste uk")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-GB-Site/en/"); } else { if (!(text == "mr porter us")) { goto IL_6E9; } @class = new Class46(jtoken, "am", "us"); } } else if (num <= 2581976542u) { if (num != 2563815827u) { if (num != 2581976542u) { goto IL_6E9; } if (!(text == "lacoste ca")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-CA-Site/fr/"); } else { if (!(text == "lacoste kr")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-KR-Site/fr/"); } } else if (num != 2599048351u) { if (num != 2649822493u) { if (num != 2661617280u) { goto IL_6E9; } if (!(text == "champs sports ")) { goto IL_6E9; } @class = new Class51(jtoken, "champssports.com"); } else { if (!(text == "lacoste de")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-DE-Site/fr/"); } } else { if (!(text == "lacoste at")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-AT-Site/fr/"); } } else if (num <= 3023372879u) { if (num <= 2866210327u) { if (num != 2666305922u) { if (num != 2866210327u) { goto IL_6E9; } if (!(text == "lacoste it")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-IT-Site/fr/"); } else { if (!(text == "lacoste fr")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-FR-Site/fr/"); } } else if (num != 2954629754u) { if (num != 3023372879u) { goto IL_6E9; } if (!(text == "footlocker eu ")) { goto IL_6E9; } @class = new Class49(jtoken); } else { if (!(text == "lacoste us")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-FlagShip-Site/en_US/"); } } else if (num <= 3395413464u) { if (num != 3117874612u) { if (num != 3395413464u) { goto IL_6E9; } if (!(text == "eastbay ")) { goto IL_6E9; } @class = new Class51(jtoken, "eastbay.com"); } else { if (!(text == "lacoste ie")) { goto IL_6E9; } @class = new Class53(jtoken, "/on/demandware.store/Sites-IE-Site/fr/"); } } else if (num != 3491784070u) { if (num != 3987781139u) { if (num != 4224345091u) { goto IL_6E9; } if (!(text == "footlocker ca")) { goto IL_6E9; } @class = new Class47(jtoken, "footlocker.ca"); } else { if (!(text == "footlocker us")) { goto IL_6E9; } @class = new Class47(jtoken, "footlocker.com"); } } else { if (!(text == "off-white")) { goto IL_6E9; } @class = new Class48(jtoken); } IL_6FA: if ([email protected]_1) { Class130.dictionary_0[(int)jtoken["id"]] = @class; @class.vmethod_0(); continue; } continue; IL_6E9: @class = new Class52(jtoken, string_0); goto IL_6FA; } } } catch { } }
internal static void smethod_3(Class53 licenseInfo) { int num = (int)MessageBox.Show("This is a trial version of Wout Ware's " + licenseInfo.ProductName + " (" + licenseInfo.TrialDaysLeft.ToString() + " days left).", licenseInfo.ProductName + " Trial"); }
// Token: 0x060009AA RID: 2474 RVA: 0x00038324 File Offset: 0x00036524 private string method_38(JsonWriter jsonWriter_0, object object_0, JsonContract jsonContract_0, out bool bool_0) { if (jsonContract_0.enum8_0 == (Enum8)3) { JsonPrimitiveContract jsonPrimitiveContract = (JsonPrimitiveContract)jsonContract_0; switch (jsonPrimitiveContract.method_5()) { case (Enum3)22: case (Enum3)23: { float num = (float)object_0; bool_0 = false; return(num.ToString("R", CultureInfo.InvariantCulture)); } case (Enum3)24: case (Enum3)25: { double num2 = (double)object_0; bool_0 = false; return(num2.ToString("R", CultureInfo.InvariantCulture)); } case (Enum3)26: case (Enum3)27: { DateTime dateTime_ = Class25.smethod_2((DateTime)object_0, jsonWriter_0.DateTimeZoneHandling); bool_0 = false; StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture); Class25.smethod_24(stringWriter, dateTime_, jsonWriter_0.DateFormatHandling, jsonWriter_0.DateFormatString, jsonWriter_0.Culture); return(stringWriter.ToString()); } case (Enum3)28: case (Enum3)29: { bool_0 = false; StringWriter stringWriter2 = new StringWriter(CultureInfo.InvariantCulture); Class25.IxisRjgvuh(stringWriter2, (DateTimeOffset)object_0, jsonWriter_0.DateFormatHandling, jsonWriter_0.DateFormatString, jsonWriter_0.Culture); return(stringWriter2.ToString()); } default: { bool_0 = true; string result; if (jsonPrimitiveContract.bool_2 && Class53.smethod_3(jsonPrimitiveContract.type_0, object_0, null, out result)) { return(result); } return(Convert.ToString(object_0, CultureInfo.InvariantCulture)); } } } else { string result2; if (Class119.smethod_0(object_0, object_0.GetType(), out result2)) { bool_0 = true; return(result2); } bool_0 = true; return(object_0.ToString()); } }
private static Class53 smethod_2( Class53 licenseInfo, Assembly assembly, Attribute0 productAttribute, Enum0 requiredEdition) { string xmlString = "<RSAKeyValue><Modulus>5tmp6YoXLdKEUTC0PvXQmgM9V+jtb2LBV/6nCO8l/4StX9muFDQRSrtJAEH8sXcHu5Fgr7Y00oddMMSwfjXgiAG0b4WMhfF3s2/Cpw9MqFJXVnoeMr8dKHCr2Dp6cue6yCb3rIwjbRCYavYCHFmywBhrfztx6m125PD6TuDYDN0=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue>"; RSACryptoServiceProvider cryptoServiceProvider = new RSACryptoServiceProvider(new CspParameters() { Flags = CspProviderFlags.UseMachineKeyStore }); cryptoServiceProvider.FromXmlString(xmlString); XmlDocument license = License.GetLicense(); SignedXml signedXml = new SignedXml(license); try { XmlNode xmlNode = license.GetElementsByTagName("Signature", "http://www.w3.org/2000/09/xmldsig#")[0]; signedXml.LoadXml((XmlElement)xmlNode); } catch (Exception ex) { licenseInfo.Message = "Error: no signature found."; licenseInfo.Exception = ex; return(licenseInfo); } if (signedXml.CheckSignature((AsymmetricAlgorithm)cryptoServiceProvider)) { XmlNodeList elementsByTagName1 = license.GetElementsByTagName("product"); XmlNode xmlNode1 = (XmlNode)null; foreach (XmlNode xmlNode2 in elementsByTagName1) { if (xmlNode2.Attributes["name"].Value == licenseInfo.ProductName) { xmlNode1 = xmlNode2; break; } } if (xmlNode1 == null) { licenseInfo.Message = "Wrong license."; return(licenseInfo); } Version version1 = assembly.GetName().Version; string[] strArray = xmlNode1.Attributes["version"].Value.Split('.'); Version version2 = new Version(strArray[0] == "*" ? (int)byte.MaxValue : int.Parse(strArray[0], (IFormatProvider)CultureInfo.InvariantCulture), strArray[1] == "*" ? (int)byte.MaxValue : int.Parse(strArray[1], (IFormatProvider)CultureInfo.InvariantCulture), strArray[2] == "*" ? (int)byte.MaxValue : int.Parse(strArray[2], (IFormatProvider)CultureInfo.InvariantCulture)); if (version1.CompareTo(version2) > 0) { licenseInfo.Message = "Wrong license version."; return(licenseInfo); } Enum0 enum0 = Enum0.const_0; switch (xmlNode1.Attributes["edition"].Value) { case "basic": enum0 = Enum0.const_1; break; case "standard": enum0 = Enum0.const_2; break; case "professional": enum0 = Enum0.const_3; break; } if (requiredEdition > enum0) { licenseInfo.Message = "Insufficient license edition."; return(licenseInfo); } if (DateTime.Parse(xmlNode1.Attributes["expirationDate"].Value, (IFormatProvider)CultureInfo.InvariantCulture) < productAttribute.ReleaseDate) { licenseInfo.Message = "The license is not valid for this release of " + licenseInfo.ProductName + ", renew your license."; return(licenseInfo); } string str = xmlNode1.Attributes["type"].Value; if (str == "runtime") { licenseInfo.LicensedEdition = enum0; XmlNodeList elementsByTagName2 = license.GetElementsByTagName("licensee"); licenseInfo.Licensee = elementsByTagName2[0].InnerText; return(licenseInfo); } if (str == "trial") { licenseInfo.IsTrial = true; DateTime firstUsedDate; DateTime lastUsedDate; if (Class123.smethod_4(productAttribute, out firstUsedDate, out lastUsedDate)) { DateTime t1 = firstUsedDate.AddDays(31.0); DateTime utcNow = DateTime.UtcNow; if (lastUsedDate.Ticks > utcNow.Ticks) { licenseInfo.Message = "Licence check error."; return(licenseInfo); } Class123.smethod_5(productAttribute, firstUsedDate, utcNow); if (DateTime.Compare(t1, utcNow) >= 0) { licenseInfo.TrialDaysLeft = Math.Max(0, t1.Subtract(utcNow).Days); licenseInfo.LicensedEdition = enum0; return(licenseInfo); } licenseInfo.Message = "Trial period of 30 days expired."; return(licenseInfo); } licenseInfo.TrialDaysLeft = 30; Class123.smethod_5(productAttribute, DateTime.UtcNow, DateTime.UtcNow); licenseInfo.LicensedEdition = enum0; return(licenseInfo); } licenseInfo.Message = "Wrong license type."; return(licenseInfo); } licenseInfo.Message = "Invalid license."; return(licenseInfo); }
public Class52(Class53 dc) { this.method_0(dc); }
// Token: 0x06000687 RID: 1671 RVA: 0x0000733F File Offset: 0x0000553F public static bool smethod_2(Type type_0, object object_0, bool bool_0, out string string_0) { return(Class53.smethod_3(type_0, object_0, bool_0 ? Class53.camelCaseNamingStrategy_0 : null, out string_0)); }
// Token: 0x06001455 RID: 5205 RVA: 0x00025048 File Offset: 0x00023248 public void CdromRipMediaError(GInterface4 pCdromRip, object pMedia) { Class53 class53_ = new Class53(pCdromRip, pMedia); this.class24_0.method_33(this.class24_0, class53_); }
// Token: 0x0600068C RID: 1676 RVA: 0x0002B8A8 File Offset: 0x00029AA8 public static object smethod_7(Type type_0, object object_0, string string_0, bool bool_0) { Class101.smethod_0(type_0, "enumType"); Class101.smethod_0(string_0, "value"); if (!type_0.smethod_8()) { throw new ArgumentException("Type provided must be an Enum.", "enumType"); } Class52 @class = Class53.class99_0.Get(new Struct9 <Type, NamingStrategy>(type_0, object_0)); string[] string_ = @class.string_0; string[] string_2 = @class.string_1; ulong[] ulong_ = @class.ulong_0; int? num = Class53.smethod_9(string_2, string_0, 0, string_0.Length, StringComparison.Ordinal); if (num != null) { return(Enum.ToObject(type_0, ulong_[num.Value])); } int num2 = -1; int i = 0; while (i < string_0.Length) { if (char.IsWhiteSpace(string_0[i])) { i++; } else { num2 = i; IL_A9: if (num2 == -1) { throw new ArgumentException("Must specify valid information for parsing in the string."); } char c = string_0[num2]; if (char.IsDigit(c) || c == '-' || c == '+') { Type underlyingType = Enum.GetUnderlyingType(type_0); string_0 = string_0.Trim(); object obj = null; try { obj = Convert.ChangeType(string_0, underlyingType, CultureInfo.InvariantCulture); } catch (FormatException) { } if (obj != null) { if (bool_0) { throw new FormatException("Integer string '{0}' is not allowed.".smethod_0(CultureInfo.InvariantCulture, string_0)); } return(Enum.ToObject(type_0, obj)); } } ulong num3 = 0UL; int j = num2; while (j <= string_0.Length) { int num4 = string_0.IndexOf(',', j); if (num4 == -1) { num4 = string_0.Length; } int num5 = num4; while (j < num4 && char.IsWhiteSpace(string_0[j])) { j++; } while (num5 > j && char.IsWhiteSpace(string_0[num5 - 1])) { num5--; } int int_ = num5 - j; num = Class53.smethod_8(string_0, string_, string_2, j, int_, StringComparison.Ordinal); if (num == null) { num = Class53.smethod_8(string_0, string_, string_2, j, int_, StringComparison.OrdinalIgnoreCase); } if (num != null) { num3 |= ulong_[num.Value]; j = num4 + 1; } else { num = Class53.smethod_9(string_2, string_0, 0, string_0.Length, StringComparison.OrdinalIgnoreCase); if (num == null) { throw new ArgumentException("Requested value '{0}' was not found.".smethod_0(CultureInfo.InvariantCulture, string_0)); } return(Enum.ToObject(type_0, ulong_[num.Value])); } } return(Enum.ToObject(type_0, num3)); } } goto IL_A9; }