C# C# Console Application

ArrayList IsFixedSize property in C#1 min read

.Net framework ArrayList IsFixedSize property allow us to get a value indicating whether the ArrayList has a fixed size. the arraylist IsFixedSize property exists in System.Collections namespace. this property has no optional or required parameter.

arraylist IsFixedSize property return value type is System.Boolean. this property boolean value return ‘true’, if the arraylist has a fixed size; otherwise it returns ‘false’. this property default value is ‘false’. the arraylist IsFixedSize property implements as IList.IsFixedSize.




a fixed size arraylist does not allow the addition or removal of elements after the arraylist (collection) is created. but fixed size arraylist allow the modification (update) of existing elements.

the following console c# example code demonstrate us how can we determine whether an arraylist has a fixed size programmatically at run time in an console application.

C# Code:

 

Output:

 

Leave a Comment