SimpleVersion
Search Results for

    Show / Hide Table of Contents

    Class IntConverter

    Enables converting a JSON number or string as an int.

    Inheritance
    System.Object
    System.Text.Json.Serialization.JsonConverter
    System.Text.Json.Serialization.JsonConverter<System.Int32>
    IntConverter
    Inherited Members
    System.Text.Json.Serialization.JsonConverter<System.Int32>.CanConvert(System.Type)
    System.Text.Json.Serialization.JsonConverter<System.Int32>.ReadAsPropertyName(System.Text.Json.Utf8JsonReader, System.Type, System.Text.Json.JsonSerializerOptions)
    System.Text.Json.Serialization.JsonConverter<System.Int32>.WriteAsPropertyName(System.Text.Json.Utf8JsonWriter, System.Int32, System.Text.Json.JsonSerializerOptions)
    System.Text.Json.Serialization.JsonConverter<System.Int32>.HandleNull
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: SimpleVersion.Serialization.Converters
    Assembly: SimpleVersion.Core.dll
    Syntax
    public class IntConverter : JsonConverter<int>

    Methods

    | Improve this Doc View Source

    Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

    Declaration
    public override int Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
    Parameters
    Type Name Description
    System.Text.Json.Utf8JsonReader reader
    System.Type typeToConvert
    System.Text.Json.JsonSerializerOptions options
    Returns
    Type Description
    System.Int32
    Overrides
    System.Text.Json.Serialization.JsonConverter<System.Int32>.Read(System.Text.Json.Utf8JsonReader, System.Type, System.Text.Json.JsonSerializerOptions)
    | Improve this Doc View Source

    Write(Utf8JsonWriter, Int32, JsonSerializerOptions)

    Declaration
    public override void Write(Utf8JsonWriter writer, int value, JsonSerializerOptions options)
    Parameters
    Type Name Description
    System.Text.Json.Utf8JsonWriter writer
    System.Int32 value
    System.Text.Json.JsonSerializerOptions options
    Overrides
    System.Text.Json.Serialization.JsonConverter<System.Int32>.Write(System.Text.Json.Utf8JsonWriter, System.Int32, System.Text.Json.JsonSerializerOptions)

    Extension Methods

    TokenRuleExtensions.ResolveTokenRules<T>(T, IVersionContext, IEnumerable<ITokenRule<T>>)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX