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

◆ ValidateOidValue()

static void Internal.Cryptography.Pal.FindPal.ValidateOidValue ( string keyValue)
inlinestaticpackage

Definition at line 207 of file FindPal.cs.

208 {
209 if (keyValue == null)
210 {
211 throw new ArgumentNullException("keyValue");
212 }
213 int length = keyValue.Length;
214 if (length < 2)
215 {
217 }
218 char c = keyValue[0];
219 if (c != '0' && c != '1' && c != '2')
220 {
222 }
223 if (keyValue[1] != '.' || keyValue[length - 1] == '.')
224 {
226 }
227 for (int i = 1; i < length; i++)
228 {
229 if (!char.IsDigit(keyValue[i]) && (keyValue[i] != '.' || keyValue[i + 1] == '.'))
230 {
232 }
233 }
234 }
static string Argument_InvalidOidValue
Definition SR.cs:20
Definition SR.cs:7

References System.SR.Argument_InvalidOidValue, and System.length.

Referenced by Internal.Cryptography.Pal.FindPal.NormalizeOid().