Definition at line 1166 of file Uri.cs.
1167 {
1169 {
1170 return false;
1171 }
1173 {
1174 return true;
1175 }
1177 if ((object)result == null)
1178 {
1180 {
1181 return false;
1182 }
1184 {
1185 return false;
1186 }
1188 {
1189 return true;
1190 }
1192 {
1193 return false;
1194 }
1195 }
1197 {
1198 return false;
1199 }
1201 {
1202 return true;
1203 }
1205 {
1206 return false;
1207 }
1209 {
1211 }
1213 {
1214 return true;
1215 }
1217 result.EnsureUriInfo();
1219 {
1220 if (
InFact(Flags.CanonicalDnsHost) && result.InFact(Flags.CanonicalDnsHost))
1221 {
1224 int num3 = result._info.Offset.Host;
1225 int path = result._info.Offset.Path;
1226 string @string = result._string;
1228 {
1230 }
1232 {
1234 {
1235 return false;
1236 }
1237 if (@
string[
num3] ==
':')
1238 {
1239 break;
1240 }
1241 num++;
1243 }
1245 {
1246 return false;
1247 }
1249 {
1250 return false;
1251 }
1252 }
1253 else
1254 {
1257 if (!
_info.
Host.Equals(result._info.Host))
1258 {
1259 return false;
1260 }
1261 }
1262 if (
Port != result.Port)
1263 {
1264 return false;
1265 }
1266 }
1268 MoreInfo
moreInfo2 = result._info.MoreInfo;
1274 }
static bool TryCreate([NotNullWhen(true)] string? uriString, UriKind uriKind, [NotNullWhen(true)] out Uri? result)
bool DisablePathAndQueryCanonicalization
string GetParts(UriComponents uriParts, UriFormat formatAs)
void EnsureHostString(bool allowDnsOptimization)
References System.Uri.Uri(), System.Uri._info, System.Uri._string, System.Runtime.Serialization.Dictionary, System.Uri.DisablePathAndQueryCanonicalization, System.Uri.EnsureHostString(), System.Uri.EnsureUriInfo(), System.Uri.GetParts(), System.Uri.UriInfo.Host, System.Uri.Offset.Host, System.Uri.InFact(), System.Uri.IsAbsoluteUri, System.Uri.IsNotAbsoluteUri, System.UriParser.IsSimple, System.Uri.IsUncOrDosPath, System.Uri.UriInfo.MoreInfo, System.Uri.NotAny(), System.Uri.UriInfo.Offset, System.Uri.OriginalString, System.Uri.Offset.Path, System.Uri.Port, System.Uri.Syntax, System.text, System.Uri.TryCreate(), and System.Uri.UserDrivenParsing.
Referenced by System.Net.CredentialKey.Equals(), System.Xml.Schema.ChameleonKey.Equals(), System.UriBuilder.Equals(), and System.Net.Http.HttpEnvironmentProxyCredentials.GetCredential().