-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider adding TryParse() methods to every AsX method in FieldValue and DocumentField #15945
Comments
We need to understand which scenarios are causing the throwing and if the if ( xx is type chu) is enough or not |
Moving to backlog while working on the design. According to when it is ready and approved will add to an active milestone |
After discussing this matter with architects, we won't implement We decided to add an
|
Feedback from our customers where when trying our
AsX
whereX
is a type methods in FieldValue and DocumentField we throw exception when theType
doesn't match.It will be more convenient to have a
TryParse
method that the user can call that will return a bool value.See https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/exceptions-and-performance#try-parse-pattern
The text was updated successfully, but these errors were encountered: