diff --git a/activemq-core/src/gram/java/org/apache/activemq/openwire/tool/OpenWireCSharpMarshallingScript.java b/activemq-core/src/gram/java/org/apache/activemq/openwire/tool/OpenWireCSharpMarshallingScript.java index 179059796b..4cf9960ac9 100644 --- a/activemq-core/src/gram/java/org/apache/activemq/openwire/tool/OpenWireCSharpMarshallingScript.java +++ b/activemq-core/src/gram/java/org/apache/activemq/openwire/tool/OpenWireCSharpMarshallingScript.java @@ -213,7 +213,7 @@ public abstract class OpenWireCSharpMarshallingScript extends OpenWireJavaMarsha } else if (type.equals("byte[]") || type.equals("ByteSequence")) { if (size != null) { - out.println("dataOut.WriteBytes(" + getter + ", 0, " + size.asInt() + ");"); + out.println("dataOut.Write(" + getter + ", 0, " + size.asInt() + ");"); } else { out.println("if(bs.ReadBoolean()) {");