/// <summary> /// Gets all the validators registered for the configuration object type specified. /// </summary> /// <typeparam name="TConfigurationObject"> /// The type of the configuration object. /// </typeparam> /// <returns> /// Returns an enumerable of all the validators for the configuration object type given. /// </returns> private static IEnumerable<IConfigurationObjectValidator<TConfigurationObject>> GetValidatorsEx<TConfigurationObject>() where TConfigurationObject : IConfigurationObject { return _validators.OfType<IConfigurationObjectValidator<TConfigurationObject>>(); }