Closed
Description
Description
There's two different behavior when using Convert.FromBase64String() and Convert.TryFromBase64String()
Reproduction Steps
bool isValid = Base64.IsValid("EOCEGnkuGnWbveAi4iYqwzFVwe+nd6bSQv1TzL+IW0u/dg=="); // true
byte[] bytes = Convert.FromBase64String("EOCEGnkuGnWbveAi4iYqwzFVwe+nd6bSQv1TzL+IW0u/dg==") // returns byte[]
bool isValid = Convert.TryFromBase64String("EOCEGnkuGnWbveAi4iYqwzFVwe+nd6bSQv1TzL+IW0u/dg==", [], out _) // false
Why ?
Expected behavior
Consitent output. Is it valid or not ?
Actual behavior
Inconsistent output
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response