src/GenFx/GeneticAlgorithm.cs
/// <summary>
/// Returns the list of <see cref="Metric"/> types that the <paramref name="metricType"/>
/// is dependent upon.
/// </summary>
/// <param name="metricType">A type of <see cref="Metric"/> to search dependencies for.</param>
/// <returns></returns>
Returns the list of  types that the
is dependent upon.
Returns the list of types that the is dependent upon .
private static List<Type> GetMetricTypeDependencies(Type metricType)
        {
            RequiredMetricAttribute[] attribs = (RequiredMetricAttribute[])metricType
                    .GetCustomAttributes(typeof(RequiredMetricAttribute), true);
            return attribs.Select(a => a.RequiredType).ToList();
        }
private static List < Type > GetMetricTypeDependencies ( Type metricType ) { RequiredMetricAttribute [ ] attribs = ( RequiredMetricAttribute [ ] ) metricType . GetCustomAttributes ( typeof ( RequiredMetricAttribute ) , true ) ; return attribs . Select ( a => a . RequiredType ) . ToList ( ) ; }
Returns the list of  types that the
is dependent upon.
Returns the list of types that the is dependent upon .
None
metricType
Type
A type of  to search dependencies for.
A type of to search dependencies for .