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

◆ CreateThisFromUri()

void System.Uri.CreateThisFromUri ( Uri otherUri)
inlineprivate

Definition at line 4358 of file Uri.cs.

4359 {
4360 _info = null;
4361 _flags = otherUri._flags;
4362 if (InFact(Flags.MinimalUriInfoSet))
4363 {
4364 _flags &= ~(Flags.IndexMask | Flags.MinimalUriInfoSet | Flags.AllUriInfoSet);
4365 int num = otherUri._info.Offset.Path;
4366 if (InFact(Flags.NotDefaultPort))
4367 {
4368 while (otherUri._string[num] != ':' && num > otherUri._info.Offset.Host)
4369 {
4370 num--;
4371 }
4372 if (otherUri._string[num] != ':')
4373 {
4374 num = otherUri._info.Offset.Path;
4375 }
4376 }
4377 _flags |= (Flags)num;
4378 }
4379 _syntax = otherUri._syntax;
4380 _string = otherUri._string;
4381 _originalUnicodeString = otherUri._originalUnicodeString;
4382 }
UriParser _syntax
Definition Uri.cs:193
string _originalUnicodeString
Definition Uri.cs:191
Flags _flags
Definition Uri.cs:195
bool InFact(Flags flags)
Definition Uri.cs:611
string _string
Definition Uri.cs:189
UriInfo _info
Definition Uri.cs:197

References System.Uri._flags, System.Uri._info, System.Uri._originalUnicodeString, System.Uri._string, System.Uri._syntax, System.Runtime.Serialization.Dictionary, and System.Uri.InFact().

Referenced by System.Uri.Uri(), and System.Uri.CreateUri().