Accord.Tests.Statistics.UnivariateDistributionTest.GetNames C# (CSharp) Method

GetNames() private static method

private static GetNames ( Assembly assembly, Type baseType, int &count ) : string
assembly System.Reflection.Assembly
baseType System.Type
count int
return string
        private static string GetNames(Assembly assembly, Type baseType, out int count)
        {
            var distributions = assembly.GetTypes().Where(p =>
                baseType.IsAssignableFrom(p) && !p.IsAbstract && !p.IsInterface);

            var list = new List<String>();
            foreach (Type type in distributions)
                list.Add(type.Name.Replace("Distribution", ""));

            count = list.Count;

            return String.Join(", ", list.ToArray());
        }