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:37:31 UTC
svn commit: r891927 -
/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.2.x/src/main/csharp/Commands/WireFormatInfo.cs
Author: tabish
Date: Thu Dec 17 21:37:30 2009
New Revision: 891927
URL: http://svn.apache.org/viewvc?rev=891927&view=rev
Log:
Fix output of Magic property in ToString to actual display its value.
Modified:
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.2.x/src/main/csharp/Commands/WireFormatInfo.cs
Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.2.x/src/main/csharp/Commands/WireFormatInfo.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.2.x/src/main/csharp/Commands/WireFormatInfo.cs?rev=891927&r1=891926&r2=891927&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.2.x/src/main/csharp/Commands/WireFormatInfo.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.2.x/src/main/csharp/Commands/WireFormatInfo.cs Thu Dec 17 21:37:30 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()
+ " ]";