• Manual
  • API Documentation
  • Bayat.Json
  • JsonTextWriter

    Show / Hide Table of Contents
    • Bayat
      • UnityThread
    • Bayat.Core
      • AddReferenceWindow
      • AddReferenceWindow.Dependency
      • AssetReferenceResolver
      • AssetReferenceResolverEditor
      • BayatEditorStyles
      • CoreAssetPostProcessor
      • EditorApplicationUtility
      • MaterialPropertiesResolver
      • MaterialPropertiesResolverEditor
      • ReferenceCheckerWindow
      • ReferenceResolverMode
      • RuntimeMaterialProperties
      • RuntimeMaterialProperty
      • RuntimeMaterialPropertyType
      • SceneReferenceResolver
      • SceneReferenceResolverEditor
      • UnityEditorInternalException
    • Bayat.Core.EditorWindows
      • AssetReferenceManagerWindow
      • AssetReferenceManagerWindow.Styles
      • DatabaseMigrationWindow
      • DatabaseMigrationWindow.SceneMigrationStatus
      • DatabaseMigrationWindow.Styles
      • EditorWindowExtensions
      • EditorWindowUtility
      • EditorWindowWrapper
      • SceneReferenceManagerWindow
      • SceneReferenceManagerWindow.Styles
      • WindowClose
      • WrappedEditorWindow
    • Bayat.Core.Profiling
      • ProfiledSegment
      • ProfiledSegmentCollection
      • ProfilingScope
      • ProfilingUtility
    • Bayat.Core.Reflection
      • AssemblyExtensions
      • Codebase
      • RuntimeCodebase
      • TypeExtensions
      • TypeUtility
    • Bayat.Core.Text
      • StringExtensions
      • StringUtility
    • Bayat.Core.Utilities
      • ExceptionExtensions
      • GuidToReferenceDictionary
      • SerializableDictionary<TKey, TVal>
    • Bayat.Json
      • ConstructorHandling
      • CreateObjectConverterWindow
      • CreateObjectConverterWindow.Styles
      • DateFormatHandling
      • DateParseHandling
      • DateTimeZoneHandling
      • DefaultValueHandling
      • FloatFormatHandling
      • FloatParseHandling
      • Formatting
      • GameObjectSerializationHandler
      • GameObjectSerializationManagerTreeView
      • GameObjectSerializationManagerTreeView.Styles
      • GameObjectSerializationManagerWindow
      • GameObjectSerializationManagerWindow.Styles
      • IArrayPool<T>
      • IJsonLineInfo
      • JsonArrayAttribute
      • JsonConstructorAttribute
      • JsonContainerAttribute
      • JsonContainerType
      • JsonConvert
      • JsonConverter
      • JsonConverterAttribute
      • JsonConverterCollection
      • JsonDefaultSettingsWindow
      • JsonDefaultSettingsWindow.Styles
      • JsonDictionaryAttribute
      • JsonException
      • JsonExtensionDataAttribute
      • JsonIgnoreAttribute
      • JsonObjectAttribute
      • JsonPosition
      • JsonPropertyAttribute
      • JsonReader
      • JsonReader.State
      • JsonReaderException
      • JsonRequiredAttribute
      • JsonSerializationException
      • JsonSerializer
      • JsonSerializerSettings
      • JsonSerializerSettingsPreset
      • JsonTextReader
      • JsonTextWriter
      • JsonToken
      • JsonWriter
      • JsonWriter.State
      • JsonWriterException
      • MemberSerialization
      • MetadataPropertyHandling
      • MissingMemberHandling
      • NullValueHandling
      • ObjectCreationHandling
      • PreserveReferencesHandling
      • ReadType
      • ReferenceLoopHandling
      • Required
      • StringEscapeHandling
      • TypeNameHandling
      • WriteState
    • Bayat.Json.Bson
      • BsonArray
      • BsonBinary
      • BsonBinaryType
      • BsonBinaryWriter
      • BsonObject
      • BsonObjectId
      • BsonProperty
      • BsonReader
      • BsonRegex
      • BsonString
      • BsonToken
      • BsonType
      • BsonValue
      • BsonWriter
    • Bayat.Json.Converters
      • AnimatorConverter
      • AudioClipConverter
      • BinaryConverter
      • BoundsConverter
      • BsonObjectIdConverter
      • ColliderConverter
      • ColorConverter
      • CustomCreationConverter<T>
      • DateTimeConverterBase
      • DiscriminatedUnionConverter
      • EntityKeyMemberConverter
      • ExpandoObjectConverter
      • GameObjectConverter
      • HashSetConverter
      • IsoDateTimeConverter
      • JavaScriptDateTimeConverter
      • KeyValuePairConverter
      • MaterialConverter
      • MaterialConverter.JsonSerializedMaterialProperty
      • Matrix4x4Converter
      • MeshConverter
      • MeshConverter.SerializedIndices
      • MeshFilterConverter
      • ObjectJsonConverter
      • QuaternionConverter
      • RectConverter
      • RectTransformConverter
      • RegexConverter
      • RendererConverter
      • ResolutionConverter
      • ShaderConverter
      • SpriteConverter
      • StringEnumConverter
      • Texture2DConverter
      • TransformConverter
      • UnityBehaviourConverter
      • UnityComponentConverter
      • UnityMonoBehaviourConverter
      • UnityObjectConverter
      • UriConverter
      • VectorConverter
      • VersionConverter
      • XmlNodeConverter
    • Bayat.Json.Linq
      • CommentHandling
      • Extensions
      • IJEnumerable<T>
      • JArray
      • JConstructor
      • JContainer
      • JEnumerable<T>
      • JObject
      • JProperty
      • JPropertyDescriptor
      • JPropertyKeyedCollection
      • JRaw
      • JsonLoadSettings
      • JsonMergeSettings
      • JToken
      • JTokenEqualityComparer
      • JTokenReader
      • JTokenType
      • JTokenWriter
      • JValue
      • LineInfoHandling
      • MergeArrayHandling
      • MergeNullValueHandling
    • Bayat.Json.Linq.JsonPath
      • ArrayIndexFilter
      • ArrayMultipleIndexFilter
      • ArraySliceFilter
      • BooleanQueryExpression
      • CompositeExpression
      • FieldFilter
      • FieldMultipleFilter
      • JPath
      • PathFilter
      • QueryExpression
      • QueryFilter
      • QueryOperator
      • ScanFilter
    • Bayat.Json.Serialization
      • CachedAttributeGetter<T>
      • CamelCasePropertyNamesContractResolver
      • DefaultContractResolver
      • DefaultContractResolver.EnumerableDictionaryWrapper<TEnumeratorKey, TEnumeratorValue>
      • DefaultContractResolverState
      • DefaultReferenceResolver
      • DefaultSerializationBinder
      • DefaultSerializationBinder.TypeNameKey
      • DiagnosticsTraceWriter
      • ErrorContext
      • ErrorEventArgs
      • ExpressionValueProvider
      • ExtensionDataGetter
      • ExtensionDataSetter
      • IAttributeProvider
      • IContractResolver
      • IReferenceResolver
      • ITraceWriter
      • IValueProvider
      • JsonArrayContract
      • JsonContainerContract
      • JsonContract
      • JsonContractType
      • JsonDictionaryContract
      • JsonDynamicContract
      • JsonFormatterConverter
      • JsonISerializableContract
      • JsonLinqContract
      • JsonObjectContract
      • JsonPrimitiveContract
      • JsonProperty
      • JsonPropertyCollection
      • JsonSerializerInternalBase
      • JsonSerializerProxy
      • JsonSerializerReader
      • JsonSerializerReader.CreatorPropertyContext
      • JsonSerializerReader.PropertyPresence
      • JsonSerializerWriter
      • JsonStringContract
      • JsonTypeReflector
      • MemoryTraceWriter
      • ObjectConstructor<T>
      • OnErrorAttribute
      • ReflectionAttributeProvider
      • ReflectionValueProvider
      • ResolverContractKey
      • SerializationCallback
      • SerializationErrorCallback
      • TraceJsonReader
      • TraceJsonWriter
    • Bayat.Json.Shims
      • PreserveAttribute
    • Bayat.Json.Utilities
      • Base64Encoder
      • BidirectionalDictionary<TFirst, TSecond>
      • BufferUtils
      • CollectionUtils
      • CollectionWrapper<T>
      • ConvertUtils
      • ConvertUtils.ConvertResult
      • ConvertUtils.TypeConvertKey
      • Creator<T>
      • DateTimeParser
      • DateTimeUtils
      • DictionaryWrapper<TKey, TValue>
      • DynamicProxy<T>
      • DynamicProxyMetaObject<T>
      • DynamicUtils
      • DynamicUtils.BinderWrapper
      • EnumUtils
      • EnumValue<T>
      • ExpressionReflectionDelegateFactory
      • FSharpFunction
      • FSharpUtils
      • ImmutableCollectionsUtils
      • ImmutableCollectionsUtils.ImmutableCollectionTypeInfo
      • IWrappedCollection
      • IWrappedDictionary
      • JavaScriptUtils
      • JsonTokenUtils
      • LateBoundReflectionDelegateFactory
      • MathUtils
      • MethodCall<T, TResult>
      • MiscellaneousUtils
      • NoThrowExpressionVisitor
      • NoThrowGetBinderMember
      • NoThrowSetBinderMember
      • ParseResult
      • ParserTimeZone
      • PrimitiveTypeCode
      • PropertyNameTable
      • ReflectionDelegateFactory
      • ReflectionMember
      • ReflectionObject
      • ReflectionUtils
      • StringBuffer
      • StringReference
      • StringReferenceExtensions
      • StringUtils
      • ThreadSafeStore<TKey, TValue>
      • TypeInformation
      • ValidationUtils
    • Bayat.SaveSystem
      • AutoSave
      • AutoSaveManager
      • AutoSaveManager.LoadEvent
      • AutoSaveManager.SaveEvent
      • AutoSaveManagerWindow
      • AutoSaveManagerWindow.Styles
      • LoadEventArgs
      • LoadIntoEventArgs
      • SaveEventArgs
      • SaveSystemAPI
      • SaveSystemDefaultSettingsWindow
      • SaveSystemDefaultSettingsWindow.Styles
      • SaveSystemEditorResources
      • SaveSystemJsonSerializer
      • SaveSystemManager
      • SaveSystemSettings
      • SaveSystemSettingsPreset
      • WelcomeWindow
      • WelcomeWindow.Styles
    • Bayat.SaveSystem.Security
      • ISaveSystemEncryption
      • SaveSystemCryptoStream
      • SaveSystemSymmetricCryptoStream
      • SaveSystemSymmetricEncryption
    • Bayat.SaveSystem.Storage
      • BuiltInConnectionFactory
      • ConnectionStringFactory
      • FileStorageStream
      • IConnectionFactory
      • IStorage
      • IStorageStream
      • LocalDiskStorage
      • PlayerPrefsStorage
      • PlayerPrefsStorageStream
      • StorageBackup
      • StorageBase
      • StorageClearOperationResult
      • StorageConnectionString
      • StorageCopyOperationResult
      • StorageDeleteOperationResult
      • StorageFactory
      • StorageFullException
      • StorageInvalidIdentifierException
      • StorageItemNotFoundException
      • StorageListOptions
      • StorageMetaData
      • StorageMoveOperationResult
      • StorageOperationResult
      • StorageStream

    Class JsonTextWriter

    Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.

    Inheritance
    System.Object
    JsonWriter
    JsonTextWriter
    Implements
    System.IDisposable
    Inherited Members
    JsonWriter.StateArrayTempate
    JsonWriter.BuildStateArray()
    JsonWriter.CloseOutput
    JsonWriter.Top
    JsonWriter.WriteState
    JsonWriter.ContainerPath
    JsonWriter.Path
    JsonWriter.Formatting
    JsonWriter.DateFormatHandling
    JsonWriter.DateTimeZoneHandling
    JsonWriter.StringEscapeHandling
    JsonWriter.FloatFormatHandling
    JsonWriter.DateFormatString
    JsonWriter.Culture
    JsonWriter.UpdateScopeWithFinishedValue()
    JsonWriter.WriteEndObject()
    JsonWriter.WriteEndArray()
    JsonWriter.WriteEndConstructor()
    JsonWriter.WriteProperty(String, Object)
    JsonWriter.WriteEnd()
    JsonWriter.WriteToken(JsonReader)
    JsonWriter.WriteToken(JsonReader, Boolean)
    JsonWriter.WriteToken(JsonToken, Object)
    JsonWriter.WriteToken(JsonToken)
    JsonWriter.WriteToken(JsonReader, Boolean, Boolean, Boolean)
    JsonWriter.AutoComplete(JsonToken)
    JsonWriter.WriteRawValue(String)
    JsonWriter.WriteValue(Nullable<Int32>)
    JsonWriter.WriteValue(Nullable<UInt32>)
    JsonWriter.WriteValue(Nullable<Int64>)
    JsonWriter.WriteValue(Nullable<UInt64>)
    JsonWriter.WriteValue(Nullable<Boolean>)
    JsonWriter.WriteValue(Nullable<Int16>)
    JsonWriter.WriteValue(Nullable<UInt16>)
    JsonWriter.WriteValue(Nullable<Char>)
    JsonWriter.WriteValue(Nullable<Byte>)
    JsonWriter.WriteValue(Nullable<SByte>)
    JsonWriter.WriteValue(Nullable<Decimal>)
    JsonWriter.WriteValue(Nullable<DateTime>)
    JsonWriter.WriteValue(Nullable<DateTimeOffset>)
    JsonWriter.WriteValue(Nullable<Guid>)
    JsonWriter.WriteValue(Nullable<TimeSpan>)
    JsonWriter.IDisposable.Dispose()
    JsonWriter.Dispose(Boolean)
    JsonWriter.WriteValue(JsonWriter, PrimitiveTypeCode, Object)
    JsonWriter.SetWriteState(JsonToken, Object)
    JsonWriter.InternalWriteEnd(JsonContainerType)
    JsonWriter.InternalWritePropertyName(String)
    JsonWriter.InternalWriteRaw()
    JsonWriter.InternalWriteStart(JsonToken, JsonContainerType)
    JsonWriter.InternalWriteValue(JsonToken)
    JsonWriter.InternalWriteWhitespace(String)
    JsonWriter.InternalWriteComment()
    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: Bayat.Json
    Assembly: Bayat.Json.Runtime.dll
    Syntax
    public class JsonTextWriter : JsonWriter, IDisposable

    Constructors

    | Improve this Doc View Source

    JsonTextWriter(TextWriter)

    Creates an instance of the JsonWriter class using the specified System.IO.TextWriter.

    Declaration
    public JsonTextWriter(TextWriter textWriter)
    Parameters
    Type Name Description
    System.IO.TextWriter textWriter

    The TextWriter to write to.

    Properties

    | Improve this Doc View Source

    ArrayPool

    Gets or sets the writer's character array pool.

    Declaration
    public IArrayPool<char> ArrayPool { get; set; }
    Property Value
    Type Description
    IArrayPool<System.Char>
    | Improve this Doc View Source

    Indentation

    Gets or sets how many IndentChars to write for each level in the hierarchy when Formatting is set to Formatting.Indented.

    Declaration
    public int Indentation { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    IndentChar

    Gets or sets which character to use for indenting when Formatting is set to Formatting.Indented.

    Declaration
    public char IndentChar { get; set; }
    Property Value
    Type Description
    System.Char
    | Improve this Doc View Source

    QuoteChar

    Gets or sets which character to use to quote attribute values.

    Declaration
    public char QuoteChar { get; set; }
    Property Value
    Type Description
    System.Char
    | Improve this Doc View Source

    QuoteName

    Gets or sets a value indicating whether object names will be surrounded with quotes.

    Declaration
    public bool QuoteName { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    | Improve this Doc View Source

    Close()

    Closes this stream and the underlying stream.

    Declaration
    public override void Close()
    Overrides
    JsonWriter.Close()
    | Improve this Doc View Source

    Flush()

    Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.

    Declaration
    public override void Flush()
    Overrides
    JsonWriter.Flush()
    | Improve this Doc View Source

    OnStringEscapeHandlingChanged()

    Declaration
    protected override void OnStringEscapeHandlingChanged()
    Overrides
    JsonWriter.OnStringEscapeHandlingChanged()
    | Improve this Doc View Source

    WriteComment(String)

    Writes out a comment

    /.../
    containing the specified text.

    Declaration
    public override void WriteComment(string text)
    Parameters
    Type Name Description
    System.String text

    Text to place inside the comment.

    Overrides
    JsonWriter.WriteComment(String)
    | Improve this Doc View Source

    WriteEnd(JsonToken)

    Writes the specified end token.

    Declaration
    protected override void WriteEnd(JsonToken token)
    Parameters
    Type Name Description
    JsonToken token

    The end token to write.

    Overrides
    JsonWriter.WriteEnd(JsonToken)
    | Improve this Doc View Source

    WriteIndent()

    Writes indent characters.

    Declaration
    protected override void WriteIndent()
    Overrides
    JsonWriter.WriteIndent()
    | Improve this Doc View Source

    WriteIndentSpace()

    Writes an indent space.

    Declaration
    protected override void WriteIndentSpace()
    Overrides
    JsonWriter.WriteIndentSpace()
    | Improve this Doc View Source

    WriteNull()

    Writes a null value.

    Declaration
    public override void WriteNull()
    Overrides
    JsonWriter.WriteNull()
    | Improve this Doc View Source

    WritePropertyName(String)

    Writes the property name of a name/value pair on a JSON object.

    Declaration
    public override void WritePropertyName(string name)
    Parameters
    Type Name Description
    System.String name

    The name of the property.

    Overrides
    JsonWriter.WritePropertyName(String)
    | Improve this Doc View Source

    WritePropertyName(String, Boolean)

    Writes the property name of a name/value pair on a JSON object.

    Declaration
    public override void WritePropertyName(string name, bool escape)
    Parameters
    Type Name Description
    System.String name

    The name of the property.

    System.Boolean escape

    A flag to indicate whether the text should be escaped when it is written as a JSON property name.

    Overrides
    JsonWriter.WritePropertyName(String, Boolean)
    | Improve this Doc View Source

    WriteRaw(String)

    Writes raw JSON.

    Declaration
    public override void WriteRaw(string json)
    Parameters
    Type Name Description
    System.String json

    The raw JSON to write.

    Overrides
    JsonWriter.WriteRaw(String)
    | Improve this Doc View Source

    WriteStartArray()

    Writes the beginning of a JSON array.

    Declaration
    public override void WriteStartArray()
    Overrides
    JsonWriter.WriteStartArray()
    | Improve this Doc View Source

    WriteStartConstructor(String)

    Writes the start of a constructor with the given name.

    Declaration
    public override void WriteStartConstructor(string name)
    Parameters
    Type Name Description
    System.String name

    The name of the constructor.

    Overrides
    JsonWriter.WriteStartConstructor(String)
    | Improve this Doc View Source

    WriteStartObject()

    Writes the beginning of a JSON object.

    Declaration
    public override void WriteStartObject()
    Overrides
    JsonWriter.WriteStartObject()
    | Improve this Doc View Source

    WriteUndefined()

    Writes an undefined value.

    Declaration
    public override void WriteUndefined()
    Overrides
    JsonWriter.WriteUndefined()
    | Improve this Doc View Source

    WriteValue(Boolean)

    Writes a System.Boolean value.

    Declaration
    public override void WriteValue(bool value)
    Parameters
    Type Name Description
    System.Boolean value

    The System.Boolean value to write.

    Overrides
    JsonWriter.WriteValue(Boolean)
    | Improve this Doc View Source

    WriteValue(Byte)

    Writes a System.Byte value.

    Declaration
    public override void WriteValue(byte value)
    Parameters
    Type Name Description
    System.Byte value

    The System.Byte value to write.

    Overrides
    JsonWriter.WriteValue(Byte)
    | Improve this Doc View Source

    WriteValue(Byte[])

    Writes a System.Byte[] value.

    Declaration
    public override void WriteValue(byte[] value)
    Parameters
    Type Name Description
    System.Byte[] value

    The System.Byte[] value to write.

    Overrides
    JsonWriter.WriteValue(Byte[])
    | Improve this Doc View Source

    WriteValue(Char)

    Writes a System.Char value.

    Declaration
    public override void WriteValue(char value)
    Parameters
    Type Name Description
    System.Char value

    The System.Char value to write.

    Overrides
    JsonWriter.WriteValue(Char)
    | Improve this Doc View Source

    WriteValue(DateTime)

    Writes a System.DateTime value.

    Declaration
    public override void WriteValue(DateTime value)
    Parameters
    Type Name Description
    System.DateTime value

    The System.DateTime value to write.

    Overrides
    JsonWriter.WriteValue(DateTime)
    | Improve this Doc View Source

    WriteValue(DateTimeOffset)

    Writes a System.DateTimeOffset value.

    Declaration
    public override void WriteValue(DateTimeOffset value)
    Parameters
    Type Name Description
    System.DateTimeOffset value

    The System.DateTimeOffset value to write.

    Overrides
    JsonWriter.WriteValue(DateTimeOffset)
    | Improve this Doc View Source

    WriteValue(Decimal)

    Writes a System.Decimal value.

    Declaration
    public override void WriteValue(decimal value)
    Parameters
    Type Name Description
    System.Decimal value

    The System.Decimal value to write.

    Overrides
    JsonWriter.WriteValue(Decimal)
    | Improve this Doc View Source

    WriteValue(Double)

    Writes a System.Double value.

    Declaration
    public override void WriteValue(double value)
    Parameters
    Type Name Description
    System.Double value

    The System.Double value to write.

    Overrides
    JsonWriter.WriteValue(Double)
    | Improve this Doc View Source

    WriteValue(Guid)

    Writes a System.Guid value.

    Declaration
    public override void WriteValue(Guid value)
    Parameters
    Type Name Description
    System.Guid value

    The System.Guid value to write.

    Overrides
    JsonWriter.WriteValue(Guid)
    | Improve this Doc View Source

    WriteValue(Int16)

    Writes a System.Int16 value.

    Declaration
    public override void WriteValue(short value)
    Parameters
    Type Name Description
    System.Int16 value

    The System.Int16 value to write.

    Overrides
    JsonWriter.WriteValue(Int16)
    | Improve this Doc View Source

    WriteValue(Int32)

    Writes a System.Int32 value.

    Declaration
    public override void WriteValue(int value)
    Parameters
    Type Name Description
    System.Int32 value

    The System.Int32 value to write.

    Overrides
    JsonWriter.WriteValue(Int32)
    | Improve this Doc View Source

    WriteValue(Int64)

    Writes a System.Int64 value.

    Declaration
    public override void WriteValue(long value)
    Parameters
    Type Name Description
    System.Int64 value

    The System.Int64 value to write.

    Overrides
    JsonWriter.WriteValue(Int64)
    | Improve this Doc View Source

    WriteValue(Nullable<Double>)

    Writes a System.Nullable<T> value.

    Declaration
    public override void WriteValue(double? value)
    Parameters
    Type Name Description
    System.Nullable<System.Double> value

    The System.Nullable<T> value to write.

    Overrides
    JsonWriter.WriteValue(Nullable<Double>)
    | Improve this Doc View Source

    WriteValue(Nullable<Single>)

    Writes a System.Nullable<T> value.

    Declaration
    public override void WriteValue(float? value)
    Parameters
    Type Name Description
    System.Nullable<System.Single> value

    The System.Nullable<T> value to write.

    Overrides
    JsonWriter.WriteValue(Nullable<Single>)
    | Improve this Doc View Source

    WriteValue(Object)

    Writes a System.Object value. An error will raised if the value cannot be written as a single JSON token.

    Declaration
    public override void WriteValue(object value)
    Parameters
    Type Name Description
    System.Object value

    The System.Object value to write.

    Overrides
    JsonWriter.WriteValue(Object)
    | Improve this Doc View Source

    WriteValue(SByte)

    Writes a System.SByte value.

    Declaration
    public override void WriteValue(sbyte value)
    Parameters
    Type Name Description
    System.SByte value

    The System.SByte value to write.

    Overrides
    JsonWriter.WriteValue(SByte)
    | Improve this Doc View Source

    WriteValue(Single)

    Writes a System.Single value.

    Declaration
    public override void WriteValue(float value)
    Parameters
    Type Name Description
    System.Single value

    The System.Single value to write.

    Overrides
    JsonWriter.WriteValue(Single)
    | Improve this Doc View Source

    WriteValue(String)

    Writes a System.String value.

    Declaration
    public override void WriteValue(string value)
    Parameters
    Type Name Description
    System.String value

    The System.String value to write.

    Overrides
    JsonWriter.WriteValue(String)
    | Improve this Doc View Source

    WriteValue(TimeSpan)

    Writes a System.TimeSpan value.

    Declaration
    public override void WriteValue(TimeSpan value)
    Parameters
    Type Name Description
    System.TimeSpan value

    The System.TimeSpan value to write.

    Overrides
    JsonWriter.WriteValue(TimeSpan)
    | Improve this Doc View Source

    WriteValue(UInt16)

    Writes a System.UInt16 value.

    Declaration
    public override void WriteValue(ushort value)
    Parameters
    Type Name Description
    System.UInt16 value

    The System.UInt16 value to write.

    Overrides
    JsonWriter.WriteValue(UInt16)
    | Improve this Doc View Source

    WriteValue(UInt32)

    Writes a System.UInt32 value.

    Declaration
    public override void WriteValue(uint value)
    Parameters
    Type Name Description
    System.UInt32 value

    The System.UInt32 value to write.

    Overrides
    JsonWriter.WriteValue(UInt32)
    | Improve this Doc View Source

    WriteValue(UInt64)

    Writes a System.UInt64 value.

    Declaration
    public override void WriteValue(ulong value)
    Parameters
    Type Name Description
    System.UInt64 value

    The System.UInt64 value to write.

    Overrides
    JsonWriter.WriteValue(UInt64)
    | Improve this Doc View Source

    WriteValue(Uri)

    Writes a System.Uri value.

    Declaration
    public override void WriteValue(Uri value)
    Parameters
    Type Name Description
    System.Uri value

    The System.Uri value to write.

    Overrides
    JsonWriter.WriteValue(Uri)
    | Improve this Doc View Source

    WriteValueDelimiter()

    Writes the JSON value delimiter.

    Declaration
    protected override void WriteValueDelimiter()
    Overrides
    JsonWriter.WriteValueDelimiter()
    | Improve this Doc View Source

    WriteWhitespace(String)

    Writes out the given white space.

    Declaration
    public override void WriteWhitespace(string ws)
    Parameters
    Type Name Description
    System.String ws

    The string of white space characters.

    Overrides
    JsonWriter.WriteWhitespace(String)

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    • 0 Comments
    In This Article
    • Constructors
      • JsonTextWriter(TextWriter)
    • Properties
      • ArrayPool
      • Indentation
      • IndentChar
      • QuoteChar
      • QuoteName
    • Methods
      • Close()
      • Flush()
      • OnStringEscapeHandlingChanged()
      • WriteComment(String)
      • WriteEnd(JsonToken)
      • WriteIndent()
      • WriteIndentSpace()
      • WriteNull()
      • WritePropertyName(String)
      • WritePropertyName(String, Boolean)
      • WriteRaw(String)
      • WriteStartArray()
      • WriteStartConstructor(String)
      • WriteStartObject()
      • WriteUndefined()
      • WriteValue(Boolean)
      • WriteValue(Byte)
      • WriteValue(Byte[])
      • WriteValue(Char)
      • WriteValue(DateTime)
      • WriteValue(DateTimeOffset)
      • WriteValue(Decimal)
      • WriteValue(Double)
      • WriteValue(Guid)
      • WriteValue(Int16)
      • WriteValue(Int32)
      • WriteValue(Int64)
      • WriteValue(Nullable<Double>)
      • WriteValue(Nullable<Single>)
      • WriteValue(Object)
      • WriteValue(SByte)
      • WriteValue(Single)
      • WriteValue(String)
      • WriteValue(TimeSpan)
      • WriteValue(UInt16)
      • WriteValue(UInt32)
      • WriteValue(UInt64)
      • WriteValue(Uri)
      • WriteValueDelimiter()
      • WriteWhitespace(String)
    • Implements