Show / Hide Table of Contents

Class LenientStringToIntConverter

The lenient StringToIntConverter allows for int or int? objects have alphabetic characters. If the string is not parsable as integer 0 is used in case of (int) and null in case of (int?).

Inheritance
System.Object
LenientStringToIntConverter
Namespace: BO4E.meta.LenientConverters
Assembly: BO4Enet.dll
Syntax
public class LenientStringToIntConverter : JsonConverter
Examples

(string)"12" will be parsed as (int)12 where an integer value is expected.

Properties

| Improve this Doc View Source

CanWrite

Declaration
public override bool CanWrite { get; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

CanConvert(Type)

Declaration
public override bool CanConvert(Type objectType)
Parameters
Type Name Description
Type objectType
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ReadJson(JsonReader, Type, Object, JsonSerializer)

Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type Name Description
JsonReader reader
Type objectType
System.Object existingValue
JsonSerializer serializer
Returns
Type Description
System.Object
| Improve this Doc View Source

WriteJson(JsonWriter, Object, JsonSerializer)

Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type Name Description
JsonWriter writer
System.Object value
JsonSerializer serializer

Extension Methods

BusinessObjectExtensions.DeepClone<T>(T)
COMExtensions.DeepClone<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX