You cannot delete items from an array. What you can do is create another array that contains the items from a except the items in b and assign it to variable a like this:
Sign up to request clarification or add additional context in comments.
Comments
0
You can copy b into a list, and then delete elements from it.
List<int> bList = new List<int>();
bList.AddRange(b);
foreach (int check in a)
{
if (bList.Contains(check))
{
bList.Remove(check);
}
}
b = bList.ToArray();