private SnapInRegistrationInfo[] ReflectSnapIn()
{
ArrayList list = new ArrayList();
foreach (Type type in Assembly.GetAssembly(base.GetType()).GetTypes())
{
if ((type.GetCustomAttributes(typeof(SnapInSettingsAttribute), false).Length > 0) && (SnapInRegistration.LoadFromType(type) != null))
{
list.Add(SnapInRegistration.LoadFromType(type));
}
}
return (SnapInRegistrationInfo[]) list.ToArray(typeof(SnapInRegistrationInfo));
}