You are developing an ASP.NET Core MVC web application.
The application includes a C# type named InsuranceID that represents an insurance policy identifier for a customer. Each instance of InsuranceID is five alphanumeric characters followed by a dash and then four numbers (for example, ab12x2323).
You need to ensure that Controller actions can accept values of type InsuranceID.
What are two possible ways to achieve this goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Select an option, then click Submit answer.
-
○
Implement the IBinderTypeProviderMetadata interface.
-
○
Implement the IModeIBinder interface.
-
○
Use a TypeConverter object.
-
○
Implement the IBindingSourceMetadata interface.
-
○
Implement the ITypeComp interface.
