Quantcast
Channel: How to find the indexOf element in ArrayList in PowerShell - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by dugas for How to find the indexOf element in ArrayList in PowerShell

You are casting the ArrayList to an array, just remove the cast: $eventList = New-Object System.Collections.ArrayListAlso, you might want to consider using a List<string> instead of an ArrayList:...

View Article



How to find the indexOf element in ArrayList in PowerShell

I am trying to find the index of an element from an arraylist using powershell script,however getting the below given errorMethod invocation failed because [System.String[]] doesn't contain a method...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images