You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jg...@apache.org on 2009/04/08 06:11:55 UTC

svn commit: r762914 - /activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/XmlMessage.cs

Author: jgomes
Date: Tue Apr  7 19:18:14 2009
New Revision: 762914

URL: http://svn.apache.org/viewvc?rev=762914&view=rev
Log:
Minor clean-up.

Modified:
    activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/XmlMessage.cs

Modified: activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/XmlMessage.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/XmlMessage.cs?rev=762914&r1=762913&r2=762914&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/XmlMessage.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/XmlMessage.cs Tue Apr  7 19:18:14 2009
@@ -16,16 +16,17 @@
  */
 
 using System;
-using System.Xml.Schema;
-using System.Xml.Serialization;
 using Apache.NMS.Util;
 using NUnit.Framework;
 
 namespace Apache.NMS.Test
 {
-	// Serializable object.  In real life, this type of object would be generated from
-	// an XSD file using XSDObjectGen.
-	[Serializable]
+	// For ease of cross-platform exchange of information, you might generate objects from
+	// an XSD file using XSDObjectGen.  However, C# has built-in support for serializing.
+	// All of the XML attributes that are commented out are optional, but give you fine-grained
+	// control over the serialized format if you need it.
+
+	// [Serializable]
 	public enum CheckType
 	{
 		// [XmlEnum(Name = "message")]
@@ -36,7 +37,7 @@
 		response
 	}
 
-	[XmlRoot(ElementName = "NMSTestXmlType1", IsNullable = false), Serializable]
+	// [XmlRoot(ElementName = "NMSTestXmlType1", IsNullable = false), Serializable]
 	public class NMSTestXmlType1
 	{
 		// [XmlElement(ElementName = "crcCheck", IsNullable = false, DataType = "int")]
@@ -52,7 +53,7 @@
 		}
 	}
 
-	[XmlRoot(ElementName = "NMSTestXmlType2", IsNullable = false), Serializable]
+	// [XmlRoot(ElementName = "NMSTestXmlType2", IsNullable = false), Serializable]
 	public class NMSTestXmlType2
 	{
 		// [XmlElement(ElementName = "stringCheck", IsNullable = false, DataType = "string")]