-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Polyfill span.Contains(T) #123656
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
base: main
Are you sure you want to change the base?
Polyfill span.Contains(T) #123656
Conversation
|
Tagging subscribers to this area: @dotnet/area-meta |
src/libraries/System.CodeDom/src/Microsoft/CSharp/CSharpCodeGenerator.cs
Show resolved
Hide resolved
| _minLength = minLength; | ||
| _maxLength = maxLength; | ||
| _invalidChars = invalidCharacters; | ||
| _invalidChars = SearchValues.Create(invalidCharacters ?? string.Empty); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How frequently are these StringValidators created?
...raries/System.Configuration.ConfigurationManager/src/System/Configuration/StringValidator.cs
Show resolved
Hide resolved
...libraries/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteValues.Comment.cs
Outdated
Show resolved
Hide resolved
| JsonWriterHelper.ValidateValue(utf8Value); | ||
|
|
||
| if (utf8Value.IndexOf(SingleLineCommentDelimiterUtf8) != -1) | ||
| if (utf8Value.IndexOf(SingleLineCommentDelimiterUtf8) >= 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not Contains?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we don't have a Contains<T>(this ROS<T> span, ROS<T> value) helper yet, except for chars with the comparison type
No description provided.