C# – ArrayList

ArrayList

  • Implements the IList interface using an array whose size is dynamically increased as required.
  • for ArrayList, when adding elements, the type of element doesn’t matter(but, we should know the type)
  • in the receiving function, typeCast is necessary

스크린샷 2018-05-07 오후 10.14.34.png

스크린샷 2018-05-08 오후 9.07.01

스크린샷 2018-05-08 오후 9.07.09
ArrayList | CopyTo method

 

result
Resuly
castException
ArrayList CastException
code normal
ArrayList Cast Exception solved

Leave a comment