C# Beginner to advanced - Lesson 53 - Collections - Part 1 - ArrayList

مجله خبری، آموزشی پرشین تک
منتشر شده در 11 خرداد 1397

Collections

C# includes specialized classes that hold many values or objects in a specific series, that are called 'collection‘

There are two types of collections available in C#:

Non-generic collection.

Generic collection.

Every collection class implements the IEnumerable interface so values from the collection can be accessed using a foreach loop.


ArrayList

ArrayList is a non-generic type of collection in C#.

It can contain elements of any data types. It is similar to an array, except that it grows automatically as you add items in it.

Unlike an array, you don't need to specify the size of ArrayList.

Initialize ArrayList : ArrayList myArrayList= new ArrayList();


ankpro

ankpro training

Asp.net MVC

C#

C sharp

Bangalore

Rajajinagar

Selenium

Coded UI

Mobile automation testing

Mobile testing

JQuery

JavaScript

.Net

Components of the .Net framework

Hello World

Literal

Keywords

Variable

Data types

Operators

Branching

Loops

Arrays

ArrayList

Strings

String Builder

Structures

Enums

Functions

Classes

Inheritance

Polymorphism

Properties

Indexers

Events

Nested Classes

Delegates

Anonymous methods

Labda expressions

Abstract classes

Exception Handling

Linq

Interfaces

Extension methods

Anonymous types

Generics

Collections

Garbage Collection

Reflection

Attributes

Input and output statements

Type casting

Partial Methods

Partial Classes

Boxing and Unboxing

Var vs Dynamic vs Object

دیدگاه کاربران