The Encoder type exposes the following methods.

Methods

 Public

 Protected
 Instance

 Static
 Declared

 Inherited
 XNA Framework Only

 .NET Compact Framework Only

 MemberDescription
Register(Int32, Type)
Register a type by the type code specified.
Register(Int32, Type, Serialize)
Register a custom serializer by the type and type code specified.
Register(Int32, Type, Serialize, Deserialize)
Register a custom serializer/deserializer by the type and type code specified.
TryWriteTypeCode(BinaryWriter, Type, Boolean)
Attempts to write a type code for the type specified.
WriteBool(BinaryWriter, Boolean)
Write a bool value to the binary writer.
WriteByte(BinaryWriter, Byte, Boolean)
Write a byte value to the binary writer.
WriteChar(BinaryWriter, Char, Boolean)
Write a char value to the binary writer.
WriteCount(BinaryWriter, Int32)
Write a collection count value to the binary writer.
WriteDateTime(BinaryWriter, DateTime, EncoderConfiguration, Boolean)
Write a date time value to the binary writer.
WriteDateTimeOffset(BinaryWriter, DateTimeOffset, Boolean)
Write a date time offset value to the binary writer.
WriteDecimal(BinaryWriter, Decimal, Boolean)
Write a decimal value to the binary writer.
WriteDouble(BinaryWriter, Double, Boolean)
Write a double value to the binary writer.
WriteFloat(BinaryWriter, Single, Boolean)
Write a float value to the binary writer.
WriteGuid(BinaryWriter, Guid, Boolean)
Write a guid value to the binary writer.
WriteInt(BinaryWriter, Int32, Boolean)
Write a int value to the binary writer.
WriteLong(BinaryWriter, Int64, Boolean)
Write a long value to the binary writer.
WriteSByte(BinaryWriter, SByte, Boolean)
Write a signed byte value to the binary writer.
WriteShort(BinaryWriter, Int16, Boolean)
Write a short value to the binary writer.
WriteString(BinaryWriter, String, Boolean)
Write a string value to the binary writer.
WriteTimeSpan(BinaryWriter, TimeSpan, Boolean)
Write a time span value to the binary writer.
WriteType(BinaryWriter, Type, Boolean)
Write a type value to the binary writer.
WriteUInt(BinaryWriter, UInt32, Boolean)
Write a unsigned int value to the binary writer.
WriteULong(BinaryWriter, UInt64, Boolean)
Write a unsigned long value to the binary writer.
WriteUri(BinaryWriter, Uri, Boolean)
Write a uri value to the binary writer.
WriteUShort(BinaryWriter, UInt16, Boolean)
Write a unsigned short value to the binary writer.

See Also