Gemstone IO Library
Show/Hide TOC

# StreamSerialization T GetWriteMethod Method

Gets write serialization method for type T.

## Definition

Namespace: Gemstone.IO.Parsing
Assembly: Gemstone.IO (in Gemstone.IO.dll) Version: 1.0.160 -- Release Build+169caca5192ac5075949df0220a553c99300004a
C#
View Source Request Example

    public static Action<Stream, T>? GetWriteMethod(
    	Type? elementType = null,
    	bool? skipAutoListHandling = null
    )

VB
View Source Request Example

    Public Shared Function GetWriteMethod (
    	Optional elementType As Type = Nothing,
    	Optional skipAutoListHandling As Boolean? = Nothing
    ) As Action(Of Stream, T)

C++
View Source Request Example

    public:
    static Action<Stream^, T>^ GetWriteMethod(
    	Type^ elementType = nullptr,
    	Nullable<bool> skipAutoListHandling = nullptr
    )

JavaScript
View Source Request Example

    Gemstone.IO.Parsing.StreamSerialization.GetWriteMethod = function(elementType, skipAutoListHandling);

#### Parameters

elementType Type (Optional)
  Provides a type representing the encompassed elements when type T is a list or array type, and element type cannot otherwise be ascertained, e.g., when element type is an Object.
skipAutoListHandling Nullable Boolean (Optional)
  Set to true to skip automatic handling of list types.

#### Return Value

Action Stream, T
Write serialization method.

## See Also

#### Reference

StreamSerializationT Class
Gemstone.IO.Parsing Namespace