3 writes to To
Microsoft.Net.Http.Headers (3)
ContentRangeHeaderValue.cs (3)
54
To
= to;
89
To
= to;
430
result.
To
= to;
12 references to To
Microsoft.Net.Http.Headers (7)
ContentRangeHeaderValue.cs (7)
133
/// Gets a value that determines if <see cref="From"/> and <see cref="
To
"/> have been specified.
135
[MemberNotNullWhen(true, nameof(From), nameof(
To
))]
138
get { return From != null &&
To
!= null; }
151
return ((From == other.From) && (
To
== other.
To
) && (Length == other.Length) &&
162
result = result ^ From.GetHashCode() ^
To
.GetHashCode();
184
sb.Append(
To
.GetValueOrDefault().ToString(NumberFormatInfo.InvariantInfo));
Microsoft.Net.Http.Headers.Tests (5)
ContentRangeHeaderValueTest.cs (5)
23
Assert.Null(range.
To
);
44
Assert.Equal(1, range.
To
);
68
Assert.Equal(1, range.
To
);
161
Assert.Null(result.
To
);
192
Assert.Null(result.
To
);