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

◆ GetValues() [2/3]

override? string[] System.Net.WebHeaderCollection.GetValues ( string header)
inline

Definition at line 208 of file WebHeaderCollection.cs.

209 {
212 if (headerInfo == null || values == null || !headerInfo.AllowMultiValues)
213 {
214 return values;
215 }
216 List<string> list = null;
217 for (int i = 0; i < values.Length; i++)
218 {
219 string[] array = headerInfo.Parser(values[i]);
220 if (list == null)
221 {
222 if (array != null)
223 {
224 list = new List<string>(values);
225 list.RemoveRange(i, values.Length - i);
226 list.AddRange(array);
227 }
228 }
229 else
230 {
231 list.AddRange(array);
232 }
233 }
234 if (list != null)
235 {
236 return list.ToArray();
237 }
238 return values;
239 }
static HeaderInfoTable HeaderInfo

References System.array, System.Runtime.Serialization.Dictionary, System.Collections.Specialized.NameValueCollection.GetValues(), System.Net.WebHeaderCollection.InnerCollection, System.list, and System.values.