Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Equals()

override bool System.Net.Http.Headers.AuthenticationHeaderValue.Equals ( [NotNullWhen(true)] object? obj)
inline

Definition at line 43 of file AuthenticationHeaderValue.cs.

44 {
45 if (!(obj is AuthenticationHeaderValue authenticationHeaderValue))
46 {
47 return false;
48 }
49 if (string.IsNullOrEmpty(_parameter) && string.IsNullOrEmpty(authenticationHeaderValue._parameter))
50 {
51 return string.Equals(_scheme, authenticationHeaderValue._scheme, StringComparison.OrdinalIgnoreCase);
52 }
53 if (string.Equals(_scheme, authenticationHeaderValue._scheme, StringComparison.OrdinalIgnoreCase))
54 {
55 return string.Equals(_parameter, authenticationHeaderValue._parameter, StringComparison.Ordinal);
56 }
57 return false;
58 }

References System.Net.Http.Headers.AuthenticationHeaderValue._parameter, System.Net.Http.Headers.AuthenticationHeaderValue._scheme, System.Net.Equals, and System.obj.