The NMS Class Library (.Net Messaging Library)

PrimitiveMap.MarshalPrimitive Method 

public static void MarshalPrimitive(
   BinaryWriter dataOut,
   object value
);

See Also

PrimitiveMap Class | ActiveMQ.OpenWire Namespace