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

◆ CheckBadChars()

static string System.Net.WebHeaderCollection.CheckBadChars ( string name,
bool isHeaderValue )
inlinestaticpackage

Definition at line 694 of file WebHeaderCollection.cs.

695 {
696 int num = 1;
697 if (num == 0)
698 {
699 return "Specified value has invalid CRLF characters.";
700 }
701 if (num == 0)
702 {
703 }
704 string text;
705 int stringLength = text._stringLength;
706 long num2 = 0L;
707 long num3 = 0L;
708 char c = text[(int)num3];
709 int num4;
710 if (num2 == 0L)
711 {
712 num4 = 1;
713 }
714 int stringLength2 = text._stringLength;
715 if (num4 != 0)
716 {
717 return "Specified value has invalid CRLF characters.";
718 }
719 if (SR.GetString("Specified value has invalid Control characters.") != null && "name" != null && "name" == null)
720 {
721 throw new ArrayTypeMismatchException();
722 }
723 return "Specified value has invalid HTTP Header characters.";
724 }
class f__AnonymousType0<< Count > j__TPar
static string GetString(string name, params object[] args)
Definition SR.cs:9
Definition SR.cs:7

References SR.GetString(), j__TPar, System.L, and System.text.

Referenced by System.Net.WebHeaderCollection.Add(), System.Net.WebHeaderCollection.Add(), System.Net.WebHeaderCollection.AddWithoutValidate(), System.Net.WebHeaderCollection.CheckUpdate(), System.Net.WebHeaderCollection.Remove(), System.Net.WebHeaderCollection.Set(), System.Net.WebHeaderCollection.SetInternal(), and System.Net.HttpWebRequest.SetSpecialHeaders().