// ******************************************************************* // Public methods. // ******************************************************************* #region Public methods /// <summary> /// This method configures a <see cref="PluralizationApiBuilder"/> to use /// an english meta-data provider at runtime. /// </summary> /// <param name="builder">The builder to use for the operation.</param> /// <returns>An <see cref="IPluralizationSource"/> for configuration /// purposes.</returns> public static IPluralizationSource AddEnglishProvider( this PluralizationApiBuilder builder ) { // Create the source instance. var source = new EnglishMetaDataSource(); // Add the source to the builder. builder.AddSource(source); // Return the source instance for configuration purposes. return(source); }
// ******************************************************************* // Constructors. // ******************************************************************* #region Constructors /// <summary> /// This constructor creates a new instance of the <see cref="EnglishMetaDataProvider"/> /// class. /// </summary> /// <param name="source">The parent builder source.</param> public EnglishMetaDataProvider( EnglishMetaDataSource source ) : base(source) { }