This article describes the method of C# to find the location of an object in ArrayList. Share it for your reference. The specific analysis is as follows:
We can use the IndexOf method to find the position of the object in ArrayList
ArrayList alcollect = new ArrayList(); // Add individual items to the collection string str = "learn csharp"; (str); //find position of object ((str));
I hope this article will be helpful to everyone's C# programming.