Skip to content
Permalink
Browse files
Update for Compact Framework compilation
  • Loading branch information
Timothy A. Bish committed Jan 14, 2010
1 parent 33529ed commit 9a9285b659eadd7613c10819610f4e33c92bc2e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
@@ -28,25 +28,13 @@ namespace Apache.NMS.Stomp.Protocol
public interface IPrimitiveMapMarshaler
{
/// <summary>
/// Marshals an instance of an IPrimitiveMap to an String object.
/// Marshals a PrimitiveMap instance to an serialized byte array.
/// </summary>
/// <param name="map">
/// A <see cref="IPrimitiveMap"/>
/// </param>
/// <returns>
/// A <see cref="System.Byte[]"/>
/// </returns>
byte[] Marshal(IPrimitiveMap map);

/// <summary>
/// Un-marshals an IPrimitiveMap instance from a String object.
/// </summary>
/// <param name="mapContent">
/// A <see cref="System.Byte[]"/>
/// </param>
/// <returns>
/// A <see cref="IPrimitiveMap"/>
/// </returns>
IPrimitiveMap Unmarshal(byte[] mapContent);

/// <summary>
@@ -88,17 +88,15 @@ public byte[] Marshal(IPrimitiveMap map)

public IPrimitiveMap Unmarshal(byte[] mapContent)
{
string content = this.encoder.GetString(mapContent);
string xmlString = this.encoder.GetString(mapContent, 0, mapContent.Length);

PrimitiveMap result = new PrimitiveMap();

if(content == null || content == "")
if (xmlString == null || xmlString == "")
{
return result;
}

String xmlString = this.encoder.GetString(mapContent);

XmlReaderSettings settings = new XmlReaderSettings();

settings.IgnoreComments = true;

0 comments on commit 9a9285b

Please sign in to comment.