public void CopyTo(Array array, int offset)
{
m_HttpListener.CheckDisposed();
if (Count > array.Length)
{
throw new ArgumentOutOfRangeException("array", SR.GetString(SR.net_array_too_small));
}
if (offset + Count > array.Length)
{
throw new ArgumentOutOfRangeException("offset");
}
int index = 0;
foreach (string uriPrefix in m_HttpListener.m_UriPrefixes.Keys)
{
array.SetValue(uriPrefix, offset + index++);
}
}