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
파일 보기 프로젝트 열기: rischwa/eve-fast-fitting-assessment

보호된 메소드들

메소드 설명
CreateProperties ( Type type, MemberSerialization memberSerialization ) : IList

비공개 메소드들

메소드 설명
GetAllFields ( Type t ) : IEnumerable

메소드 상세

CreateProperties() 보호된 메소드

protected CreateProperties ( Type type, MemberSerialization memberSerialization ) : IList
type System.Type
memberSerialization MemberSerialization
리턴 IList