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