Should default(StringSegment) != default(StringSegment)?
See original GitHub issueI’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:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jbagga please enjoy this bug 😄
cc @pranavkm for FYI information.