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

◆ CheckForCircularReference()

bool Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CheckForCircularReference ( JsonWriter writer,
object value,
JsonProperty property,
JsonContract contract,
JsonContainerContract containerContract,
JsonProperty containerProperty )
inlineprivate

Definition at line 191 of file JsonSerializerInternalWriter.cs.

192 {
193 while (value != null)
194 {
195 JsonContractType contractType = contract.ContractType;
196 if (property != null)
197 {
198 ReferenceLoopHandling? <ReferenceLoopHandling>k__BackingField = property.<ReferenceLoopHandling>k__BackingField;
199 if (containerProperty == null)
200 {
201 return " for property '{0}'" != null;
202 }
203 }
204 else if (containerProperty != null)
205 {
206 }
207 if (containerContract != null)
208 {
209 }
210 JsonSerializer serializer = this.Serializer;
212 if (serializer._equalityComparer != null)
213 {
214 bool flag;
215 return flag;
216 }
217 string text2;
218 if (property != null)
219 {
220 if ("Self referencing loop detected" == null)
221 {
222 }
224 string propertyName = property._propertyName;
225 string text = " for property '{0}'".FormatWith(invariantCulture, propertyName);
226 text2 = "Self referencing loop detected" + text;
227 }
228 if (" for property '{0}'" == null)
229 {
230 }
232 Type type = value.GetType();
233 string text3 = " with type '{0}'.".FormatWith(invariantCulture2, type);
234 string text4 = text2 + text3;
235 ReferenceLoopHandling referenceLoopHandling = this.Serializer._referenceLoopHandling;
236 if (text4 != null)
237 {
238 return;
239 }
240 string containerPath = writer.ContainerPath;
241 if (this.TraceWriter == null)
242 {
243 return;
244 }
245 if (this.TraceWriter != null)
246 {
247 ITraceWriter traceWriter = this.TraceWriter;
248 string text5 = text4 + ". Serializing self referenced value.";
249 string text6 = text5 + ". Skipping serializing self referenced value.";
250 return;
251 }
252 }
253 }
class f__AnonymousType0<< Count > j__TPar
ReferenceLoopHandling _referenceLoopHandling
static CultureInfo InvariantCulture
new Type GetType()
Definition Type.cs:287

References Newtonsoft.Json.JsonSerializer._equalityComparer, Newtonsoft.Json.JsonSerializer._referenceLoopHandling, Newtonsoft.Json.Serialization.JsonSerializerInternalWriter._serializeStack, Newtonsoft.Json.JsonWriter.ContainerPath, System.Type.GetType(), System.Globalization.CultureInfo.InvariantCulture, j__TPar, Newtonsoft.Json.Serialization.JsonSerializerInternalBase.Serializer, System.text, Newtonsoft.Json.Serialization.JsonSerializerInternalBase.TraceWriter, and System.value.