C# Class System.Runtime.Serialization.Json.XmlJsonWriter

Inheritance: System.Xml.XmlDictionaryWriter, IXmlJsonWriterInitializer
Mostrar archivo Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
CharacterNeedsEscaping bool
CheckText void
CreateEscapedJsonStringTable string[]
EnterScope void
ExitScope JsonNodeType
InitializeWriter void
IsUnicodeNewlineCharacter bool
StartText void
ThrowClosed void
ThrowIfServerTypeWritten void
ThrowInvalidAttributeContent void
TryEscapeControlCharacter bool
TrySetWritingNameWithMapping bool
WriteDataTypeServerType void
WriteDocType void
WriteEscapedJsonString void
WriteIndent void
WriteJsonElementName void
WriteJsonQuote void
WriteNewLine void
WritePrimitiveValue void
WriteServerTypeAttribute void
WriteStartAttribute void
WriteValue void
WriteValue void
WriteWhitespace void

Public Methods

Method Description
Flush ( ) : void
LookupPrefix ( string ns ) : string
SetOutput ( Stream stream, Encoding encoding, bool ownsStream ) : void
WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, System.DateTime array, int offset, int count ) : void
WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, System.Guid array, int offset, int count ) : void
WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, System.TimeSpan array, int offset, int count ) : void
WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, bool array, int offset, int count ) : void
WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, decimal array, int offset, int count ) : void
WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, double array, int offset, int count ) : void
WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, float array, int offset, int count ) : void
WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, int array, int offset, int count ) : void
WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, long array, int offset, int count ) : void
WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, short array, int offset, int count ) : void
WriteArray ( string prefix, string localName, string namespaceUri, System.DateTime array, int offset, int count ) : void
WriteArray ( string prefix, string localName, string namespaceUri, System.Guid array, int offset, int count ) : void
WriteArray ( string prefix, string localName, string namespaceUri, Int16 array, int offset, int count ) : void
WriteArray ( string prefix, string localName, string namespaceUri, Int32 array, int offset, int count ) : void
WriteArray ( string prefix, string localName, string namespaceUri, System.Int64 array, int offset, int count ) : void
WriteArray ( string prefix, string localName, string namespaceUri, System.TimeSpan array, int offset, int count ) : void
WriteArray ( string prefix, string localName, string namespaceUri, bool array, int offset, int count ) : void
WriteArray ( string prefix, string localName, string namespaceUri, decimal array, int offset, int count ) : void
WriteArray ( string prefix, string localName, string namespaceUri, double array, int offset, int count ) : void
WriteArray ( string prefix, string localName, string namespaceUri, float array, int offset, int count ) : void
WriteBase64 ( byte buffer, int index, int count ) : void
WriteBinHex ( byte buffer, int index, int count ) : void
WriteCData ( string text ) : void
WriteCharEntity ( char ch ) : void
WriteChars ( char buffer, int index, int count ) : void
WriteComment ( string text ) : void
WriteEndAttribute ( ) : void
WriteEndDocument ( ) : void
WriteEndElement ( ) : void
WriteEntityRef ( string name ) : void
WriteFullEndElement ( ) : void
WriteProcessingInstruction ( string name, string text ) : void
WriteQualifiedName ( string localName, string ns ) : void
WriteRaw ( char buffer, int index, int count ) : void
WriteRaw ( string data ) : void
WriteStartDocument ( ) : void
WriteStartDocument ( bool standalone ) : void
WriteStartElement ( string prefix, string localName, string ns ) : void
WriteString ( string text ) : void
WriteSurrogateCharEntity ( char lowChar, char highChar ) : void
WriteValue ( System.DateTime value ) : void
WriteValue ( System.Guid value ) : void
WriteValue ( System.TimeSpan value ) : void
WriteValue ( UniqueId value ) : void
WriteValue ( bool value ) : void
WriteValue ( decimal value ) : void
WriteValue ( double value ) : void
WriteValue ( float value ) : void
WriteValue ( int value ) : void
WriteValue ( long value ) : void
WriteValue ( object value ) : void
WriteValue ( string value ) : void
WriteXmlAttribute ( XmlDictionaryString localName, XmlDictionaryString value ) : void
WriteXmlAttribute ( string localName, string value ) : void
WriteXmlnsAttribute ( string prefix, XmlDictionaryString namespaceUri ) : void
WriteXmlnsAttribute ( string prefix, string namespaceUri ) : void
XmlJsonWriter ( ) : System.Diagnostics.CodeAnalysis
XmlJsonWriter ( bool indent, string indentChars ) : System.Diagnostics.CodeAnalysis

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CharacterNeedsEscaping ( char ch ) : bool
CheckText ( JsonNodeType nextNodeType ) : void
CreateEscapedJsonStringTable ( ) : string[]
EnterScope ( JsonNodeType currentNodeType ) : void
ExitScope ( ) : JsonNodeType
InitializeWriter ( ) : void
IsUnicodeNewlineCharacter ( char c ) : bool
StartText ( ) : void
ThrowClosed ( ) : void
ThrowIfServerTypeWritten ( string dataTypeSpecified ) : void
ThrowInvalidAttributeContent ( ) : void
TryEscapeControlCharacter ( char ch, char &abbrev ) : bool
TrySetWritingNameWithMapping ( string localName, string ns ) : bool
WriteDataTypeServerType ( ) : void
WriteDocType ( string name, string pubid, string sysid, string subset ) : void
WriteEscapedJsonString ( string str ) : void
WriteIndent ( ) : void
WriteJsonElementName ( string localName ) : void
WriteJsonQuote ( ) : void
WriteNewLine ( ) : void
WritePrimitiveValue ( object value ) : void
WriteServerTypeAttribute ( ) : void
WriteStartAttribute ( string prefix, string localName, string ns ) : void
WriteValue ( Array array ) : void
WriteValue ( ulong value ) : void
WriteWhitespace ( string ws ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

LookupPrefix() public method

public LookupPrefix ( string ns ) : string
ns string
return string

SetOutput() public method

public SetOutput ( Stream stream, Encoding encoding, bool ownsStream ) : void
stream Stream
encoding System.Text.Encoding
ownsStream bool
return void

WriteArray() public method

public WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, System.DateTime array, int offset, int count ) : void
prefix string
localName System.Xml.XmlDictionaryString
namespaceUri System.Xml.XmlDictionaryString
array System.DateTime
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, System.Guid array, int offset, int count ) : void
prefix string
localName System.Xml.XmlDictionaryString
namespaceUri System.Xml.XmlDictionaryString
array System.Guid
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, System.TimeSpan array, int offset, int count ) : void
prefix string
localName System.Xml.XmlDictionaryString
namespaceUri System.Xml.XmlDictionaryString
array System.TimeSpan
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, bool array, int offset, int count ) : void
prefix string
localName System.Xml.XmlDictionaryString
namespaceUri System.Xml.XmlDictionaryString
array bool
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, decimal array, int offset, int count ) : void
prefix string
localName System.Xml.XmlDictionaryString
namespaceUri System.Xml.XmlDictionaryString
array decimal
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, double array, int offset, int count ) : void
prefix string
localName System.Xml.XmlDictionaryString
namespaceUri System.Xml.XmlDictionaryString
array double
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, float array, int offset, int count ) : void
prefix string
localName System.Xml.XmlDictionaryString
namespaceUri System.Xml.XmlDictionaryString
array float
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, int array, int offset, int count ) : void
prefix string
localName System.Xml.XmlDictionaryString
namespaceUri System.Xml.XmlDictionaryString
array int
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, long array, int offset, int count ) : void
prefix string
localName System.Xml.XmlDictionaryString
namespaceUri System.Xml.XmlDictionaryString
array long
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, short array, int offset, int count ) : void
prefix string
localName System.Xml.XmlDictionaryString
namespaceUri System.Xml.XmlDictionaryString
array short
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, string localName, string namespaceUri, System.DateTime array, int offset, int count ) : void
prefix string
localName string
namespaceUri string
array System.DateTime
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, string localName, string namespaceUri, System.Guid array, int offset, int count ) : void
prefix string
localName string
namespaceUri string
array System.Guid
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, string localName, string namespaceUri, Int16 array, int offset, int count ) : void
prefix string
localName string
namespaceUri string
array System.Int16
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, string localName, string namespaceUri, Int32 array, int offset, int count ) : void
prefix string
localName string
namespaceUri string
array System.Int32
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, string localName, string namespaceUri, System.Int64 array, int offset, int count ) : void
prefix string
localName string
namespaceUri string
array System.Int64
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, string localName, string namespaceUri, System.TimeSpan array, int offset, int count ) : void
prefix string
localName string
namespaceUri string
array System.TimeSpan
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, string localName, string namespaceUri, bool array, int offset, int count ) : void
prefix string
localName string
namespaceUri string
array bool
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, string localName, string namespaceUri, decimal array, int offset, int count ) : void
prefix string
localName string
namespaceUri string
array decimal
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, string localName, string namespaceUri, double array, int offset, int count ) : void
prefix string
localName string
namespaceUri string
array double
offset int
count int
return void

WriteArray() public method

public WriteArray ( string prefix, string localName, string namespaceUri, float array, int offset, int count ) : void
prefix string
localName string
namespaceUri string
array float
offset int
count int
return void

WriteBase64() public method

public WriteBase64 ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
return void

WriteBinHex() public method

public WriteBinHex ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
return void

WriteCData() public method

public WriteCData ( string text ) : void
text string
return void

WriteCharEntity() public method

public WriteCharEntity ( char ch ) : void
ch char
return void

WriteChars() public method

public WriteChars ( char buffer, int index, int count ) : void
buffer char
index int
count int
return void

WriteComment() public method

public WriteComment ( string text ) : void
text string
return void

WriteEndAttribute() public method

public WriteEndAttribute ( ) : void
return void

WriteEndDocument() public method

public WriteEndDocument ( ) : void
return void

WriteEndElement() public method

public WriteEndElement ( ) : void
return void

WriteEntityRef() public method

public WriteEntityRef ( string name ) : void
name string
return void

WriteFullEndElement() public method

public WriteFullEndElement ( ) : void
return void

WriteProcessingInstruction() public method

public WriteProcessingInstruction ( string name, string text ) : void
name string
text string
return void

WriteQualifiedName() public method

public WriteQualifiedName ( string localName, string ns ) : void
localName string
ns string
return void

WriteRaw() public method

public WriteRaw ( char buffer, int index, int count ) : void
buffer char
index int
count int
return void

WriteRaw() public method

public WriteRaw ( string data ) : void
data string
return void

WriteStartDocument() public method

public WriteStartDocument ( ) : void
return void

WriteStartDocument() public method

public WriteStartDocument ( bool standalone ) : void
standalone bool
return void

WriteStartElement() public method

public WriteStartElement ( string prefix, string localName, string ns ) : void
prefix string
localName string
ns string
return void

WriteString() public method

public WriteString ( string text ) : void
text string
return void

WriteSurrogateCharEntity() public method

public WriteSurrogateCharEntity ( char lowChar, char highChar ) : void
lowChar char
highChar char
return void

WriteValue() public method

public WriteValue ( System.DateTime value ) : void
value System.DateTime
return void

WriteValue() public method

public WriteValue ( System.Guid value ) : void
value System.Guid
return void

WriteValue() public method

public WriteValue ( System.TimeSpan value ) : void
value System.TimeSpan
return void

WriteValue() public method

public WriteValue ( UniqueId value ) : void
value System.Xml.UniqueId
return void

WriteValue() public method

public WriteValue ( bool value ) : void
value bool
return void

WriteValue() public method

public WriteValue ( decimal value ) : void
value decimal
return void

WriteValue() public method

public WriteValue ( double value ) : void
value double
return void

WriteValue() public method

public WriteValue ( float value ) : void
value float
return void

WriteValue() public method

public WriteValue ( int value ) : void
value int
return void

WriteValue() public method

public WriteValue ( long value ) : void
value long
return void

WriteValue() public method

public WriteValue ( object value ) : void
value object
return void

WriteValue() public method

public WriteValue ( string value ) : void
value string
return void

WriteXmlAttribute() public method

public WriteXmlAttribute ( XmlDictionaryString localName, XmlDictionaryString value ) : void
localName System.Xml.XmlDictionaryString
value System.Xml.XmlDictionaryString
return void

WriteXmlAttribute() public method

public WriteXmlAttribute ( string localName, string value ) : void
localName string
value string
return void

WriteXmlnsAttribute() public method

public WriteXmlnsAttribute ( string prefix, XmlDictionaryString namespaceUri ) : void
prefix string
namespaceUri System.Xml.XmlDictionaryString
return void

WriteXmlnsAttribute() public method

public WriteXmlnsAttribute ( string prefix, string namespaceUri ) : void
prefix string
namespaceUri string
return void

XmlJsonWriter() public method

public XmlJsonWriter ( ) : System.Diagnostics.CodeAnalysis
return System.Diagnostics.CodeAnalysis

XmlJsonWriter() public method

public XmlJsonWriter ( bool indent, string indentChars ) : System.Diagnostics.CodeAnalysis
indent bool
indentChars string
return System.Diagnostics.CodeAnalysis