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

◆ SetName()

void System.Net.Http.Headers.ContentDispositionHeaderValue.SetName ( string parameter,
string value )
inlineprivate

Definition at line 325 of file ContentDispositionHeaderValue.cs.

326 {
327 NameValueHeaderValue nameValueHeaderValue = NameValueHeaderValue.Find(_parameters, parameter);
328 if (string.IsNullOrEmpty(value))
329 {
330 if (nameValueHeaderValue != null)
331 {
333 }
334 return;
335 }
336 string empty = string.Empty;
337 empty = ((!parameter.EndsWith('*')) ? EncodeAndQuoteMime(value) : HeaderUtilities.Encode5987(value));
338 if (nameValueHeaderValue != null)
339 {
340 nameValueHeaderValue.Value = empty;
341 }
342 else
343 {
344 Parameters.Add(new NameValueHeaderValue(parameter, empty));
345 }
346 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)

References System.Net.Http.Headers.ContentDispositionHeaderValue._parameters, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Net.Http.Headers.HeaderUtilities.Encode5987(), System.Net.Http.Headers.ContentDispositionHeaderValue.EncodeAndQuoteMime(), System.Net.Http.Headers.NameValueHeaderValue.Find(), System.Net.Http.Headers.ContentDispositionHeaderValue.Parameters, System.Collections.Generic.Dictionary< TKey, TValue >.Remove(), and System.value.