SecureDelete.WipePlugin.PluginManager.GetPlugin C# (CSharp) Method

GetPlugin() public method

Get the plugins with the specified name
public GetPlugin ( string name ) : SecureDelete.WipePlugin.Plugin[]
name string The name of the plugins.
return SecureDelete.WipePlugin.Plugin[]
        public Plugin[] GetPlugin(string name)
        {
            Debug.AssertNotNull(name, "Name is null");
            List<Plugin> p = new List<Plugin>();

            for(int i = 0; i < plugins.Count; i++) {
                if(plugins[i].Name != null && plugins[i].Name == name) {
                    p.Add(plugins[i]);
                }
            }

            return p.ToArray();
        }