Interface IQcSerializer
Creates a Serializer that is loaded and used by the QuantumSerializer.
Namespace: QFSW.QC
Assembly: QFSW.QC.dll
Syntax
public interface IQcSerializer
Properties
Priority
The priority of this serializer to resolve multiple serializers covering the same type.
Declaration
int Priority { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
CanSerialize(Type)
If this serializer can serialize the incoming type.
Declaration
bool CanSerialize(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type to test. |
Returns
Type | Description |
---|---|
Boolean | If it can serialize. |
SerializeFormatted(Object, QuantumTheme, Func<Object, QuantumTheme, String>)
Serializes the incoming data.
Declaration
string SerializeFormatted(object value, QuantumTheme theme, Func<object, QuantumTheme, string> recursiveSerializer)
Parameters
Type | Name | Description |
---|---|---|
Object | value | The value to serialize. |
QuantumTheme | theme | The (optional) theme to use for formatted serialization. |
Func<Object, QuantumTheme, String> | recursiveSerializer | Delegate back to the main serializer to allow for recursive serialization of sub elements. |
Returns
Type | Description |
---|---|
String | The serialized result. |