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