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
Type | Name |
---|---|
System.Type | type |
GetTypeInfo(Type)
View Source
Declaration
TypeInfo GetTypeInfo(Type type)
Returns
ServiceStack.Text.Json.TypeInfo
Parameters
Type | Name |
---|---|
System.Type | type |
WriteRawString(TextWriter, String)
View Source
Declaration
void WriteRawString(TextWriter writer, string value)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.String | value |
WritePropertyName(TextWriter, String)
View Source
Declaration
void WritePropertyName(TextWriter writer, string value)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.String | value |
WriteBuiltIn(TextWriter, Object)
View Source
Declaration
void WriteBuiltIn(TextWriter writer, object value)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | value |
WriteObjectString(TextWriter, Object)
View Source
Declaration
void WriteObjectString(TextWriter writer, object value)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | value |
WriteException(TextWriter, Object)
View Source
Declaration
void WriteException(TextWriter writer, object value)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | value |
WriteString(TextWriter, String)
View Source
Declaration
void WriteString(TextWriter writer, string value)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.String | value |
WriteFormattableObjectString(TextWriter, Object)
View Source
Declaration
void WriteFormattableObjectString(TextWriter writer, object value)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | value |
WriteDateTime(TextWriter, Object)
View Source
Declaration
void WriteDateTime(TextWriter writer, object oDateTime)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | oDateTime |
WriteNullableDateTime(TextWriter, Object)
View Source
Declaration
void WriteNullableDateTime(TextWriter writer, object dateTime)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | dateTime |
WriteDateTimeOffset(TextWriter, Object)
View Source
Declaration
void WriteDateTimeOffset(TextWriter writer, object oDateTimeOffset)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | oDateTimeOffset |
WriteNullableDateTimeOffset(TextWriter, Object)
View Source
Declaration
void WriteNullableDateTimeOffset(TextWriter writer, object dateTimeOffset)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | dateTimeOffset |
WriteTimeSpan(TextWriter, Object)
View Source
Declaration
void WriteTimeSpan(TextWriter writer, object timeSpan)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | timeSpan |
WriteNullableTimeSpan(TextWriter, Object)
View Source
Declaration
void WriteNullableTimeSpan(TextWriter writer, object timeSpan)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | timeSpan |
WriteGuid(TextWriter, Object)
View Source
Declaration
void WriteGuid(TextWriter writer, object oValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | oValue |
WriteNullableGuid(TextWriter, Object)
View Source
Declaration
void WriteNullableGuid(TextWriter writer, object oValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | oValue |
WriteBytes(TextWriter, Object)
View Source
Declaration
void WriteBytes(TextWriter writer, object oByteValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | oByteValue |
WriteChar(TextWriter, Object)
View Source
Declaration
void WriteChar(TextWriter writer, object charValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | charValue |
WriteByte(TextWriter, Object)
View Source
Declaration
void WriteByte(TextWriter writer, object byteValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | byteValue |
WriteSByte(TextWriter, Object)
View Source
Declaration
void WriteSByte(TextWriter writer, object sbyteValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | sbyteValue |
WriteInt16(TextWriter, Object)
View Source
Declaration
void WriteInt16(TextWriter writer, object intValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | intValue |
WriteUInt16(TextWriter, Object)
View Source
Declaration
void WriteUInt16(TextWriter writer, object intValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | intValue |
WriteInt32(TextWriter, Object)
View Source
Declaration
void WriteInt32(TextWriter writer, object intValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | intValue |
WriteUInt32(TextWriter, Object)
View Source
Declaration
void WriteUInt32(TextWriter writer, object uintValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | uintValue |
WriteInt64(TextWriter, Object)
View Source
Declaration
void WriteInt64(TextWriter writer, object longValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | longValue |
WriteUInt64(TextWriter, Object)
View Source
Declaration
void WriteUInt64(TextWriter writer, object ulongValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | ulongValue |
WriteBool(TextWriter, Object)
View Source
Declaration
void WriteBool(TextWriter writer, object boolValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | boolValue |
WriteFloat(TextWriter, Object)
View Source
Declaration
void WriteFloat(TextWriter writer, object floatValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | floatValue |
WriteDouble(TextWriter, Object)
View Source
Declaration
void WriteDouble(TextWriter writer, object doubleValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | doubleValue |
WriteDecimal(TextWriter, Object)
View Source
Declaration
void WriteDecimal(TextWriter writer, object decimalValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | decimalValue |
WriteEnum(TextWriter, Object)
View Source
Declaration
void WriteEnum(TextWriter writer, object enumValue)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.Object | enumValue |
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
Type | Name |
---|---|
System.Type | type |
GetParseStringSpanFn(Type)
View Source
Declaration
ParseStringSpanDelegate GetParseStringSpanFn(Type type)
Returns
ServiceStack.Text.Common.ParseStringSpanDelegate
Parameters
Type | Name |
---|---|
System.Type | type |
ParseRawString(String)
View Source
Declaration
string ParseRawString(string value)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | value |
ParseString(String)
View Source
Declaration
string ParseString(string value)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | value |
ParseString(ReadOnlySpan<Char>)
View Source
Declaration
string ParseString(ReadOnlySpan<char> value)
Returns
System.String
Parameters
Type | Name |
---|---|
ReadOnlySpan<System.Char> | value |
UnescapeString(String)
View Source
Declaration
string UnescapeString(string value)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | value |
UnescapeString(ReadOnlySpan<Char>)
View Source
Declaration
ReadOnlySpan<char> UnescapeString(ReadOnlySpan<char> value)
Returns
ReadOnlySpan<System.Char>
Parameters
Type | Name |
---|---|
ReadOnlySpan<System.Char> | value |
UnescapeStringAsObject(ReadOnlySpan<Char>)
View Source
Declaration
object UnescapeStringAsObject(ReadOnlySpan<char> value)
Returns
System.Object
Parameters
Type | Name |
---|---|
ReadOnlySpan<System.Char> | value |
UnescapeSafeString(String)
View Source
Declaration
string UnescapeSafeString(string value)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | value |
UnescapeSafeString(ReadOnlySpan<Char>)
View Source
Declaration
ReadOnlySpan<char> UnescapeSafeString(ReadOnlySpan<char> value)
Returns
ReadOnlySpan<System.Char>
Parameters
Type | Name |
---|---|
ReadOnlySpan<System.Char> | value |
EatTypeValue(String, ref Int32)
View Source
Declaration
string EatTypeValue(string value, ref int i)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | value |
System.Int32 | i |
EatTypeValue(ReadOnlySpan<Char>, ref Int32)
View Source
Declaration
ReadOnlySpan<char> EatTypeValue(ReadOnlySpan<char> value, ref int i)
Returns
ReadOnlySpan<System.Char>
Parameters
Type | Name |
---|---|
ReadOnlySpan<System.Char> | value |
System.Int32 | i |
EatMapStartChar(String, ref Int32)
View Source
Declaration
bool EatMapStartChar(string value, ref int i)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | value |
System.Int32 | i |
EatMapStartChar(ReadOnlySpan<Char>, ref Int32)
View Source
Declaration
bool EatMapStartChar(ReadOnlySpan<char> value, ref int i)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ReadOnlySpan<System.Char> | value |
System.Int32 | i |
EatMapKey(String, ref Int32)
View Source
Declaration
string EatMapKey(string value, ref int i)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | value |
System.Int32 | i |
EatMapKey(ReadOnlySpan<Char>, ref Int32)
View Source
Declaration
ReadOnlySpan<char> EatMapKey(ReadOnlySpan<char> value, ref int i)
Returns
ReadOnlySpan<System.Char>
Parameters
Type | Name |
---|---|
ReadOnlySpan<System.Char> | value |
System.Int32 | i |
EatMapKeySeperator(String, ref Int32)
View Source
Declaration
bool EatMapKeySeperator(string value, ref int i)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | value |
System.Int32 | i |
EatMapKeySeperator(ReadOnlySpan<Char>, ref Int32)
View Source
Declaration
bool EatMapKeySeperator(ReadOnlySpan<char> value, ref int i)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ReadOnlySpan<System.Char> | value |
System.Int32 | i |
EatWhitespace(String, ref Int32)
View Source
Declaration
void EatWhitespace(string value, ref int i)
Parameters
Type | Name |
---|---|
System.String | value |
System.Int32 | i |
EatWhitespace(ReadOnlySpan<Char>, ref Int32)
View Source
Declaration
void EatWhitespace(ReadOnlySpan<char> value, ref int i)
Parameters
Type | Name |
---|---|
ReadOnlySpan<System.Char> | value |
System.Int32 | i |
EatValue(String, ref Int32)
View Source
Declaration
string EatValue(string value, ref int i)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | value |
System.Int32 | i |
EatValue(ReadOnlySpan<Char>, ref Int32)
View Source
Declaration
ReadOnlySpan<char> EatValue(ReadOnlySpan<char> value, ref int i)
Returns
ReadOnlySpan<System.Char>
Parameters
Type | Name |
---|---|
ReadOnlySpan<System.Char> | value |
System.Int32 | i |
EatItemSeperatorOrMapEndChar(String, ref Int32)
View Source
Declaration
bool EatItemSeperatorOrMapEndChar(string value, ref int i)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | value |
System.Int32 | i |
EatItemSeperatorOrMapEndChar(ReadOnlySpan<Char>, ref Int32)
View Source
Declaration
bool EatItemSeperatorOrMapEndChar(ReadOnlySpan<char> value, ref int i)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ReadOnlySpan<System.Char> | value |
System.Int32 | i |