How to replace elements in an array of type T?

I have an Array2D<T> class that can take integer, reference types, etc. They are stored in this:
 private T[] m_array = new T[width * height];


I have a method here that should replace elements.

  void Replace(T from, T to) 
  {
  }

I can't find any existing replace method. Any suggestions?
Was this page helpful?