Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/13/09 10:34:57 (15 years ago)
Author:
epitzer
Message:

split off test case, format empty variable names, include assembly names (#506)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/New Persistence Exploration/Persistence/Persistence/XmlFormatter.cs

    r1330 r1338  
    5151    }
    5252
    53     private string FormatBegin(ISerializationToken token) {
     53    private string FormatBegin(ISerializationToken token) {     
    5454      BeginToken beginToken = (BeginToken)token;
    5555      string result = Prefix +
     
    5858                                   {
    5959                                     {"name", beginToken.Accessor.Name},
    60                                      {"type", beginToken.Accessor.Get().GetType().ToString()},
     60                                     {"type", beginToken.Accessor.Get().GetType().AssemblyQualifiedName},
    6161                                     {"id", beginToken.Id.ToString()}
    6262                                   }, NodeType.Start) + "\n";
     
    7474      Dictionary<string, string> attributes =
    7575        new Dictionary<string, string> {
    76             {"type", dataToken.Accessor.Get().GetType().ToString()}};
    77       if ( dataToken.Accessor.Name != "" )
     76            {"type", dataToken.Accessor.Get().GetType().AssemblyQualifiedName}};
     77      if ( !string.IsNullOrEmpty(dataToken.Accessor.Name) )
    7878        attributes.Add("name", dataToken.Accessor.Name);
    7979      if ( dataToken.Id != null )
Note: See TracChangeset for help on using the changeset viewer.