X Tutup
using System; using System.Collections.Generic; using System.Linq; namespace Python.Runtime { class PythonBaseTypeProviderGroup : List, IPythonBaseTypeProvider { public IEnumerable GetBaseTypes(Type type, IList existingBases) { if (type is null) throw new ArgumentNullException(nameof(type)); if (existingBases is null) throw new ArgumentNullException(nameof(existingBases)); foreach (var provider in this) { existingBases = provider.GetBaseTypes(type, existingBases).ToList(); } return existingBases; } } }
X Tutup