According to the example code in the article at CodeProject, you should initialize the library like this:
var stringProvider =
new ResourceStringProvider(Resources.LocalizedStrings.ResourceManager);
ModelMetadataProviders.Current = new LocalizedModelMetadataProvider(stringProvider);
ModelValidatorProviders.Providers.Clear();
ModelValidatorProviders.Providers.Add(
new LocalizedModelValidatorProvider(stringProvider));
However, using the latest version of the library, I get a compiler error on the last line, because the class LocalizedModelValidatorProvider has only a parameterless constructor.
According to the example code in the article at CodeProject, you should initialize the library like this:
However, using the latest version of the library, I get a compiler error on the last line, because the class LocalizedModelValidatorProvider has only a parameterless constructor.
Is the sample code out of date?