Support for Direct Input of Any Data Type Without Conversion in C# #9096
Unanswered
arshiacerd
asked this question in
Language Ideas
Replies: 3 comments
-
What would this look like? Could you give an example? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think it's about dotnet/runtime#64621. |
Beta Was this translation helpful? Give feedback.
0 replies
-
How would |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, input in C# is always taken as a string and must be converted to the desired data type manually using parsing or conversion methods (e.g., int.Parse, Convert.ToInt32). This adds extra steps for developers and can lead to runtime errors if the input format is incorrect.
Proposal: Introduce a feature in C# that allows direct input of any data type without requiring manual conversion.
Beta Was this translation helpful? Give feedback.
All reactions