In C#, I would like to create a function (method) that has the following behavior:
- When called, create and show a form.
- Wait for the user to enter or select a value on the form.
- Return the selected value.
Is there a concise, readable way to implement this function?