System.Web.Compilation.TagAttributes.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
		public override string ToString ()
		{
			StringBuilder result = new StringBuilder ("TagAttributes {");
			string value;
			foreach (string key in Keys){
				result.Append ('[');
				result.Append (key);
				value = this [key] as string;
				if (value != null)
					result.AppendFormat ("=\"{0}\"", value);

				result.Append ("] ");
			}

			if (result.Length > 0 && result [result.Length - 1] == ' ')
				result.Length--;

			result.Append ('}');
			if (IsRunAtServer ())
				result.Append (" @Server");
			
			return result.ToString ();
		}