https://msdn.microsoft.com/ko-kr/library/system.collections.arraylist(v=vs.110).aspx?f=255&MSPPError=-2147217396&cs-save-lang=1&cs-lang=cpp#code-snippet-1
using namespace System; using namespace System::Collections; void PrintValues( IEnumerable^ myList ); int main() { // Creates and initializes a new ArrayList. ArrayList^ myAL = gcnew ArrayList; myAL->Add( "Hello" ); myAL->Add( "World" ); myAL->Add( "!" ); // Displays the properties and values of the ArrayList. Console::WriteLine( "myAL" ); Console::WriteLine( " Count: {0}", myAL->Count ); Console::WriteLine( " Capacity: {0}", myAL->Capacity ); Console::Write( " Values:" ); PrintValues( myAL ); } void PrintValues( IEnumerable^ myList ) { IEnumerator^ myEnum = myList->GetEnumerator(); while ( myEnum->MoveNext() ) { Object^ obj = safe_cast<Object^>(myEnum->Current); Console::Write( " {0}", obj ); } Console::WriteLine(); } /* This code produces output similar to the following: myAL Count: 3 Capacity: 4 Values: Hello World ! */
이름 | 설명 | |
---|---|---|
ArrayList() | ||
ArrayList(ICollection^) | ||
ArrayList(Int32) |
이름 | 설명 | |
---|---|---|
Capacity | ||
Count | ||
IsFixedSize | ||
IsReadOnly | ||
IsSynchronized | ||
Item[Int32] | ||
SyncRoot |
이름 | 설명 | |
---|---|---|
Adapter(IList^) | ||
Add(Object^) | ||
AddRange(ICollection^) | ||
BinarySearch(Int32, Int32, Object^, IComparer^) | ||
BinarySearch(Object^) | ||
BinarySearch(Object^, IComparer^) | ||
Clear() | ||
Clone() | ||
Contains(Object^) | ||
CopyTo(Array^) | ||
CopyTo(Array^, Int32) | ||
CopyTo(Int32, Array^, Int32, Int32) | ||
Equals(Object^) | ||
Finalize() | ||
FixedSize(ArrayList^) | ||
FixedSize(IList^) | ||
GetEnumerator() | ||
GetEnumerator(Int32, Int32) | ||
GetHashCode() | ||
GetRange(Int32, Int32) | ||
GetType() | ||
IndexOf(Object^) | ||
IndexOf(Object^, Int32) | ||
IndexOf(Object^, Int32, Int32) | ||
Insert(Int32, Object^) | ||
InsertRange(Int32, ICollection^) | ||
LastIndexOf(Object^) | ||
LastIndexOf(Object^, Int32) | ||
LastIndexOf(Object^, Int32, Int32) | ||
MemberwiseClone() | ||
ReadOnly(ArrayList^) | ||
ReadOnly(IList^) | ||
Remove(Object^) | ||
RemoveAt(Int32) | ||
RemoveRange(Int32, Int32) | ||
Repeat(Object^, Int32) | ||
Reverse() | ||
Reverse(Int32, Int32) | ||
SetRange(Int32, ICollection^) | ||
Sort() | ||
Sort(IComparer^) | ||
Sort(Int32, Int32, IComparer^) | ||
Synchronized(ArrayList^) | ||
Synchronized(IList^) | ||
ToArray() | ||
ToArray(Type^) | ||
ToString() | ||
TrimToSize() |
Designed by sketchbooks.co.kr / sketchbook5 board skin
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5