• https://doi.org/10.1017/cbo9780511804793.003Copy DOI Icon

Arrays and ArrayLists

  • Mar 26, 2007
  • Michael Mcmillan
Show More
  • Abstract
  • Literature Map
  • Similar Papers
Abstract

The array is the most common data structure, present in nearly all programming languages. Using an array in C# involves creating an array object of System.Array type, the abstract base type for all arrays. The Array class provides a set of methods for performing tasks such as sorting and searching that programmers had to build by hand in the past. An interesting alternative to using arrays in C# is the ArrayList class. An arraylist is an array that grows dynamically as more space is needed. For situations where you can't accurately determine the ultimate size of an array, or where the size of the array will change quite a bit over the lifetime of a program, an arraylist may be a better choice than an array. In this chapter, we'll quickly touch on the basics of using arrays in C#, then move on to more advanced topics, including copying, cloning, testing for equality and using the static methods of the Array and ArrayList classes. ARRAY BASICS Arrays are indexed collections of data. The data can be of either a built-in type or a user-defined type. In fact, it is probably the simplest just to say that array data are objects. Arrays in C# are actually objects themselves because they derive from the System.Array class. Since an array is a declared instance of the System.Array class, you have the use of all the methods and properties of this class when using arrays.

Similar Papers
  • Research Article
  • Citations3

Hardware/Software Co-Assurance for the Rust Programming Language Applied to Zero Trust Architecture Development

  • Apr 05, 2023
  • ACM SIGAda Ada Letters
  • David Hardin
  • Research Article
  • Citations5

A hybrid method in combining treatment effects from matched and unmatched studies

  • Jul 09, 2013
  • Statistics in Medicine
  • Jinyoung Byun +5
  • Conference Article
  • Citations30

The future(s) of shared data structures

  • Jul 15, 2014
  • Alex Kogan +1
  • Conference Article
  • Citations53

Bounding space usage of conservative garbage collectors

  • Jan 01, 2002
  • Hans-J Boehm
  • PDF
  • Abstract

Towards a Scottish Safe Haven Federation.

  • Aug 25, 2022
  • International Journal of Population Data Science
  • Chuang Gao +5
  • Conference Article

The Capturing of POE Data in Semantic Building Models

  • Sep 08, 2003
  • Debajyoti Pati +1
  • Research Article
  • Citations12

Bounding space usage of conservative garbage collectors

  • Jan 01, 2002
  • ACM SIGPLAN Notices
  • Hans-J Boehm
  • Book Chapter
  • Citations45

Safely Composable Type-Specific Languages

  • Jan 01, 2014
  • Cyrus Omar +5
  • Research Article
  • Citations2

Fine-Grained Parallel and Distributed Spatial Stochastic Simulation of Biological Reactions

  • Sep 01, 2011
  • Advanced Materials Research
  • Fei Xing +3
  • Research Article
  • Citations7

Communication platform concept for virtual testing of novel applications for railway traffic management systems

  • Jan 01, 2022
  • Transportation Research Procedia
  • Gabriele Cecchetti +5
  • Research Article
  • Citations26

Exploring repeated measures data sets for key features using Principal Components Analysis

  • May 28, 2002
  • International Journal of Research in Marketing
  • Eric T Bradlow
  • Research Article
  • Citations12

Pattern detection in bipartite networks: A review of terminology, applications, and methods

  • Oct 03, 2024
  • PLOS Complex Systems
  • Zachary P Neal +9
  • Research Article
  • Citations5

Improvements in Parallel Chimera Grid Assembly

  • Mar 01, 2002
  • AIAA Journal
  • Nathan C Prewitt +2
  • Book Chapter

Search in Trees

  • Jan 01, 2021
  • Donald Sannella +3
  • Conference Article
  • Citations7

Graphically notated fault modeling and safety analysis in the context of electric and electronic architecture development and functional safety

  • Oct 01, 2012
  • Nico Adler +4
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.