private static object \uE01D(Stream \uE053, \uE015 \uE054, sbyte \uE055, Type \uE056) { Type type = typeof(object); Type type2 = typeof(object); if (\uE056.IsGenericType) { Type[] genericArguments = \uE056.GetGenericArguments(); if (genericArguments.Length >= 1) { type = genericArguments[0]; } if (genericArguments.Length >= 2) { type2 = genericArguments[1]; } } int num = CpInazumaMsgPack.\uE005(\uE053, \uE054, \uE055); IDictionary dictionary = Activator.CreateInstance(typeof(Dictionary <, >).MakeGenericType(new Type[] { type, type2 })) as IDictionary; for (int i = 0; i < num; i++) { object key = CpInazumaMsgPack.Unpack(\uE053, type); object value = CpInazumaMsgPack.Unpack(\uE053, type2); dictionary.Add(key, value); } return(dictionary); }
private static byte[] \uE01F(Stream \uE05A, \uE015 \uE05B, sbyte \uE05C) { int num = CpInazumaMsgPack.\uE005(\uE05A, \uE05B, \uE05C); byte[] array = new byte[num]; \uE05A.Read(array, 0, num); return(array); }
private static string \uE01E(Stream \uE057, \uE015 \uE058, sbyte \uE059) { int num = CpInazumaMsgPack.\uE005(\uE057, \uE058, \uE059); byte[] array = new byte[num]; \uE057.Read(array, 0, num); return(CpInazumaMsgPack.\uE000.GetString(array)); }
private static object \uE020(Stream \uE05D, ref \uE017 \uE05E) { sbyte b = 0; \uE015 uE = CpInazumaMsgPack.\uE00A(\uE05D, out b); object obj = Activator.CreateInstance(\uE05E.\uE000); if (CpInazumaMsgPack.\uE010(uE)) { int num = CpInazumaMsgPack.\uE005(\uE05D, uE, b); for (int i = 0; i < num; i++) { CpInazumaMsgPack.\uE001 uE2 = new CpInazumaMsgPack.\uE001(); uE = CpInazumaMsgPack.\uE00A(\uE05D, out b); uE2.\uE000 = CpInazumaMsgPack.\uE01E(\uE05D, uE, b); \uE016 uE3 = \uE05E.\uE001.Find(new Predicate <\uE016>(uE2.\uE000)); if (uE3 == null) { CpInazumaMsgPack.Unpack(\uE05D, typeof(object)); } else { TypeCode typeCode = Type.GetTypeCode(uE3.\uE002.FieldType); object value = CpInazumaMsgPack.\uE014(CpInazumaMsgPack.Unpack(\uE05D, uE3.\uE002.FieldType), typeCode); uE3.\uE002.SetValue(obj, value); } } return(obj); } if (CpInazumaMsgPack.\uE00F(uE)) { \uE05D.Seek((long)CpInazumaMsgPack.\uE004(uE, b), SeekOrigin.Current); return(CpInazumaMsgPack.\uE020(\uE05D, ref \uE05E)); } \uE05D.Seek(-1L, SeekOrigin.Current); if (uE == global::\uE015.\uE00A) { return(null); } for (int j = 0; j < \uE05E.\uE001.Count; j++) { FieldInfo uE4 = \uE05E.\uE001[j].\uE002; object obj2 = CpInazumaMsgPack.Unpack(\uE05D, uE4.FieldType); if (obj2 != null) { uE4.SetValue(obj, Convert.ChangeType(obj2, uE4.FieldType)); } } return(obj); }
private static object \uE01C(Stream \uE04F, \uE015 \uE050, sbyte \uE051, Type \uE052) { int num = CpInazumaMsgPack.\uE005(\uE04F, \uE050, \uE051); Type type = null; IList list = CpInazumaMsgPack.\uE013(\uE052, num, out type); for (int i = 0; i < num; i++) { object value = CpInazumaMsgPack.Unpack(\uE04F, type); try { list[i] = Convert.ChangeType(value, type); } catch (InvalidCastException) { list[i] = value; } } return(list); }
private static string \uE023(Stream \uE062, \uE015 \uE063, sbyte \uE064) { if (\uE063 == global::\uE015.\uE00B) { return(global::\uE019.\uE000(12244)); } if (\uE063 == global::\uE015.\uE00A) { return(global::\uE019.\uE000(12078)); } if (CpInazumaMsgPack.\uE00E(\uE063)) { return(CpInazumaMsgPack.\uE01B(\uE062, \uE063, \uE064).ToString()); } if (CpInazumaMsgPack.\uE00F(\uE063)) { int num = CpInazumaMsgPack.\uE005(\uE062, \uE063, \uE064); return(string.Format(global::\uE019.\uE000(12075), num)); } if (CpInazumaMsgPack.\uE010(\uE063)) { int num2 = CpInazumaMsgPack.\uE005(\uE062, \uE063, \uE064); return(string.Format(global::\uE019.\uE000(12085), num2)); } if (CpInazumaMsgPack.\uE011(\uE063)) { string text = CpInazumaMsgPack.\uE01E(\uE062, \uE063, \uE064); if (CpInazumaMsgPack.\uE00A) { text = text.Replace(global::\uE019.\uE000(12036), "").Replace(global::\uE019.\uE000(12038), ""); } return(string.Format(global::\uE019.\uE000(12032), text.Substring(0, Math.Min(text.Length, CpInazumaMsgPack.\uE009)))); } if (CpInazumaMsgPack.\uE012(\uE063)) { return(string.Format(global::\uE019.\uE000(12062), CpInazumaMsgPack.\uE01F(\uE062, \uE063, \uE064).Length)); } return(string.Empty); }