C# Class Microsoft.Protocols.TestSuites.MS_OXCFXICS.Serializer

Contains method to serialize a serializable object.
显示文件 Open project: OfficeDev/Interop-TestSuites

Public Methods

Method Description
Serialize ( object obj, Stream stream ) : int

Serialize a serializable object

Private Methods

Method Description
FillStream ( byte val, int min, int max, byte filledValue, Stream stream ) : int

Fill the stream.

Serialize ( object obj, int min, int max, byte fillValue, Stream stream ) : int

Serialize the object to the stream.

Method Details

Serialize() public static method

Serialize a serializable object
public static Serialize ( object obj, Stream stream ) : int
obj object An object instance must have a SerializableObject /// attribute. ///
stream Stream The Stream.
return int