Interface ICarrotSerializer
- Namespace
- CarrotMQ.Core.Serialization
- Assembly
- CarrotMQ.Core.dll
Represents a serializer for serializing and deserializing objects.
public interface ICarrotSerializer
- Extension Methods
Remarks
This is the serializer that will be used to serialize and deserialize the message you defined:
Methods
Deserialize<T>(string)
Deserialize object into type T.
T? Deserialize<T>(string dataString)
Parameters
dataStringstring
Returns
- T
Type Parameters
T
Serialize<T>(T)
Serialize object of type T.
string Serialize<T>(T obj) where T : notnull
Parameters
objT
Returns
Type Parameters
T