Serialize from Objects to JSON content presented in the byte array.

Namespace: MonoSoftware.Core
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public static byte[] GetBytes(
	Object content,
	Type type
)
Visual Basic
Public Shared Function GetBytes ( 
	content As Object,
	type As Type
) As Byte()
Visual C++
public:
static array<unsigned char>^ GetBytes(
	Object^ content, 
	Type^ type
)
F#
static member GetBytes : 
        content : Object * 
        type : Type -> byte[] 

Parameters

content
Type: System..::..Object
Serializes object to JSON.
type
Type: System..::..Type
Object type

Return Value

Type: array<Byte>[]()[][]
Serialized object.

See Also