Using .NET System.Text.StringBuilder from ASP

More info about System.Text.StringBuilder class at MSDN Library.

Output

Fabio Zendhi Nagao 

Sources

/dot-NET/System.Text.StringBuilder.asp

<%@ language="VBScript" %>
<!--#include virtual="/lib/unit-tests.asp"-->
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link href="/lib/unit-tests.css" rel="stylesheet" type="text/css" />
<h1>Using .NET System.Text.StringBuilder from ASP</h1>
<p>
	More info about System.Text.StringBuilder class at <a href="http://msdn.microsoft.com/en-us/library/System.Text.StringBuilder.aspx">MSDN Library</a>.
</p>
<h2>Output</h2>
<div class="code"><pre><%
 
' PS> new-object System.Text.StringBuilder | gm | format-list > System.Text.StringBuilder.txt
 
'TypeName   : System.Text.StringBuilder
'Name       : Append
'MemberType : Method
'Definition : System.Text.StringBuilder Append(char value, int repeatCount),
'             System.Text.StringBuilder Append(char[] value, int startIndex, int charCount),
'             System.Text.StringBuilder Append(string value),
'             System.Text.StringBuilder Append(string value, int startIndex, int count),
'             System.Text.StringBuilder Append(bool value),
'             System.Text.StringBuilder Append(sbyte value),
'             System.Text.StringBuilder Append(byte value),
'             System.Text.StringBuilder Append(char value),
'             System.Text.StringBuilder Append(int16 value),
'             System.Text.StringBuilder Append(int value),
'             System.Text.StringBuilder Append(long value),
'             System.Text.StringBuilder Append(float value),
'             System.Text.StringBuilder Append(double value),
'             System.Text.StringBuilder Append(decimal value),
'             System.Text.StringBuilder Append(uint16 value),
'             System.Text.StringBuilder Append(uint32 value),
'             System.Text.StringBuilder Append(uint64 value),
'             System.Text.StringBuilder Append(System.Object value),
'             System.Text.StringBuilder Append(char[] value)
 
'TypeName   : System.Text.StringBuilder
'Name       : AppendFormat
'MemberType : Method
'Definition : System.Text.StringBuilder AppendFormat(string format, System.Object arg0),
'             System.Text.StringBuilder AppendFormat(string format, System.Object arg0, System.Object arg1),
'             System.Text.StringBuilder AppendFormat(string format, System.Object arg0, System.Object arg1, System.Object arg2),
'             System.Text.StringBuilder AppendFormat(string format, Params System.Object[] args),
'             System.Text.StringBuilder AppendFormat(System.IFormatProvider provider, string format, Params System.Object[] args)
 
'TypeName   : System.Text.StringBuilder
'Name       : AppendLine
'MemberType : Method
'Definition : System.Text.StringBuilder AppendLine(),
'             System.Text.StringBuilder AppendLine(string value)
 
'TypeName   : System.Text.StringBuilder
'Name       : Clear
'MemberType : Method
'Definition : System.Text.StringBuilder Clear()
 
'TypeName   : System.Text.StringBuilder
'Name       : CopyTo
'MemberType : Method
'Definition : void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count)
 
'TypeName   : System.Text.StringBuilder
'Name       : EnsureCapacity
'MemberType : Method
'Definition : int EnsureCapacity(int capacity)
 
'TypeName   : System.Text.StringBuilder
'Name       : Equals
'MemberType : Method
'Definition : bool Equals(System.Text.StringBuilder sb),
'             bool Equals(System.Object obj)
 
'TypeName   : System.Text.StringBuilder
'Name       : GetHashCode
'MemberType : Method
'Definition : int GetHashCode()
 
'TypeName   : System.Text.StringBuilder
'Name       : GetObjectData
'MemberType : Method
'Definition : void ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
 
'TypeName   : System.Text.StringBuilder
'Name       : GetType
'MemberType : Method
'Definition : type GetType()
 
'TypeName   : System.Text.StringBuilder
'Name       : Insert
'MemberType : Method
'Definition : System.Text.StringBuilder Insert(int index, string value, int count),
'             System.Text.StringBuilder Insert(int index, string value),
'             System.Text.StringBuilder Insert(int index, bool value),
'             System.Text.StringBuilder Insert(int index, sbyte value),
'             System.Text.StringBuilder Insert(int index, byte value),
'             System.Text.StringBuilder Insert(int index, int16 value),
'             System.Text.StringBuilder Insert(int index, char value),
'             System.Text.StringBuilder Insert(int index, char[] value),
'             System.Text.StringBuilder Insert(int index, char[] value, int startIndex, int charCount),
'             System.Text.StringBuilder Insert(int index, int value),
'             System.Text.StringBuilder Insert(int index, long value),
'             System.Text.StringBuilder Insert(int index, float value),
'             System.Text.StringBuilder Insert(int index, double value),
'             System.Text.StringBuilder Insert(int index, decimal value),
'             System.Text.StringBuilder Insert(int index, uint16 value),
'             System.Text.StringBuilder Insert(int index, uint32 value),
'             System.Text.StringBuilder Insert(int index, uint64 value),
'             System.Text.StringBuilder Insert(int index, System.Object value)
 
'TypeName   : System.Text.StringBuilder
'Name       : Remove
'MemberType : Method
'Definition : System.Text.StringBuilder Remove(int startIndex, int length)
 
'TypeName   : System.Text.StringBuilder
'Name       : Replace
'MemberType : Method
'Definition : System.Text.StringBuilder Replace(string oldValue, string newValue),
'             System.Text.StringBuilder Replace(string oldValue, string newValue, int startIndex, int count),
'             System.Text.StringBuilder Replace(char oldChar, char newChar),
'             System.Text.StringBuilder Replace(char oldChar, char newChar, int startIndex, int count)
 
'TypeName   : System.Text.StringBuilder
'Name       : ToString
'MemberType : Method
'Definition : string ToString(),
'             string ToString(int startIndex, int length)
 
'TypeName   : System.Text.StringBuilder
'Name       : Chars
'MemberType : ParameterizedProperty
'Definition : char Chars(int index) {get;set;}
 
'TypeName   : System.Text.StringBuilder
'Name       : Capacity
'MemberType : Property
'Definition : int Capacity {get;set;}
 
'TypeName   : System.Text.StringBuilder
'Name       : Length
'MemberType : Property
'Definition : int Length {get;set;}
 
'TypeName   : System.Text.StringBuilder
'Name       : MaxCapacity
'MemberType : Property
'Definition : int MaxCapacity {get;}
 
with Server.createObject("System.Text.StringBuilder")
 
	.append_3 "Fabio "
	.append_3 "Zendhi "
	.append_3 "Nagao "
 
	Response.write( .toString() & vbNewline )
 
end with
 
%></pre></div>
<hr />
<h2>Sources</h2>
<h3><%= Request.ServerVariables("SCRIPT_NAME") %></h3>
<div class="code"><%= geshify( loadTextFile( Server.mapPath( Request.ServerVariables("SCRIPT_NAME") ) ), "asp" ) %></div>