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

◆ ShouldWriteDynamicProperty()

bool Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.ShouldWriteDynamicProperty ( object memberValue)
inlineprivate

Definition at line 507 of file JsonSerializerInternalWriter.cs.

508 {
509 JsonSerializer serializer = this.Serializer;
510 NullValueHandling nullValueHandling;
511 if (memberValue == null)
512 {
514 }
515 DefaultValueHandling defaultValueHandling = serializer._defaultValueHandling;
516 while (memberValue == null)
517 {
518 }
519 Type type = memberValue.GetType();
520 if (nullValueHandling == NullValueHandling.Include)
521 {
522 }
523 object defaultValue = ReflectionUtils.GetDefaultValue(type);
524 bool flag = MiscellaneousUtils.ValueEquals(memberValue, defaultValue);
525 return true;
526 }
class f__AnonymousType0<< Count > j__TPar
NullValueHandling _nullValueHandling
static bool ValueEquals(object objA, object objB)
new Type GetType()
Definition Type.cs:287

References Newtonsoft.Json.JsonSerializer._nullValueHandling, Newtonsoft.Json.Utilities.ReflectionUtils.GetDefaultValue(), System.Type.GetType(), j__TPar, Newtonsoft.Json.Serialization.JsonSerializerInternalBase.Serializer, and Newtonsoft.Json.Utilities.MiscellaneousUtils.ValueEquals().