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

◆ RestrictedAsciiStringEncoding() [2/2]

System.Formats.Asn1.RestrictedAsciiStringEncoding.RestrictedAsciiStringEncoding ( IEnumerable< char > allowedChars)
inlineprotected

Definition at line 19 of file RestrictedAsciiStringEncoding.cs.

20 {
21 bool[] array = new bool[127];
22 foreach (char allowedChar in allowedChars)
23 {
24 if (allowedChar >= array.Length)
25 {
26 throw new ArgumentOutOfRangeException("allowedChars");
27 }
28 array[(uint)allowedChar] = true;
29 }
31 }

References System.Formats.Asn1.RestrictedAsciiStringEncoding._isAllowed, and System.array.