private void BuildDLLFileList(String directory, ArrayList list)
{
try
{
if ( Directory.Exists(directory) )
{
String[] e = Directory.GetFiles(directory, "*.dll");
for(int i=0; i < e.Length; i++)
{
list.Add(e[i]);
}
}
else
{
myVerboseWriter.WriteLine("Directory [{0}] does not exist!", directory);
}
}
catch(Exception Ex)
{
//
// Trap Exception: System.InvalidOperationException This occurs when the file is an unmanaged dll
//
if (Ex.GetType() == typeof(System.InvalidOperationException))
{
}
}
}