Ejemplo n.º 1
0
 /// <summary>
 /// Reads a string from the stream.
 /// </summary>
 /// <param name="name">Name of the element to read.</param>
 /// <returns>The read string.</returns>
 public string ReadString(string name)
 {
     if (codec.IsSimpleString(name))
     {
         return(codec.ReadString(name));
     }
     else
     {
         return((string)this.ReadObject(name));
     }
 }