ServiceStack.Text
Determines whether this serializer can create the specified type from a string.
The type.
true if this instance [can create from string] the specified type; otherwise, false.
Parses the specified value.
The value.
Deserializes from reader.
The reader.
Serializes to string.
The value.
Serializes to writer.
The value.
The writer.
Parses the specified value.
The value.
A class to allow the conversion of doubles to string representations of
their exact decimal values. The implementation aims for readability over
efficiency.
Courtesy of @JonSkeet
http://www.yoda.arachsys.com/csharp/DoubleConverter.cs
How many digits are *after* the decimal point
Constructs an arbitrary decimal expansion from the given long.
The long must not be negative.
Multiplies the current expansion by the given amount, which should
only be 2 or 5.
Shifts the decimal point; a negative value makes
the decimal expansion bigger (as fewer digits come after the
decimal place) and a positive value makes the decimal
expansion smaller.
Removes leading/trailing zeroes from the expansion.
Converts the value to a proper decimal string representation.
Implement the serializer using a more static approach
Pretty Thread-Safe cache class from:
http://code.google.com/p/dapper-dot-net/source/browse/Dapper/SqlMapper.cs
This is a micro-cache; suitable when the number of terms is controllable (a few hundred, for example),
and strictly append-only; you cannot change existing values. All key matches are on **REFERENCE**
equality. The type is fully thread-safe.
A fast, standards-based, serialization-issue free DateTime serailizer.
Creates an instance of a Type from a string value
micro optimizations: using flags instead of value.IndexOfAny(EscapeChars)
Get the type(string) constructor if exists
The type.
Implement the serializer using a more static approach
Represents an individual object, allowing access to members by-name
Use the target types definition of equality
Obtain the hash of the target object
Use the target's definition of a string representation
Wraps an individual object, allowing by-name access to that instance
Get or Set the value of a named member for the underlying object
The object represented by this instance
if the is configured
to take advantage of specification,
to support user-friendly serialized formats, ie emitting camelCasing for JSON
and parsing member names and enum values in a case-insensitive manner.
Gets or sets a value indicating if the framework should throw serialization exceptions
or continue regardless of deserialization errors. If the framework
will throw; otherwise, it will parse as many fields as possible. The default is .
Never emit type info for this type
if the is configured
to take advantage of specification,
to support user-friendly serialized formats, ie emitting camelCasing for JSON
and parsing member names and enum values in a case-insensitive manner.
Define custom serialization fn for BCL Structs
Define custom deserialization fn for BCL Structs
Exclude specific properties of this type from being serialized
Opt-in flag to set some Value Types to be treated as a Ref Type
Creates an instance of a Type from a string value
Determines whether the specified type is convertible from string.
The type.
true if the specified type is convertible from string; otherwise, false.
Parses the specified value.
The value.
Parses the specified type.
The type.
The value.
Useful extension method to get the Dictionary[string,string] representation of any POCO type.
Recursively prints the contents of any POCO object in a human-friendly, readable format
A hashset implementation that uses an IDictionary
Shortcut escape when we're sure value doesn't contain any escaped chars
Since Silverlight doesn't have char.ConvertFromUtf32() so putting Mono's implemenation inline.
Class to hold
@jonskeet: Collection of utility methods which operate on streams.
r285, February 26th 2009: http://www.yoda.arachsys.com/csharp/miscutil/
Reads the given stream up to the end, returning the data as a byte
array.
Reads the given stream up to the end, returning the data as a byte
array, using the given buffer size.
Reads the given stream up to the end, returning the data as a byte
array, using the given buffer for transferring data. Note that the
current contents of the buffer is ignored, so the buffer needn't
be cleared beforehand.
Copies all the data from one stream into another.
Copies all the data from one stream into another, using a buffer
of the given size.
Copies all the data from one stream into another, using the given
buffer for transferring data. Note that the current contents of
the buffer is ignored, so the buffer needn't be cleared beforehand.
Reads exactly the given number of bytes from the specified stream.
If the end of the stream is reached before the specified amount
of data is read, an exception is thrown.
Reads into a buffer, filling it completely.
Reads exactly the given number of bytes from the specified stream,
into the given buffer, starting at position 0 of the array.
Reads exactly the given number of bytes from the specified stream,
into the given buffer, starting at position 0 of the array.
Same as ReadExactly, but without the argument checks.
Utils to load types
Find the type from the name supplied
[typeName] or [typeName, assemblyName]
Find type if it exists
The type if it exists
Converts from base: 0 - 62
The source.
From.
To.
Skip the encoding process for 'safe strings'
Provides by-name member-access to objects of a given type
Create a new instance of this type
Provides a type-specific accessor, allowing by-name access for all objects of that type
The accessor is cached internally; a pre-existing accessor may be returned
Does this type support new instances via a parameterless constructor?
Get or set the value of a named member on the target instance
Implement the serializer using a more static approach
micro optimizations: using flags instead of value.IndexOfAny(EscapeChars)
Parses the specified value.
The value.
WCF Json format: /Date(unixts+0000)/
WCF Json format: /Date(unixts+0000)/