// Token: 0x060006BC RID: 1724 RVA: 0x0002C2A8 File Offset: 0x0002A4A8 public static void smethod_9(Assembly assembly_1) { if (!Class59.bool_0) { object obj = Class59.object_0; lock (obj) { if (!Class59.bool_0) { Class59.smethod_1(assembly_1); Type type = assembly_1.GetType("Microsoft.FSharp.Reflection.FSharpType"); MethodInfo methodBase_ = Class59.smethod_10(type, "IsUnion", BindingFlags.Static | BindingFlags.Public); Class59.IsUnion = Class124.smethod_19().vmethod_0 <object>(methodBase_); MethodInfo methodBase_2 = Class59.smethod_10(type, "GetUnionCases", BindingFlags.Static | BindingFlags.Public); Class59.GetUnionCases = Class124.smethod_19().vmethod_0 <object>(methodBase_2); Type type2 = assembly_1.GetType("Microsoft.FSharp.Reflection.FSharpValue"); Class59.PreComputeUnionTagReader = Class59.smethod_11(type2, "PreComputeUnionTagReader"); Class59.PreComputeUnionReader = Class59.smethod_11(type2, "PreComputeUnionReader"); Class59.PreComputeUnionConstructor = Class59.smethod_11(type2, "PreComputeUnionConstructor"); Type type3 = assembly_1.GetType("Microsoft.FSharp.Reflection.UnionCaseInfo"); Class59.smethod_5(Class124.smethod_19().vmethod_3 <object>(type3.GetProperty("Name"))); Class59.smethod_7(Class124.smethod_19().vmethod_3 <object>(type3.GetProperty("Tag"))); Class59.smethod_3(Class124.smethod_19().vmethod_3 <object>(type3.GetProperty("DeclaringType"))); Class59.smethod_8(Class124.smethod_19().vmethod_0 <object>(type3.GetMethod("GetFields"))); Class59.methodInfo_0 = assembly_1.GetType("Microsoft.FSharp.Collections.ListModule").GetMethod("OfSeq"); Class59.kXkxeOrhTr = assembly_1.GetType("Microsoft.FSharp.Collections.FSharpMap`2"); Thread.MemoryBarrier(); Class59.bool_0 = true; } } } }
public bool method_20(SizeF A_0) { return((Class59.smethod_2((double)A_0.Width, (double)this.method_0().Width) <= 0) && (Class59.smethod_1((double)A_0.Height, (double)this.method_0().Height, false) <= 0)); }
// Token: 0x0600020A RID: 522 RVA: 0x000129B4 File Offset: 0x00010BB4 public static byte[] smethod_0(string string_0) { if (string_0 == null) { throw new Exception(); } MemoryStream memoryStream = new MemoryStream(string_0.Length * 4 / 5); byte[] result; try { int num = 0; uint num2 = 0u; foreach (char c in string_0) { if (c == 'z' && num == 0) { Class59.smethod_1(memoryStream, num2, 0); } else { if (c < '!' || c > 'u') { throw new Exception(); } checked { num2 += (uint)(unchecked ((ulong)Class59.uint_0[num]) * (ulong)(unchecked ((long)(checked (c - '!'))))); } num++; if (num == 5) { Class59.smethod_1(memoryStream, num2, 0); num = 0; num2 = 0u; } } } if (num == 1) { throw new Exception(); } if (num > 1) { for (int j = num; j < 5; j++) { checked { num2 += 84u * Class59.uint_0[j]; } } Class59.smethod_1(memoryStream, num2, 5 - num); } result = memoryStream.ToArray(); } finally { ((IDisposable)memoryStream).Dispose(); } return(result); }