Edit

Share via


OrleansJsonSerializer.Serialize Method

Definition

Overloads

Serialize(Object, Type)

Serializes an object to a JSON string.

Serialize(Object, ISerializationContext, Type)

Serializes an object to a binary stream

Serialize(Object, Type)

Serializes an object to a JSON string.

public string Serialize (object item, Type expectedType);
member this.Serialize : obj * Type -> string
Public Function Serialize (item As Object, expectedType As Type) As String

Parameters

item
Object

The object to serialize.

expectedType
Type

The type the deserializer should expect.

Returns

Applies to

Serialize(Object, ISerializationContext, Type)

Source:
OrleansJsonSerializer.cs

Serializes an object to a binary stream

public void Serialize (object item, Orleans.Serialization.ISerializationContext context, Type expectedType);
abstract member Serialize : obj * Orleans.Serialization.ISerializationContext * Type -> unit
override this.Serialize : obj * Orleans.Serialization.ISerializationContext * Type -> unit
Public Sub Serialize (item As Object, context As ISerializationContext, expectedType As Type)

Parameters

item
Object

The object to serialize

context
ISerializationContext

The serialization context.

expectedType
Type

The type the deserializer should expect

Implements

Applies to