You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2009/12/17 22:33:47 UTC
svn commit: r891924 -
/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/WireFormatInfo.cs
Author: tabish
Date: Thu Dec 17 21:33:47 2009
New Revision: 891924
URL: http://svn.apache.org/viewvc?rev=891924&view=rev
Log:
Fix output of Magic property in ToString to actual display its value.
Modified:
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/WireFormatInfo.cs
Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/WireFormatInfo.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/WireFormatInfo.cs?rev=891924&r1=891923&r2=891924&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/WireFormatInfo.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Commands/WireFormatInfo.cs Thu Dec 17 21:33:47 2009
@@ -15,6 +15,7 @@
* limitations under the License.
*/
+using System.Text;
using Apache.NMS.ActiveMQ.State;
using Apache.NMS.Util;
using Apache.NMS.ActiveMQ.OpenWire;
@@ -47,7 +48,7 @@
public override string ToString()
{
return GetType().Name + "["
- + " Magic=" + Magic
+ + " Magic=" + ASCIIEncoding.ASCII.GetString(magic)
+ " Version=" + Version
+ " MarshalledProperties=" + Properties.ToString()
+ " ]";