using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Utilities
{
public static class ArrayHelper
{
public static T[] Remove(T[] array, T elementToRemove)
{
List ReturnValues = new List();
foreach (T t in array)
{
if (!Object.ReferenceEquals(t, elementToRemove))
ReturnValues.Add(t);
}
return ReturnValues.ToArray();
}
}
}