terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ GetByteArray()

byte[] Newtonsoft.Json.Converters.BinaryConverter.GetByteArray ( object value)
inlineprivate

Definition at line 24 of file BinaryConverter.cs.

25 {
26 bool flag = value.GetType().AssignableToTypeName("System.Data.Linq.Binary");
27 Type type = value.GetType();
28 this.EnsureReflectionObject(type);
29 object value2 = this._reflectionObject.GetValue(value, "ToArray");
30 if (value2 == null || value2 != null)
31 {
34 string text = "Unexpected value type when writing binary: {0}".FormatWith(invariantCulture, type2);
35 }
36 throw new InvalidCastException();
37 }
class f__AnonymousType0<< Count > j__TPar
object GetValue(object target, string member)
static CultureInfo InvariantCulture
new Type GetType()
Definition Type.cs:287

References Newtonsoft.Json.Converters.BinaryConverter._reflectionObject, Newtonsoft.Json.Converters.BinaryConverter.EnsureReflectionObject(), System.Type.GetType(), Newtonsoft.Json.Utilities.ReflectionObject.GetValue(), System.Globalization.CultureInfo.InvariantCulture, j__TPar, System.text, and System.value.

Referenced by Newtonsoft.Json.Converters.BinaryConverter.WriteJson().