Skip to main content

ITypeSerializer

Assembly: ServiceStack.Text.dll
View Source
Declaration
public interface ITypeSerializer

Properties

ObjectDeserializer

View Source
Declaration
ObjectDeserializerDelegate ObjectDeserializer { get; set; }

IncludeNullValues

View Source
Declaration
bool IncludeNullValues { get; }

IncludeNullValuesInDictionaries

View Source
Declaration
bool IncludeNullValuesInDictionaries { get; }

TypeAttrInObject

View Source
Declaration
string TypeAttrInObject { get; }

Methods

GetWriteFn<T>()

View Source
Declaration
WriteObjectDelegate GetWriteFn<T>()
Returns

ServiceStack.Text.Common.WriteObjectDelegate

Type Parameters
  • T

GetWriteFn(Type)

View Source
Declaration
WriteObjectDelegate GetWriteFn(Type type)
Returns

ServiceStack.Text.Common.WriteObjectDelegate

Parameters
TypeName
System.Typetype

GetTypeInfo(Type)

View Source
Declaration
TypeInfo GetTypeInfo(Type type)
Returns

ServiceStack.Text.Json.TypeInfo

Parameters
TypeName
System.Typetype

WriteRawString(TextWriter, String)

View Source
Declaration
void WriteRawString(TextWriter writer, string value)
Parameters
TypeName
System.IO.TextWriterwriter
System.Stringvalue

WritePropertyName(TextWriter, String)

View Source
Declaration
void WritePropertyName(TextWriter writer, string value)
Parameters
TypeName
System.IO.TextWriterwriter
System.Stringvalue

WriteBuiltIn(TextWriter, Object)

View Source
Declaration
void WriteBuiltIn(TextWriter writer, object value)
Parameters
TypeName
System.IO.TextWriterwriter
System.Objectvalue

WriteObjectString(TextWriter, Object)

View Source
Declaration
void WriteObjectString(TextWriter writer, object value)
Parameters
TypeName
System.IO.TextWriterwriter
System.Objectvalue

WriteException(TextWriter, Object)

View Source
Declaration
void WriteException(TextWriter writer, object value)
Parameters
TypeName
System.IO.TextWriterwriter
System.Objectvalue

WriteString(TextWriter, String)

View Source
Declaration
void WriteString(TextWriter writer, string value)
Parameters
TypeName
System.IO.TextWriterwriter
System.Stringvalue

WriteFormattableObjectString(TextWriter, Object)

View Source
Declaration
void WriteFormattableObjectString(TextWriter writer, object value)
Parameters
TypeName
System.IO.TextWriterwriter
System.Objectvalue

WriteDateTime(TextWriter, Object)

View Source
Declaration
void WriteDateTime(TextWriter writer, object oDateTime)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectoDateTime

WriteNullableDateTime(TextWriter, Object)

View Source
Declaration
void WriteNullableDateTime(TextWriter writer, object dateTime)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectdateTime

WriteDateTimeOffset(TextWriter, Object)

View Source
Declaration
void WriteDateTimeOffset(TextWriter writer, object oDateTimeOffset)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectoDateTimeOffset

WriteNullableDateTimeOffset(TextWriter, Object)

View Source
Declaration
void WriteNullableDateTimeOffset(TextWriter writer, object dateTimeOffset)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectdateTimeOffset

WriteTimeSpan(TextWriter, Object)

View Source
Declaration
void WriteTimeSpan(TextWriter writer, object timeSpan)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjecttimeSpan

WriteNullableTimeSpan(TextWriter, Object)

View Source
Declaration
void WriteNullableTimeSpan(TextWriter writer, object timeSpan)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjecttimeSpan

WriteGuid(TextWriter, Object)

View Source
Declaration
void WriteGuid(TextWriter writer, object oValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectoValue

WriteNullableGuid(TextWriter, Object)

View Source
Declaration
void WriteNullableGuid(TextWriter writer, object oValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectoValue

WriteBytes(TextWriter, Object)

View Source
Declaration
void WriteBytes(TextWriter writer, object oByteValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectoByteValue

WriteChar(TextWriter, Object)

View Source
Declaration
void WriteChar(TextWriter writer, object charValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectcharValue

WriteByte(TextWriter, Object)

View Source
Declaration
void WriteByte(TextWriter writer, object byteValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectbyteValue

WriteSByte(TextWriter, Object)

View Source
Declaration
void WriteSByte(TextWriter writer, object sbyteValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectsbyteValue

WriteInt16(TextWriter, Object)

View Source
Declaration
void WriteInt16(TextWriter writer, object intValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectintValue

WriteUInt16(TextWriter, Object)

View Source
Declaration
void WriteUInt16(TextWriter writer, object intValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectintValue

WriteInt32(TextWriter, Object)

View Source
Declaration
void WriteInt32(TextWriter writer, object intValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectintValue

WriteUInt32(TextWriter, Object)

View Source
Declaration
void WriteUInt32(TextWriter writer, object uintValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectuintValue

WriteInt64(TextWriter, Object)

View Source
Declaration
void WriteInt64(TextWriter writer, object longValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectlongValue

WriteUInt64(TextWriter, Object)

View Source
Declaration
void WriteUInt64(TextWriter writer, object ulongValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectulongValue

WriteBool(TextWriter, Object)

View Source
Declaration
void WriteBool(TextWriter writer, object boolValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectboolValue

WriteFloat(TextWriter, Object)

View Source
Declaration
void WriteFloat(TextWriter writer, object floatValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectfloatValue

WriteDouble(TextWriter, Object)

View Source
Declaration
void WriteDouble(TextWriter writer, object doubleValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectdoubleValue

WriteDecimal(TextWriter, Object)

View Source
Declaration
void WriteDecimal(TextWriter writer, object decimalValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectdecimalValue

WriteEnum(TextWriter, Object)

View Source
Declaration
void WriteEnum(TextWriter writer, object enumValue)
Parameters
TypeName
System.IO.TextWriterwriter
System.ObjectenumValue

GetParseFn<T>()

View Source
Declaration
ParseStringDelegate GetParseFn<T>()
Returns

ServiceStack.Text.Common.ParseStringDelegate

Type Parameters
  • T

GetParseStringSpanFn<T>()

View Source
Declaration
ParseStringSpanDelegate GetParseStringSpanFn<T>()
Returns

ServiceStack.Text.Common.ParseStringSpanDelegate

Type Parameters
  • T

GetParseFn(Type)

View Source
Declaration
ParseStringDelegate GetParseFn(Type type)
Returns

ServiceStack.Text.Common.ParseStringDelegate

Parameters
TypeName
System.Typetype

GetParseStringSpanFn(Type)

View Source
Declaration
ParseStringSpanDelegate GetParseStringSpanFn(Type type)
Returns

ServiceStack.Text.Common.ParseStringSpanDelegate

Parameters
TypeName
System.Typetype

ParseRawString(String)

View Source
Declaration
string ParseRawString(string value)
Returns

System.String

Parameters
TypeName
System.Stringvalue

ParseString(String)

View Source
Declaration
string ParseString(string value)
Returns

System.String

Parameters
TypeName
System.Stringvalue

ParseString(ReadOnlySpan<Char>)

View Source
Declaration
string ParseString(ReadOnlySpan<char> value)
Returns

System.String

Parameters
TypeName
ReadOnlySpan<System.Char>value

UnescapeString(String)

View Source
Declaration
string UnescapeString(string value)
Returns

System.String

Parameters
TypeName
System.Stringvalue

UnescapeString(ReadOnlySpan<Char>)

View Source
Declaration
ReadOnlySpan<char> UnescapeString(ReadOnlySpan<char> value)
Returns

ReadOnlySpan<System.Char>

Parameters
TypeName
ReadOnlySpan<System.Char>value

UnescapeStringAsObject(ReadOnlySpan<Char>)

View Source
Declaration
object UnescapeStringAsObject(ReadOnlySpan<char> value)
Returns

System.Object

Parameters
TypeName
ReadOnlySpan<System.Char>value

UnescapeSafeString(String)

View Source
Declaration
string UnescapeSafeString(string value)
Returns

System.String

Parameters
TypeName
System.Stringvalue

UnescapeSafeString(ReadOnlySpan<Char>)

View Source
Declaration
ReadOnlySpan<char> UnescapeSafeString(ReadOnlySpan<char> value)
Returns

ReadOnlySpan<System.Char>

Parameters
TypeName
ReadOnlySpan<System.Char>value

EatTypeValue(String, ref Int32)

View Source
Declaration
string EatTypeValue(string value, ref int i)
Returns

System.String

Parameters
TypeName
System.Stringvalue
System.Int32i

EatTypeValue(ReadOnlySpan<Char>, ref Int32)

View Source
Declaration
ReadOnlySpan<char> EatTypeValue(ReadOnlySpan<char> value, ref int i)
Returns

ReadOnlySpan<System.Char>

Parameters
TypeName
ReadOnlySpan<System.Char>value
System.Int32i

EatMapStartChar(String, ref Int32)

View Source
Declaration
bool EatMapStartChar(string value, ref int i)
Returns

System.Boolean

Parameters
TypeName
System.Stringvalue
System.Int32i

EatMapStartChar(ReadOnlySpan<Char>, ref Int32)

View Source
Declaration
bool EatMapStartChar(ReadOnlySpan<char> value, ref int i)
Returns

System.Boolean

Parameters
TypeName
ReadOnlySpan<System.Char>value
System.Int32i

EatMapKey(String, ref Int32)

View Source
Declaration
string EatMapKey(string value, ref int i)
Returns

System.String

Parameters
TypeName
System.Stringvalue
System.Int32i

EatMapKey(ReadOnlySpan<Char>, ref Int32)

View Source
Declaration
ReadOnlySpan<char> EatMapKey(ReadOnlySpan<char> value, ref int i)
Returns

ReadOnlySpan<System.Char>

Parameters
TypeName
ReadOnlySpan<System.Char>value
System.Int32i

EatMapKeySeperator(String, ref Int32)

View Source
Declaration
bool EatMapKeySeperator(string value, ref int i)
Returns

System.Boolean

Parameters
TypeName
System.Stringvalue
System.Int32i

EatMapKeySeperator(ReadOnlySpan<Char>, ref Int32)

View Source
Declaration
bool EatMapKeySeperator(ReadOnlySpan<char> value, ref int i)
Returns

System.Boolean

Parameters
TypeName
ReadOnlySpan<System.Char>value
System.Int32i

EatWhitespace(String, ref Int32)

View Source
Declaration
void EatWhitespace(string value, ref int i)
Parameters
TypeName
System.Stringvalue
System.Int32i

EatWhitespace(ReadOnlySpan<Char>, ref Int32)

View Source
Declaration
void EatWhitespace(ReadOnlySpan<char> value, ref int i)
Parameters
TypeName
ReadOnlySpan<System.Char>value
System.Int32i

EatValue(String, ref Int32)

View Source
Declaration
string EatValue(string value, ref int i)
Returns

System.String

Parameters
TypeName
System.Stringvalue
System.Int32i

EatValue(ReadOnlySpan<Char>, ref Int32)

View Source
Declaration
ReadOnlySpan<char> EatValue(ReadOnlySpan<char> value, ref int i)
Returns

ReadOnlySpan<System.Char>

Parameters
TypeName
ReadOnlySpan<System.Char>value
System.Int32i

EatItemSeperatorOrMapEndChar(String, ref Int32)

View Source
Declaration
bool EatItemSeperatorOrMapEndChar(string value, ref int i)
Returns

System.Boolean

Parameters
TypeName
System.Stringvalue
System.Int32i

EatItemSeperatorOrMapEndChar(ReadOnlySpan<Char>, ref Int32)

View Source
Declaration
bool EatItemSeperatorOrMapEndChar(ReadOnlySpan<char> value, ref int i)
Returns

System.Boolean

Parameters
TypeName
ReadOnlySpan<System.Char>value
System.Int32i