Definition at line 429 of file AssemblyName.cs.
430 {
435 {
437 {
439 if (c > '\u007f')
440 {
441 short num2 = (
short)Math.Min(end - i, 39);
444 {
446 }
448 {
450 {
451 throw new FormatException(SR.Arg_FormatException);
452 }
454 }
458 {
459 throw new FormatException(SR.Arg_FormatException);
460 }
463 {
465 }
467 }
468 else if (c ==
'%' &&
rsvd ==
'%')
469 {
471 if (i + 2 < end && HexConverter.IsHexChar(
ptr2[i + 1]) && HexConverter.IsHexChar(
ptr2[i + 2]))
472 {
477 }
478 else
479 {
481 }
483 }
485 {
489 }
490 }
491 if (num != i && (num !=
start ||
dest !=
null))
492 {
494 }
495 }
497 }
static bool IsUnreserved(char c)
static void EscapeAsciiChar(char ch, char[] to, ref int pos)
static unsafe char[] EnsureDestinationSize(char *pStr, char[] dest, int currentInputPos, short charsToAdd, short minReallocateChars, ref int destPos, int prevInputPos)
static bool IsReservedUnreservedOrHash(char c)
References System.SR.Arg_FormatException, System.Runtime.Serialization.Dictionary, System.Reflection.AssemblyName.EnsureDestinationSize(), System.Reflection.AssemblyName.EscapeAsciiChar(), System.input, System.HexConverter.IsHexChar(), System.Reflection.AssemblyName.IsReservedUnreservedOrHash(), System.Reflection.AssemblyName.IsUnreserved(), System.Math.Min(), System.start, and System.Text.Encoding.UTF8.
Referenced by System.Reflection.AssemblyName.EscapeCodeBase().