-
Notifications
You must be signed in to change notification settings - Fork 761
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
Should default(StringSegment) != default(StringSegment)? #111
Milestone
Comments
Seems like an oversight. cc @javiercn |
Eilon
added
the
help wanted
Up for grabs. We would accept a PR to help resolve this issue
label
May 12, 2016
Yup this just seems like a bug. |
Yep, @rynowak is there any perf reason to not do string.Compare directly? I've done a quick test of the API on the interactive window in VS and it works fine for null values. (We will want a theory test here, though) |
@jbagga please enjoy this bug 😄 |
cc @pranavkm for FYI information. |
jbagga
added
2 - Working
and removed
1 - Ready
help wanted
Up for grabs. We would accept a PR to help resolve this issue
labels
Sep 29, 2016
natemcmaster
pushed a commit
to natemcmaster/Extensions
that referenced
this issue
Dec 4, 2018
ghost
locked as resolved and limited conversation to collaborators
Dec 2, 2019
ghost
unassigned jbagga
Dec 2, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've noticed that
default(StringSegment) == default(StringSegment)
evaluates tofalse
, which seems to be done for a reason in the source code, but I'm not sure what that reason is. I was just wondering if someone could fill me in, I'm just curious.The text was updated successfully, but these errors were encountered: