Link Details

Link 1030325 thumbnail
User 551991 avatar

By macosxnerd101
Published: Sep 11 2013 / 05:11

Collection classes mostly appear in the System.Collections namespace, although some are based on Dictionary structures within the System.Collections.Specialized namespace. Comparing arrays to collections: have to use an integer index to access elements are of a fixed size * store value types, although the values may point to reference types (an array of objects) accept, hold and return elements as object types (but see Generics later in these notes) * This is not entirely the case since Microsoft introduced the Array.Resize method (for a one-dimensional, 0-indexed, array) from .NET 3.5 (but supported earlier). Resize has a performance cost so using a Collection is preferable.
  • 9
  • 0
  • 335
  • 412

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (8)

Voters Against This Link (0)

    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java