skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder Design System Kit
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Free Tools
    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
    • Functional UI Testing
    • RESTful API Testing
    • Load Testing
    • Remote Test Execution
    • Agile Teams
    • Web Test Automation
    • Desktop Test Automation
    • Responsive UI Testing
    • Continuous Testing
    • Test Studio Trainings
    • Test Studio Consulting
    • Docs and Support
    • Documentation
    • Virtual Classroom
    • Videos
    • Blogs
    • Webinars
    • Whitepapers
    • Case Studies
    • Feedback Portal
    • Technical Support
    • What’s New
    • Roadmap
    • Release Notes
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Request a demo Try now

Class JsonKnownTypeConverter

Inheritance
System.Object
JsonKnownTypeConverter
Namespace: ArtOfTest.Common.Serialization
Assembly: ArtOfTest.WebAii.dll

Syntax

public class JsonKnownTypeConverter : JsonConverter

Constructors

JsonKnownTypeConverter(IEnumerable<Type>)

Declaration
public JsonKnownTypeConverter(IEnumerable<Type> knownTypes)
Parameters
System.Collections.Generic.IEnumerable<System.Type> knownTypes

Methods

CanConvert(Type)

Declaration
public override bool CanConvert(Type objectType)
Parameters
System.Type objectType

Returns
System.Boolean

Create(Type, JToken)

Declaration
protected object Create(Type objectType, JToken jObject)
Parameters
System.Type objectType

Newtonsoft.Json.Linq.JToken jObject

Returns
System.Object

OnTypeResolveFailure(String, Type)

Declaration
protected Type OnTypeResolveFailure(string requestedType, Type objectType)
Parameters
System.String requestedType

System.Type objectType

Returns
System.Type

ReadJson(JsonReader, Type, Object, JsonSerializer)

Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Newtonsoft.Json.JsonReader reader

System.Type objectType

System.Object existingValue

Newtonsoft.Json.JsonSerializer serializer

Returns
System.Object

UpdateKnownTypes(IList<Type>)

Declaration
public void UpdateKnownTypes(IList<Type> typesToAdd)
Parameters
System.Collections.Generic.IList<System.Type> typesToAdd

WriteJson(JsonWriter, Object, JsonSerializer)

Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Newtonsoft.Json.JsonWriter writer

System.Object value

Newtonsoft.Json.JsonSerializer serializer

Events

TypeResolveFailure

Declaration
public event Action<TypeResolveFailureArgs> TypeResolveFailure
Event Type
System.Action<TypeResolveFailureArgs>

Getting Started
  • Getting Started
  • Videos
  • Whats New
  • Roadmap
Community
  • Forums
  • Blogs
  • Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.