Releases all resources used by the current instance of the CharEnumerator class.
Call CharEnumerator.Dispose when you are finished using the CharEnumerator. The CharEnumerator.Dispose method leaves the CharEnumerator in an unusable state. After calling CharEnumerator.Dispose, you must release all references to the CharEnumerator so the garbage collector can reclaim the memory that the CharEnumerator was occupying.
For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.
Always call CharEnumerator.Dispose before you release your last reference to the CharEnumerator. Otherwise, the resources it is using will not be freed until the garbage collector calls the CharEnumerator object's Finalize method.