CultureInfoBinder Class
A model binder for binding culture information from model data.
public class CultureInfoBinder : Abblix.Oidc.Server.Mvc.Binders.ModelBinderBase, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProviderInheritance System.Object → ModelBinderBase → CultureInfoBinder
Implements Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider
Remarks
This binder is capable of handling culture-specific data by converting string values into System.Globalization.CultureInfo objects. It supports binding single System.Globalization.CultureInfo objects, arrays, and lists of System.Globalization.CultureInfo.
Methods
CultureInfoBinder.GetBinder(ModelBinderProviderContext) Method
Gets the model binder based on the provided context.
public Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder? GetBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext context);Parameters
context Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext
The context for the model binding.
Implements GetBinder(ModelBinderProviderContext)
Returns
Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
The model binder for System.Globalization.CultureInfo, or null if the model type is not supported.