ArrayList Properties

In this chapter you will learn:

  1. IsFixedSize and IsReadOnly properties

IsFixedSize and IsReadOnly properties

using System;//from  j a va2  s  .c om
using System.Collections;

class MainClass
{
  public static void Main()
  {
    ArrayList myArrayList = new ArrayList();
    
    Console.WriteLine("myArrayList.IsFixedSize = " + myArrayList.IsFixedSize);
    Console.WriteLine("myArrayList.IsReadOnly = " + myArrayList.IsReadOnly);

  }
}

The code above generates the following result.

Next chapter...

What you will learn in the next chapter:

  1. How to set range on an ArrayList
  2. Get Range method from ArrayList