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

◆ ReadStoreValues< T >()

static void System.Net.Http.Headers.HttpHeaders.ReadStoreValues< T > ( Span< string > values,
object storeValue,
HttpHeaderParser parser,
ref int currentIndex )
inlinestaticprivateinherited

Definition at line 994 of file HttpHeaders.cs.

995 {
996 if (storeValue == null)
997 {
998 return;
999 }
1000 if (!(storeValue is List<T> list))
1001 {
1002 values[currentIndex] = ((parser == null) ? storeValue.ToString() : parser.ToString(storeValue));
1003 currentIndex++;
1004 return;
1005 }
1006 foreach (T item in list)
1007 {
1008 object obj = item;
1009 values[currentIndex] = ((parser == null) ? obj.ToString() : parser.ToString(obj));
1010 currentIndex++;
1011 }
1012 }

References System.item, System.list, System.obj, and System.values.