-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[Group 1] Enable nullable annotations for Microsoft.Extensions.Primitives
#57395
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
Changes from 1 commit
ed1960e
410613c
31b9391
27f43fb
4be835a
e005156
ec7558c
f81d799
d7230db
ef4c639
d0b0489
6b1fed8
d6010db
376a112
ee39879
9a98d03
4dc5fa7
49ad673
f648dc4
1748ecc
80079fd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,14 +4,16 @@ | |
| // Changes to this file must follow the https://aka.ms/api-review process. | ||
| // ------------------------------------------------------------------------------ | ||
|
|
||
| using System.Diagnostics.CodeAnalysis; | ||
|
|
||
| namespace Microsoft.Extensions.Primitives | ||
| { | ||
| public partial class CancellationChangeToken : Microsoft.Extensions.Primitives.IChangeToken | ||
| { | ||
| public CancellationChangeToken(System.Threading.CancellationToken cancellationToken) { } | ||
| public bool ActiveChangeCallbacks { get { throw null; } } | ||
| public bool HasChanged { get { throw null; } } | ||
| public System.IDisposable RegisterChangeCallback(System.Action<object> callback, object state) { throw null; } | ||
| public System.IDisposable RegisterChangeCallback(System.Action<object?> callback, object? state) { throw null; } | ||
| } | ||
| public static partial class ChangeToken | ||
| { | ||
|
|
@@ -24,7 +26,7 @@ public CompositeChangeToken(System.Collections.Generic.IReadOnlyList<Microsoft.E | |
| public bool ActiveChangeCallbacks { get { throw null; } } | ||
| public System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Primitives.IChangeToken> ChangeTokens { get { throw null; } } | ||
| public bool HasChanged { get { throw null; } } | ||
| public System.IDisposable RegisterChangeCallback(System.Action<object> callback, object state) { throw null; } | ||
| public System.IDisposable RegisterChangeCallback(System.Action<object?> callback, object? state) { throw null; } | ||
| } | ||
| public static partial class Extensions | ||
| { | ||
|
|
@@ -34,7 +36,7 @@ public partial interface IChangeToken | |
| { | ||
| bool ActiveChangeCallbacks { get; } | ||
| bool HasChanged { get; } | ||
| System.IDisposable RegisterChangeCallback(System.Action<object> callback, object state); | ||
| System.IDisposable RegisterChangeCallback(System.Action<object?> callback, object? state); | ||
| } | ||
| public readonly partial struct StringSegment : System.IEquatable<Microsoft.Extensions.Primitives.StringSegment>, System.IEquatable<string> | ||
| { | ||
|
|
@@ -44,11 +46,12 @@ public partial interface IChangeToken | |
| public StringSegment(string buffer) { throw null; } | ||
| public StringSegment(string buffer, int offset, int length) { throw null; } | ||
| public string Buffer { get { throw null; } } | ||
| [MemberNotNullWhen(true, nameof(Buffer))] | ||
| public bool HasValue { get { throw null; } } | ||
| public char this[int index] { get { throw null; } } | ||
| public int Length { get { throw null; } } | ||
| public int Offset { get { throw null; } } | ||
| public string Value { get { throw null; } } | ||
| public string? Value { get { throw null; } } | ||
| public System.ReadOnlyMemory<char> AsMemory() { throw null; } | ||
| public System.ReadOnlySpan<char> AsSpan() { throw null; } | ||
| public System.ReadOnlySpan<char> AsSpan(int start) { throw null; } | ||
|
|
@@ -58,8 +61,8 @@ public partial interface IChangeToken | |
| public bool Equals(Microsoft.Extensions.Primitives.StringSegment other) { throw null; } | ||
| public static bool Equals(Microsoft.Extensions.Primitives.StringSegment a, Microsoft.Extensions.Primitives.StringSegment b, System.StringComparison comparisonType) { throw null; } | ||
| public bool Equals(Microsoft.Extensions.Primitives.StringSegment other, System.StringComparison comparisonType) { throw null; } | ||
| public override bool Equals(object obj) { throw null; } | ||
| public bool Equals(string text) { throw null; } | ||
| public override bool Equals(object? obj) { throw null; } | ||
| public bool Equals(string? text) { throw null; } | ||
|
||
| public bool Equals(string text, System.StringComparison comparisonType) { throw null; } | ||
maxkoshevoi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| public override int GetHashCode() { throw null; } | ||
| public int IndexOf(char c) { throw null; } | ||
|
|
@@ -71,9 +74,9 @@ public partial interface IChangeToken | |
| public static bool IsNullOrEmpty(Microsoft.Extensions.Primitives.StringSegment value) { throw null; } | ||
| public int LastIndexOf(char value) { throw null; } | ||
| public static bool operator ==(Microsoft.Extensions.Primitives.StringSegment left, Microsoft.Extensions.Primitives.StringSegment right) { throw null; } | ||
| public static implicit operator System.ReadOnlyMemory<char> (Microsoft.Extensions.Primitives.StringSegment segment) { throw null; } | ||
| public static implicit operator System.ReadOnlySpan<char> (Microsoft.Extensions.Primitives.StringSegment segment) { throw null; } | ||
| public static implicit operator Microsoft.Extensions.Primitives.StringSegment (string value) { throw null; } | ||
| public static implicit operator System.ReadOnlyMemory<char>(Microsoft.Extensions.Primitives.StringSegment segment) { throw null; } | ||
| public static implicit operator System.ReadOnlySpan<char>(Microsoft.Extensions.Primitives.StringSegment segment) { throw null; } | ||
| public static implicit operator Microsoft.Extensions.Primitives.StringSegment(string value) { throw null; } | ||
| public static bool operator !=(Microsoft.Extensions.Primitives.StringSegment left, Microsoft.Extensions.Primitives.StringSegment right) { throw null; } | ||
| public Microsoft.Extensions.Primitives.StringTokenizer Split(char[] chars) { throw null; } | ||
| public bool StartsWith(string text, System.StringComparison comparisonType) { throw null; } | ||
|
|
@@ -116,49 +119,49 @@ public void Dispose() { } | |
| public void Reset() { } | ||
| } | ||
| } | ||
| public readonly partial struct StringValues : System.Collections.Generic.ICollection<string>, System.Collections.Generic.IEnumerable<string>, System.Collections.Generic.IList<string>, System.Collections.Generic.IReadOnlyCollection<string>, System.Collections.Generic.IReadOnlyList<string>, System.Collections.IEnumerable, System.IEquatable<Microsoft.Extensions.Primitives.StringValues>, System.IEquatable<string>, System.IEquatable<string[]> | ||
| public readonly partial struct StringValues : System.Collections.Generic.ICollection<string>, System.Collections.Generic.IEnumerable<string>, System.Collections.Generic.IList<string>, System.Collections.Generic.IReadOnlyCollection<string>, System.Collections.Generic.IReadOnlyList<string>, System.Collections.IEnumerable, System.IEquatable<Microsoft.Extensions.Primitives.StringValues>, System.IEquatable<string?>, System.IEquatable<string[]> | ||
maxkoshevoi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| private readonly object _dummy; | ||
| private readonly int _dummyPrimitive; | ||
| public static readonly Microsoft.Extensions.Primitives.StringValues Empty; | ||
| public StringValues(string value) { throw null; } | ||
| public StringValues(string? value) { throw null; } | ||
| public StringValues(string[] values) { throw null; } | ||
maxkoshevoi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| public int Count { get { throw null; } } | ||
| public string this[int index] { get { throw null; } } | ||
| bool System.Collections.Generic.ICollection<System.String>.IsReadOnly { get { throw null; } } | ||
| string System.Collections.Generic.IList<System.String>.this[int index] { get { throw null; } set { } } | ||
| public static Microsoft.Extensions.Primitives.StringValues Concat(Microsoft.Extensions.Primitives.StringValues values1, Microsoft.Extensions.Primitives.StringValues values2) { throw null; } | ||
| public static Microsoft.Extensions.Primitives.StringValues Concat(in Microsoft.Extensions.Primitives.StringValues values, string value) { throw null; } | ||
| public static Microsoft.Extensions.Primitives.StringValues Concat(string value, in Microsoft.Extensions.Primitives.StringValues values) { throw null; } | ||
| public static Microsoft.Extensions.Primitives.StringValues Concat(in Microsoft.Extensions.Primitives.StringValues values, string? value) { throw null; } | ||
| public static Microsoft.Extensions.Primitives.StringValues Concat(string? value, in Microsoft.Extensions.Primitives.StringValues values) { throw null; } | ||
| public bool Equals(Microsoft.Extensions.Primitives.StringValues other) { throw null; } | ||
| public static bool Equals(Microsoft.Extensions.Primitives.StringValues left, Microsoft.Extensions.Primitives.StringValues right) { throw null; } | ||
| public static bool Equals(Microsoft.Extensions.Primitives.StringValues left, string right) { throw null; } | ||
| public static bool Equals(Microsoft.Extensions.Primitives.StringValues left, string? right) { throw null; } | ||
| public static bool Equals(Microsoft.Extensions.Primitives.StringValues left, string[] right) { throw null; } | ||
| public override bool Equals(object obj) { throw null; } | ||
| public bool Equals(string other) { throw null; } | ||
| public static bool Equals(string left, Microsoft.Extensions.Primitives.StringValues right) { throw null; } | ||
| public bool Equals(string[] other) { throw null; } | ||
| public override bool Equals(object? obj) { throw null; } | ||
| public bool Equals(string? other) { throw null; } | ||
| public static bool Equals(string? left, Microsoft.Extensions.Primitives.StringValues right) { throw null; } | ||
| public bool Equals(string[]? other) { throw null; } | ||
| public static bool Equals(string[] left, Microsoft.Extensions.Primitives.StringValues right) { throw null; } | ||
| public Microsoft.Extensions.Primitives.StringValues.Enumerator GetEnumerator() { throw null; } | ||
| public override int GetHashCode() { throw null; } | ||
| public static bool IsNullOrEmpty(Microsoft.Extensions.Primitives.StringValues value) { throw null; } | ||
| public static bool operator ==(Microsoft.Extensions.Primitives.StringValues left, Microsoft.Extensions.Primitives.StringValues right) { throw null; } | ||
| public static bool operator ==(Microsoft.Extensions.Primitives.StringValues left, object right) { throw null; } | ||
| public static bool operator ==(Microsoft.Extensions.Primitives.StringValues left, string right) { throw null; } | ||
| public static bool operator ==(Microsoft.Extensions.Primitives.StringValues left, string? right) { throw null; } | ||
| public static bool operator ==(Microsoft.Extensions.Primitives.StringValues left, string[] right) { throw null; } | ||
| public static bool operator ==(object left, Microsoft.Extensions.Primitives.StringValues right) { throw null; } | ||
| public static bool operator ==(string left, Microsoft.Extensions.Primitives.StringValues right) { throw null; } | ||
| public static bool operator ==(string? left, Microsoft.Extensions.Primitives.StringValues right) { throw null; } | ||
| public static bool operator ==(string[] left, Microsoft.Extensions.Primitives.StringValues right) { throw null; } | ||
| public static implicit operator string (Microsoft.Extensions.Primitives.StringValues values) { throw null; } | ||
| public static implicit operator string[] (Microsoft.Extensions.Primitives.StringValues value) { throw null; } | ||
| public static implicit operator Microsoft.Extensions.Primitives.StringValues (string value) { throw null; } | ||
| public static implicit operator Microsoft.Extensions.Primitives.StringValues (string[] values) { throw null; } | ||
| public static implicit operator string?(Microsoft.Extensions.Primitives.StringValues values) { throw null; } | ||
| public static implicit operator string[](Microsoft.Extensions.Primitives.StringValues value) { throw null; } | ||
| public static implicit operator Microsoft.Extensions.Primitives.StringValues(string? value) { throw null; } | ||
| public static implicit operator Microsoft.Extensions.Primitives.StringValues(string[] values) { throw null; } | ||
maxkoshevoi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, Microsoft.Extensions.Primitives.StringValues right) { throw null; } | ||
| public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, object right) { throw null; } | ||
| public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, string right) { throw null; } | ||
| public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, string? right) { throw null; } | ||
| public static bool operator !=(Microsoft.Extensions.Primitives.StringValues left, string[] right) { throw null; } | ||
| public static bool operator !=(object left, Microsoft.Extensions.Primitives.StringValues right) { throw null; } | ||
| public static bool operator !=(string left, Microsoft.Extensions.Primitives.StringValues right) { throw null; } | ||
| public static bool operator !=(string? left, Microsoft.Extensions.Primitives.StringValues right) { throw null; } | ||
| public static bool operator !=(string[] left, Microsoft.Extensions.Primitives.StringValues right) { throw null; } | ||
| void System.Collections.Generic.ICollection<System.String>.Add(string item) { } | ||
| void System.Collections.Generic.ICollection<System.String>.Clear() { } | ||
|
|
@@ -172,12 +175,12 @@ public void Reset() { } | |
| System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } | ||
| public string[] ToArray() { throw null; } | ||
| public override string ToString() { throw null; } | ||
| public partial struct Enumerator : System.Collections.Generic.IEnumerator<string>, System.Collections.IEnumerator, System.IDisposable | ||
| public partial struct Enumerator : System.Collections.Generic.IEnumerator<string?>, System.Collections.IEnumerator, System.IDisposable | ||
| { | ||
| private object _dummy; | ||
| private int _dummyPrimitive; | ||
| public Enumerator(ref Microsoft.Extensions.Primitives.StringValues values) { throw null; } | ||
| public string Current { get { throw null; } } | ||
| public string? Current { get { throw null; } } | ||
| object System.Collections.IEnumerator.Current { get { throw null; } } | ||
| public void Dispose() { } | ||
| public bool MoveNext() { throw null; } | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.