Skip to main content

Config

Assembly: ServiceStack.Text.dll​
View Source​
Declaration
public class Config

Properties​

ConvertObjectTypesIntoStringDictionary​

View Source​
Declaration
public bool ConvertObjectTypesIntoStringDictionary { get; set; }

TryToParsePrimitiveTypeValues​

View Source​
Declaration
public bool TryToParsePrimitiveTypeValues { get; set; }

TryToParseNumericType​

View Source​
Declaration
public bool TryToParseNumericType { get; set; }

TryParseIntoBestFit​

View Source​
Declaration
public bool TryParseIntoBestFit { get; set; }

ParsePrimitiveFloatingPointTypes​

View Source​
Declaration
public ParseAsType ParsePrimitiveFloatingPointTypes { get; set; }

ParsePrimitiveIntegerTypes​

View Source​
Declaration
public ParseAsType ParsePrimitiveIntegerTypes { get; set; }

ExcludeDefaultValues​

View Source​
Declaration
public bool ExcludeDefaultValues { get; set; }

IncludeNullValues​

View Source​
Declaration
public bool IncludeNullValues { get; set; }

IncludeNullValuesInDictionaries​

View Source​
Declaration
public bool IncludeNullValuesInDictionaries { get; set; }

IncludeDefaultEnums​

View Source​
Declaration
public bool IncludeDefaultEnums { get; set; }

TreatEnumAsInteger​

View Source​
Declaration
public bool TreatEnumAsInteger { get; set; }

ExcludeTypeInfo​

View Source​
Declaration
public bool ExcludeTypeInfo { get; set; }

IncludeTypeInfo​

View Source​
Declaration
public bool IncludeTypeInfo { get; set; }

Indent​

View Source​
Declaration
public bool Indent { get; set; }

TypeAttr​

View Source​
Declaration
public string TypeAttr { get; set; }

TypeAttrMemory​

View Source​
Declaration
public ReadOnlyMemory<char> TypeAttrMemory { get; }

DateTimeFormat​

View Source​
Declaration
public string DateTimeFormat { get; set; }

TypeWriter​

View Source​
Declaration
public Func<Type, string> TypeWriter { get; set; }

TypeFinder​

View Source​
Declaration
public Func<string, Type> TypeFinder { get; set; }

ParsePrimitiveFn​

View Source​
Declaration
public Func<string, object> ParsePrimitiveFn { get; set; }

DateHandler​

View Source​
Declaration
public DateHandler DateHandler { get; set; }

TimeSpanHandler​

View Source​
Declaration
public TimeSpanHandler TimeSpanHandler { get; set; }

PropertyConvention​

View Source​
Declaration
public PropertyConvention PropertyConvention { get; set; }

TextCase​

View Source​
Declaration
public TextCase TextCase { get; set; }

EmitCamelCaseNames​

View Source​
Declaration
[Obsolete("Use TextCase = TextCase.CamelCase")]
public bool EmitCamelCaseNames { get; set; }

EmitLowercaseUnderscoreNames​

View Source​
Declaration
[Obsolete("Use TextCase = TextCase.SnakeCase")]
public bool EmitLowercaseUnderscoreNames { get; set; }

ThrowOnError​

View Source​
Declaration
public bool ThrowOnError { get; set; }

SkipDateTimeConversion​

View Source​
Declaration
public bool SkipDateTimeConversion { get; set; }

AlwaysUseUtc​

View Source​
Declaration
public bool AlwaysUseUtc { get; set; }

AssumeUtc​

View Source​
Declaration
public bool AssumeUtc { get; set; }

AppendUtcOffset​

View Source​
Declaration
public bool AppendUtcOffset { get; set; }

PreferInterfaces​

View Source​
Declaration
public bool PreferInterfaces { get; set; }

IncludePublicFields​

View Source​
Declaration
public bool IncludePublicFields { get; set; }

MaxDepth​

View Source​
Declaration
public int MaxDepth { get; set; }

OnDeserializationError​

View Source​
Declaration
public DeserializationErrorDelegate OnDeserializationError { get; set; }

ModelFactory​

View Source​
Declaration
public EmptyCtorFactoryDelegate ModelFactory { get; set; }

ExcludePropertyReferences​

View Source​
Declaration
public string[] ExcludePropertyReferences { get; set; }

ExcludeTypes​

View Source​
Declaration
public HashSet<Type> ExcludeTypes { get; set; }

ExcludeTypeNames​

View Source​
Declaration
public HashSet<string> ExcludeTypeNames { get; set; }

EscapeUnicode​

View Source​
Declaration
public bool EscapeUnicode { get; set; }

EscapeHtmlChars​

View Source​
Declaration
public bool EscapeHtmlChars { get; set; }

Defaults​

View Source​
Declaration
public static Config Defaults { get; }

Methods​

AssertNotInit()​

View Source​
Declaration
public static Config AssertNotInit()
Returns​

ServiceStack.Text.Config

Init()​

View Source​
Declaration
public static void Init()

Init(Config)​

View Source​
Declaration
public static void Init(Config config)
Parameters​
TypeName
ServiceStack.Text.Configconfig

UnsafeInit(Config)​

Bypass Init checks. Only call on Startup.

View Source​
Declaration
public static void UnsafeInit(Config config)
Parameters​
TypeName
ServiceStack.Text.Configconfig

Populate(Config)​

View Source​
Declaration
public Config Populate(Config config)
Returns​

ServiceStack.Text.Config

Parameters​
TypeName
ServiceStack.Text.Configconfig