Esempio n. 1
0
 /// <summary>
 /// <para>
 /// Writes a markup stream writable object to the stream.
 /// </para>
 /// </summary>
 /// <param name="obj">The object to write, or null if none.</param>
 public void Write(IMarkupStreamWritable obj)
 {
     if (obj != null)
     {
         obj.WriteTo(this);
     }
 }
Esempio n. 2
0
        /// <inheritdoc />
        public override void Write(object value)
        {
            IMarkupStreamWritable writable = value as IMarkupStreamWritable;

            if (writable != null)
            {
                writable.WriteTo(this);
            }
            else
            {
                base.Write(value);
            }
        }
 /// <summary>
 /// <para>
 /// Writes a markup stream writable object to the stream.
 /// </para>
 /// </summary>
 /// <param name="obj">The object to write, or null if none.</param>
 public void Write(IMarkupStreamWritable obj)
 {
     if (obj != null)
         obj.WriteTo(this);
 }