Skip to content

L’atelier d’Hyobin

#game #programming # device

  • Game
    • Journal
    • Review(Games)
  • Programming
    • Introduction to C# Programming and Unity
    • More C# Programming and Unity
    • Intermediate Object-Oriented Programming for Unity Games
    • C# ADD-ON
    • Unity Tutorial
      • Scripting
      • Pysics
        • 3D Physics
      • Project
        • Roll a Ball
        • Space Shooter
        • Space Shooter 2D
        • RPG Tutorial
  • Device
    • Review(Devices)

ArrayList

C# – ArrayList

Posted on May 9, 2018May 9, 2018 by 김효빈

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
Posted in C# ADD-ON, Game, ProgrammingTagged ArrayListLeave a comment
Website Built with WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • L’atelier d’Hyobin
    • Already have a WordPress.com account? Log in now.
    • L’atelier d’Hyobin
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    Design a site like this with WordPress.com
    Get started