Using .NET System.Collections.ArrayList from ASP

More info about System.Collections.ArrayList class at MSDN Library.

Output

3
Fabio
Zendhi
Nagao

Sources

/dot-NET/System.Collections.ArrayList.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.Collections.ArrayList from ASP</h1>
<p>
	More info about System.Collections.ArrayList class at <a href="https://msdn.microsoft.com/en-us/library/System.Collections.ArrayList.aspx">MSDN Library</a>.
</p>
<h2>Output</h2>
<div class="code"><pre><%
 
' PS> new-object System.Collections.ArrayList | gm | format-list > System.Collections.ArrayList.txt
 
'TypeName   : System.Collections.ArrayList
'Name       : Add
'MemberType : Method
'Definition : int Add(System.Object value),
'             int IList.Add(System.Object value)
 
'TypeName   : System.Collections.ArrayList
'Name       : AddRange
'MemberType : Method
'Definition : void AddRange(System.Collections.ICollection c)
 
'TypeName   : System.Collections.ArrayList
'Name       : BinarySearch
'MemberType : Method
'Definition : int BinarySearch(int index, int count, System.Object value, System.Collections.IComparer comparer),
'             int BinarySearch(System.Object value),
'             int BinarySearch(System.Object value, System.Collections.IComparer comparer)
 
'TypeName   : System.Collections.ArrayList
'Name       : Clear
'MemberType : Method
'Definition : void Clear(),
'             void IList.Clear()
 
'TypeName   : System.Collections.ArrayList
'Name       : Clone
'MemberType : Method
'Definition : System.Object Clone(),
'             System.Object ICloneable.Clone()
 
'TypeName   : System.Collections.ArrayList
'Name       : Contains
'MemberType : Method
'Definition : bool Contains(System.Object item),
'             bool IList.Contains(System.Object value)
 
'TypeName   : System.Collections.ArrayList
'Name       : CopyTo
'MemberType : Method
'Definition : void CopyTo(array array),
'             void CopyTo(array array, int arrayIndex),
'             void CopyTo(int index, array array, int arrayIndex, int count),
'             void ICollection.CopyTo(array array, int index)
 
'TypeName   : System.Collections.ArrayList
'Name       : Equals
'MemberType : Method
'Definition : bool Equals(System.Object obj)
 
'TypeName   : System.Collections.ArrayList
'Name       : GetEnumerator
'MemberType : Method
'Definition : System.Collections.IEnumerator GetEnumerator(),
'             System.Collections.IEnumerator GetEnumerator(int index, int count),
'             System.Collections.IEnumerator IEnumerable.GetEnumerator()
 
'TypeName   : System.Collections.ArrayList
'Name       : GetHashCode
'MemberType : Method
'Definition : int GetHashCode()
 
'TypeName   : System.Collections.ArrayList
'Name       : GetRange
'MemberType : Method
'Definition : System.Collections.ArrayList GetRange(int index, int count)
 
'TypeName   : System.Collections.ArrayList
'Name       : GetType
'MemberType : Method
'Definition : type GetType()
 
'TypeName   : System.Collections.ArrayList
'Name       : IndexOf
'MemberType : Method
'Definition : int IndexOf(System.Object value),
'             int IndexOf(System.Object value, int startIndex),
'             int IndexOf(System.Object value, int startIndex, int count),
'             int IList.IndexOf(System.Object value)
 
'TypeName   : System.Collections.ArrayList
'Name       : Insert
'MemberType : Method
'Definition : void Insert(int index, System.Object value),
'             void IList.Insert(int index, System.Object value)
 
'TypeName   : System.Collections.ArrayList
'Name       : InsertRange
'MemberType : Method
'Definition : void InsertRange(int index, System.Collections.ICollection c)
 
'TypeName   : System.Collections.ArrayList
'Name       : LastIndexOf
'MemberType : Method
'Definition : int LastIndexOf(System.Object value),
'             int LastIndexOf(System.Object value, int startIndex),
'             int LastIndexOf(System.Object value, int startIndex, int count)
 
'TypeName   : System.Collections.ArrayList
'Name       : Remove
'MemberType : Method
'Definition : void Remove(System.Object obj),
'             void IList.Remove(System.Object value)
 
'TypeName   : System.Collections.ArrayList
'Name       : RemoveAt
'MemberType : Method
'Definition : void RemoveAt(int index),
'             void IList.RemoveAt(int index)
 
'TypeName   : System.Collections.ArrayList
'Name       : RemoveRange
'MemberType : Method
'Definition : void RemoveRange(int index, int count)
 
'TypeName   : System.Collections.ArrayList
'Name       : Reverse
'MemberType : Method
'Definition : void Reverse(),
'             void Reverse(int index, int count)
 
'TypeName   : System.Collections.ArrayList
'Name       : SetRange
'MemberType : Method
'Definition : void SetRange(int index, System.Collections.ICollection c)
 
'TypeName   : System.Collections.ArrayList
'Name       : Sort
'MemberType : Method
'Definition : void Sort(),
'             void Sort(System.Collections.IComparer comparer),
'             void Sort(int index, int count, System.Collections.IComparer comparer)
 
'TypeName   : System.Collections.ArrayList
'Name       : ToArray
'MemberType : Method
'Definition : System.Object[] ToArray(),
'             array ToArray(type type)
 
'TypeName   : System.Collections.ArrayList
'Name       : ToString
'MemberType : Method
'Definition : string ToString()
 
'TypeName   : System.Collections.ArrayList
'Name       : TrimToSize
'MemberType : Method
'Definition : void TrimToSize()
 
'TypeName   : System.Collections.ArrayList
'Name       : Item
'MemberType : ParameterizedProperty
'Definition : System.Object Item(int index) {get;set;}
 
'TypeName   : System.Collections.ArrayList
'Name       : Capacity
'MemberType : Property
'Definition : int Capacity {get;set;}
 
'TypeName   : System.Collections.ArrayList
'Name       : Count
'MemberType : Property
'Definition : int Count {get;}
 
'TypeName   : System.Collections.ArrayList
'Name       : IsFixedSize
'MemberType : Property
'Definition : bool IsFixedSize {get;}
 
'TypeName   : System.Collections.ArrayList
'Name       : IsReadOnly
'MemberType : Property
'Definition : bool IsReadOnly {get;}
 
'TypeName   : System.Collections.ArrayList
'Name       : IsSynchronized
'MemberType : Property
'Definition : bool IsSynchronized {get;}
 
'TypeName   : System.Collections.ArrayList
'Name       : SyncRoot
'MemberType : Property
'Definition : System.Object SyncRoot {get;}
 
dim ArrayList, entry
 
set ArrayList = Server.createObject("System.Collections.ArrayList")
 
ArrayList.add "Fabio"
ArrayList.add "Zendhi"
ArrayList.add "Nagao"
 
Response.write( ArrayList.count & vbNewline )
 
for each entry in ArrayList
    Response.write( entry & vbNewline )
next
 
set ArrayList = nothing
 
%></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>