/ Published in: C#

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
System.Reflection.Assembly assy = System.Reflection.Assembly.LoadFile(fileName); Type[] publicTypes = assy.GetExportedTypes(); foreach (Type t in publicTypes) { if (t.BaseType.Name == "Installer") { MessageBox.Show(t.Name); Installer o = (Installer)t.Assembly.CreateInstance(t.FullName); foreach (Installer i in o.Installers) { if (i.GetType().Name == "PerformanceCounterInstaller") { MessageBox.Show("Performance Counter Installer Found in Assembly " + fileName); } } } }
Comments
