Topics Search

How to Check if the ArrayList is read-only in C# ?

How to Check if the ArrayList is read-only in C# ?
Views: 1
There are times when you would use the read-only wrapper in order to prevent modifying the ArrayList. We use the ArrayList.ReadOnly method to create such collection. When doing so , you might want to check if the ArrayList is Read-only or not.
Sponsored Links:

Similar posts...

 

How to Add range of elements to ArrayList in C# ?

How to Add range of elements to ArrayList in C# ? Icon
You can use the AddRange method of the ArrayList object to add the range of elements (string array) to ArrayList in C#. How to Add range of elements to ArrayList in C# ? Here’s the code that demonstrates how to do it.
 

How to Get the number of elements in ArrayList in C# ?

How to Get the number of elements in ArrayList in C# ? Icon
Here’s the code that demonstrates how one can get the total number of elements contained in the ArrayList using C# using the Count property of the ArrayList.
 

How to read text file in C++

How to read text file in C++ Icon
This C++ code demonstrating how to read text file and print its contents to the console line by line.
 

Read Excel File In Windows Application Using C#

Read Excel File In Windows Application Using C# Icon
In this article we will learn how to read an Excel file in Windows Application using C#. This is my first article. In this article we will learn how to read an excel file. We will make a windows application using C#. Open Visual Studio. Select New Project, then Windows Form Application...
 

Read Excel using NPOI

Read Excel using NPOI Icon
The C# code snippet demonstrates how to use the open-source NPOI library to read cell values in Microsoft Excel files. Excel cell can contain values of different types. Also, values may be evaluated from formulae. We need to cater these cases when reading the cell values.
 

Logical Comparisons

Logical Comparisons Icon
A program is a series of instructions that ask the computer to check some situations and to act accordingly. To check such situations, the computer spends a great deal of its time performing comparisons between values. A comparison is a Boolean operation that produces a true or a false result, depending on the values on which the comparison is performed. A comparison is performed between two values of the same type; for example, you can compare two numbers, two characters, or the names of two cities.
 

Security Update for Active Template Library Developers

Security Update for Active Template Library Developers Icon
Read about how to address the recently announced ATL security issue.
 

What is Parallelism?

What is Parallelism? Icon
Im constantly amazed how many seemingly well educated computer technologists bandy about the word parallelism without really knowing what theyre talking about. I cant tell you how many articles and books Ive read on parallel computing that use the term over and over without ever defining it....
 

Matrixes and 2D Arrays

Matrixes and 2D Arrays Icon
Lesson is about matrixes and two-dimensional C++ arrays. Although this one may look significantly more complicated, if you read through it carefully, you will conquer programming matrixes with no proble.
 

Functions in C

Functions in C Icon
functions are essential part of code in C and C++ language, so be sure to carefully read this lesson. You'll notice theres nothing to be afraid of they are really easy to understand, and sometimes, can lighten up our program code significantly. In a way, they remind us of our main program.