question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should default(StringSegment) != default(StringSegment)?

See original GitHub issue

I’ve noticed that default(StringSegment) == default(StringSegment) evaluates to false, 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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Eiloncommented, Sep 29, 2016

@jbagga please enjoy this bug 😄

0reactions
Eiloncommented, Sep 29, 2016

cc @pranavkm for FYI information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the purpose of the StringSegment class?
No, if they call value on every substring once they're still not benefiting from using it. The whole purpose of the class is...
Read more >
StringSegment Struct (Microsoft.Extensions.Primitives)
Gets a value that indicates whether this StringSegment contains a valid value. Item[Int32]. Gets the Char at a specified position in the current...
Read more >
StringSegment Structure - KGy SOFT
Represents a segment of a string. This type is similar to ReadOnlyMemory /ReadOnlySpan but can be used on all platforms in the same...
Read more >
Add StringSegment.Compare and have ...
<summary> /// Compares substrings of two specified <see cref="StringSegment"/> objects using the specified rules, /// and returns an integer ...
Read more >
IsParameterized and GetParameterDetails don't work with ...
StringExtensions.GetParameterDetails(string segment). The regex supports curly segments with a name, then an optional default prefixed by ?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found