/// <summary> /// Gets the tags string representation $TAG_NAME|TYPE_NAME|ARGS /// </summary> /// <returns></returns> public override string ToString() { using (RdlTagWriter writer = new RdlTagWriter()) { this.WriteTag(writer); return(writer.ToString()); } }
/// <summary> /// Writes the current tag to the specified RdlTagWriter instance. /// </summary> /// <param name="writer">The RdlTagWriter instance to write the current tag to.</param> public void WriteTag(RdlTagWriter writer) { writer.WriteBeginTag(this.TagName, this.TypeName); for (int i = 0; i < this.Args.Count; i++) { writer.Write(this.Args[i]); } writer.WriteEndTag(); }
/// <summary> /// Gets the string representation of the tags contained within the collection. /// </summary> /// <returns>The string representation of the tags contained within the collection.</returns> public override string ToString() { lock (this.SyncLock) { using (RdlTagWriter writer = new RdlTagWriter()) { foreach (var tag in this) { tag.WriteTag(writer); } return(writer.ToString()); } } }
/// <summary> /// Gets the string representation of the commands contained within the collection. /// </summary> /// <returns>The string representation of the commands contained within the collection.</returns> public override string ToString() { RdlAuthKey user = new RdlAuthKey(); if (!String.IsNullOrEmpty(this.AuthKey) && !String.IsNullOrEmpty(this.AuthKeyType)) { user = new RdlAuthKey(this.AuthKey, this.AuthKeyType); } using (RdlTagWriter writer = new RdlTagWriter()) { user.WriteTag(writer); foreach (var item in this) { item.WriteTag(writer); } foreach (var tag in this.Tags) { tag.WriteTag(writer); } return(writer.ToString()); } }