C# Класс CrestSharp.Infrastructure.CrestJsonContractResolver

This contract resolver gets only private fields through the whole class hierarchy for ICrestObject subclasses. This is unfortunately needed, because JSON.NET always reads a _property_ when it writes it with a custom JsonConverter. That means a lazy load of an object would trigger an infinite loop of loading the same object. Therefor we use this to read/write the backing fields instead of the properties which doesn't trigger the lazy loading.
Наследование: Newtonsoft.Json.Serialization.DefaultContractResolver
Показать файл Открыть проект

Защищенные методы

Метод Описание
CreateProperties ( Type type, MemberSerialization memberSerialization ) : IList

Приватные методы

Метод Описание
GetAllFields ( Type t ) : IEnumerable

Описание методов

CreateProperties() защищенный Метод

protected CreateProperties ( Type type, MemberSerialization memberSerialization ) : IList
type System.Type
memberSerialization MemberSerialization
Результат IList