Class ProtobufSerializer
An implementation of IExternalSerializer for usage with Protobuf types.
Inheritance
System.Object
ProtobufSerializer
Assembly: Orleans.Serialization.Protobuf.dll
Syntax
public class ProtobufSerializer : IExternalSerializer
Methods
|
Improve this Doc
View Source
DeepCopy(Object, ICopyContext)
Declaration
public object DeepCopy(object source, ICopyContext context)
Parameters
| Type |
Name |
Description |
| System.Object |
source |
|
| ICopyContext |
context |
|
Returns
| Type |
Description |
| System.Object |
|
|
Improve this Doc
View Source
Deserialize(Type, IDeserializationContext)
Declaration
public object Deserialize(Type expectedType, IDeserializationContext context)
Parameters
| Type |
Name |
Description |
| Type |
expectedType |
|
| IDeserializationContext |
context |
|
Returns
| Type |
Description |
| System.Object |
|
|
Improve this Doc
View Source
IsSupportedType(Type)
Determines whether this serializer has the ability to serialize a particular type.
Declaration
public bool IsSupportedType(Type itemType)
Parameters
| Type |
Name |
Description |
| Type |
itemType |
The type of the item to be serialized
|
Returns
| Type |
Description |
| System.Boolean |
A value indicating whether the type can be serialized
|
|
Improve this Doc
View Source
Serialize(Object, ISerializationContext, Type)
Declaration
public void Serialize(object item, ISerializationContext context, Type expectedType)
Parameters
| Type |
Name |
Description |
| System.Object |
item |
|
| ISerializationContext |
context |
|
| Type |
expectedType |
|
Extension Methods