In the attached "regex test.seq" i'm trying to copy a match collection to an array, to be able to "for each" over all mathes.
Use Existing Object(System.Text.RegularExpressions.MatchCollection).CopyTo(System.Array, Int32)
What am I doing wrong ?
An exception occurred inside the call to .NET member 'CopyTo':
System.ArgumentNullException: Value cannot be null.
Parameter name: dest
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Collections.ArrayList.CopyTo(Array array, Int32 arrayIndex)
at System.Text.RegularExpressions.MatchCollection.CopyTo(Array array, Int32 arrayIndex)