tools/Stampfer/PeterSource1_1/Classes/cPluginCollection.cs
/// <summary>
/// Gets the index of a specified IPeterPlugin...
/// </summary>
/// <param name="page">IPeterPlugin to get index for...</param>
/// <returns>Index of IPeterPlugin</returns>
Gets the index of a specified IPeterPlugin
Gets the index of a specified IPeterPlugin
public int IndexOf(IPeterPlugin plugin)
        {
            for (int a = 0; a < this.Count; a++)
            {
                if (this[a] == plugin)
                {
                    return a;
                }
            }
            return -1;
        }
public int IndexOf ( IPeterPlugin plugin ) { for ( int a = 0 ; a < this . Count ; a ++ ) { if ( this [ a ] == plugin ) { return a ; } } return - 1 ; }
Gets the index of a specified IPeterPlugin...
Gets the index of a specified IPeterPlugin ...
// Look for the IPeterPlugin... // Found it... // Not found...
Index of IPeterPlugin
Index of IPeterPlugin
plugin
IPeterPlugin
page
IPeterPlugin to get index for
IPeterPlugin to get index for