How Bind determines prompt types
masterSharprompt maps C# property types and specific Data Annotations to specialized prompt types. This allows you to control the user interface (e.g., showing a password mask or a selection list) directly from your data model.
| Property Type / Attribute | Resulting Prompt Type |
|---|---|
string | Input |
string with [DataType(DataType.Password)] | Password |
bool? | Confirm |
string with [InlineItems(...)] | Select |
| Enum type | Select |