terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ Add() [3/4]

void System.Net.WebHeaderCollection.Add ( string header)
inline

Definition at line 776 of file WebHeaderCollection.cs.

777 {
778 if (!true)
779 {
780 }
781 if (header != null && header._stringLength != 0)
782 {
783 int num = 58;
784 int num2 = header.IndexOf((char)num);
785 long num3 = 0L;
786 string text = header.Substring((int)num3, num2);
787 string text2 = header.Substring((int)num3);
788 long num4 = 0L;
789 string text3 = WebHeaderCollection.CheckBadChars(text, num4 != 0L);
790 this.ThrowOnRestrictedHeader(text3);
791 int num5 = 1;
792 string text4 = WebHeaderCollection.CheckBadChars(text2, num5 != 0);
793 if (text4 != null)
794 {
795 WebHeaderCollectionType type = this.m_Type;
796 int stringLength = text4._stringLength;
797 }
799 base.InvalidateCachedArrays();
800 global::System.Collections.Specialized.NameValueCollection innerCollection = this.InnerCollection;
801 return;
802 }
803 string @string = SR.GetString("Specified value does not have a ':' separator.");
804 throw new ArrayTypeMismatchException();
805 }
class f__AnonymousType0<< Count > j__TPar
static string GetString(string name, params object[] args)
Definition SR.cs:9
Definition SR.cs:7
global::System.Collections.Specialized.NameValueCollection InnerCollection
void ThrowOnRestrictedHeader(string headerName)

References System.Net.WebHeaderCollection.CheckBadChars(), SR.GetString(), System.Net.WebHeaderCollection.InnerCollection, j__TPar, System.L, System.Net.WebHeaderCollection.m_Type, System.Net.WebHeaderCollection.NormalizeCommonHeaders(), System.text, and System.Net.WebHeaderCollection.ThrowOnRestrictedHeader().