Exemple #1
0
            public IEnumerator <PluginInfo> GetEnumerator()
            {
                int count = PluginAPI.CountPlugins();

                for (int index = 0; index < count; index++)
                {
                    yield return(new PluginInfo(PluginAPI.GetNthPlugin(index)));
                }
            }
Exemple #2
0
            public PluginInfo this[int index]
            {
                get
                {
                    if (index < 0 || index >= Count)
                    {
                        throw new ArgumentOutOfRangeException(nameof(index));
                    }

                    return(new PluginInfo(PluginAPI.GetNthPlugin(index)));
                }
            }