Microsoft.ManagementConsole.SnapInInstaller.ReflectSnapIn C# (CSharp) Method

ReflectSnapIn() private method

private ReflectSnapIn ( ) : Microsoft.ManagementConsole.Internal.SnapInRegistrationInfo[]
return Microsoft.ManagementConsole.Internal.SnapInRegistrationInfo[]
        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));
        }