public TargetReadHandler( JsonReader reader, JsonSerializer serializer, AConverterReadHandler parent, TargetAssets targetAssets) : base(reader, serializer, parent) { this.targetAssets = targetAssets; }
protected override AConverterReadHandler Handle(JsonToken tknType) { switch (tknType) { case JsonToken.StartObject: break; case JsonToken.EndObject: return(this.Parent); case JsonToken.PropertyName: var targetName = (string)this.Reader.Value; var targetAssets = new TargetAssets(targetName); this.addTarget(targetAssets); return(new TargetReadHandler(this.Reader, this.Serializer, this, targetAssets)); default: break; } return(this); }