// Token: 0x060010FA RID: 4346 RVA: 0x00060498 File Offset: 0x0005E698 private BidirectionalDictionary<string, object> GetMappings(object context) { JsonSerializerInternalBase jsonSerializerInternalBase = context as JsonSerializerInternalBase; if (jsonSerializerInternalBase == null) { JsonSerializerProxy jsonSerializerProxy = context as JsonSerializerProxy; if (jsonSerializerProxy == null) { throw new JsonException("The DefaultReferenceResolver can only be used internally."); } jsonSerializerInternalBase = jsonSerializerProxy.GetInternalSerializer(); } return jsonSerializerInternalBase.DefaultReferenceMappings; }
private BidirectionalDictionary <string, object> GetMappings(object context) { JsonSerializerInternalBase internalSerializer = context as JsonSerializerInternalBase; if (internalSerializer == null) { JsonSerializerProxy proxy = context as JsonSerializerProxy; if (proxy != null) { internalSerializer = proxy.GetInternalSerializer(); } else { throw new JsonException("The DefaultReferenceResolver can only be used internally."); } } return(internalSerializer.DefaultReferenceMappings); }