[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/wwchy/pythonnet/master/src/runtime/PythonBaseTypeProviderGroup.cs [Back]  [Original]

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;
        }
    }
}

Web Proxy Viewer  |  New URL  |  Original Page