Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
NameValueWithParametersHeaderValue.cs
Go to the documentation of this file.
3using System.Text;
4
6
8{
10
12
14
16 : base(name)
17 {
18 }
19
20 public NameValueWithParametersHeaderValue(string name, string? value)
21 : base(name, value)
22 {
23 }
24
28
34
35 public override bool Equals([NotNullWhen(true)] object? obj)
36 {
37 if (base.Equals(obj))
38 {
40 {
41 return false;
42 }
43 return HeaderUtilities.AreEqualCollections(_parameters, nameValueWithParametersHeaderValue._parameters);
44 }
45 return false;
46 }
47
48 public override int GetHashCode()
49 {
50 return base.GetHashCode() ^ NameValueHeaderValue.GetHashCode(_parameters);
51 }
52
61
67
69 {
70 int index = 0;
71 parsedValue = null;
73 {
75 return true;
76 }
77 return false;
78 }
79
110
112 {
114 }
115
117 {
118 return new NameValueWithParametersHeaderValue(this);
119 }
120}
static readonly GenericHeaderParser SingleValueNameValueWithParametersParser
static int GetNameValueListLength(string input, int startIndex, char delimiter, ObjectCollection< NameValueHeaderValue > nameValueCollection)
static int GetNameValueLength(string input, int startIndex, out NameValueHeaderValue parsedValue)
static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out NameValueWithParametersHeaderValue? parsedValue)
static new NameValueWithParametersHeaderValue Parse(string? input)
static int GetNameValueWithParametersLength(string input, int startIndex, out object parsedValue)
static int GetWhitespaceLength(string input, int startIndex)
static string GetStringAndRelease(StringBuilder sb)
static StringBuilder Acquire(int capacity=16)