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

◆ GetArgumentName()

static string System.ThrowHelper.GetArgumentName ( ExceptionArgument argument)
inlinestaticprivate

Definition at line 514 of file ThrowHelper.cs.

515 {
516 return argument switch
517 {
518 ExceptionArgument.obj => "obj",
519 ExceptionArgument.dictionary => "dictionary",
520 ExceptionArgument.array => "array",
521 ExceptionArgument.info => "info",
522 ExceptionArgument.key => "key",
523 ExceptionArgument.text => "text",
524 ExceptionArgument.values => "values",
525 ExceptionArgument.value => "value",
526 ExceptionArgument.startIndex => "startIndex",
527 ExceptionArgument.task => "task",
528 ExceptionArgument.bytes => "bytes",
529 ExceptionArgument.byteIndex => "byteIndex",
530 ExceptionArgument.byteCount => "byteCount",
531 ExceptionArgument.ch => "ch",
532 ExceptionArgument.chars => "chars",
533 ExceptionArgument.charIndex => "charIndex",
534 ExceptionArgument.charCount => "charCount",
535 ExceptionArgument.s => "s",
536 ExceptionArgument.input => "input",
537 ExceptionArgument.ownedMemory => "ownedMemory",
538 ExceptionArgument.list => "list",
539 ExceptionArgument.index => "index",
540 ExceptionArgument.capacity => "capacity",
541 ExceptionArgument.collection => "collection",
542 ExceptionArgument.item => "item",
543 ExceptionArgument.converter => "converter",
544 ExceptionArgument.match => "match",
545 ExceptionArgument.count => "count",
546 ExceptionArgument.action => "action",
547 ExceptionArgument.comparison => "comparison",
548 ExceptionArgument.exceptions => "exceptions",
549 ExceptionArgument.exception => "exception",
550 ExceptionArgument.pointer => "pointer",
551 ExceptionArgument.start => "start",
552 ExceptionArgument.format => "format",
553 ExceptionArgument.formats => "formats",
554 ExceptionArgument.culture => "culture",
555 ExceptionArgument.comparer => "comparer",
556 ExceptionArgument.comparable => "comparable",
557 ExceptionArgument.source => "source",
558 ExceptionArgument.state => "state",
559 ExceptionArgument.length => "length",
560 ExceptionArgument.comparisonType => "comparisonType",
561 ExceptionArgument.manager => "manager",
562 ExceptionArgument.sourceBytesToCopy => "sourceBytesToCopy",
563 ExceptionArgument.callBack => "callBack",
564 ExceptionArgument.creationOptions => "creationOptions",
565 ExceptionArgument.function => "function",
566 ExceptionArgument.scheduler => "scheduler",
567 ExceptionArgument.continuationAction => "continuationAction",
568 ExceptionArgument.continuationFunction => "continuationFunction",
569 ExceptionArgument.tasks => "tasks",
570 ExceptionArgument.asyncResult => "asyncResult",
571 ExceptionArgument.beginMethod => "beginMethod",
572 ExceptionArgument.endMethod => "endMethod",
573 ExceptionArgument.endFunction => "endFunction",
574 ExceptionArgument.cancellationToken => "cancellationToken",
575 ExceptionArgument.continuationOptions => "continuationOptions",
576 ExceptionArgument.delay => "delay",
577 ExceptionArgument.millisecondsDelay => "millisecondsDelay",
578 ExceptionArgument.millisecondsTimeout => "millisecondsTimeout",
579 ExceptionArgument.stateMachine => "stateMachine",
580 ExceptionArgument.timeout => "timeout",
581 ExceptionArgument.type => "type",
582 ExceptionArgument.sourceIndex => "sourceIndex",
583 ExceptionArgument.sourceArray => "sourceArray",
584 ExceptionArgument.destinationIndex => "destinationIndex",
585 ExceptionArgument.destinationArray => "destinationArray",
586 ExceptionArgument.pHandle => "pHandle",
587 ExceptionArgument.handle => "handle",
588 ExceptionArgument.other => "other",
589 ExceptionArgument.newSize => "newSize",
590 ExceptionArgument.lowerBounds => "lowerBounds",
591 ExceptionArgument.lengths => "lengths",
592 ExceptionArgument.len => "len",
593 ExceptionArgument.keys => "keys",
594 ExceptionArgument.indices => "indices",
595 ExceptionArgument.index1 => "index1",
596 ExceptionArgument.index2 => "index2",
597 ExceptionArgument.index3 => "index3",
598 ExceptionArgument.length1 => "length1",
599 ExceptionArgument.length2 => "length2",
600 ExceptionArgument.length3 => "length3",
601 ExceptionArgument.endIndex => "endIndex",
602 ExceptionArgument.elementType => "elementType",
603 ExceptionArgument.arrayIndex => "arrayIndex",
604 ExceptionArgument.year => "year",
605 ExceptionArgument.codePoint => "codePoint",
606 ExceptionArgument.str => "str",
607 ExceptionArgument.options => "options",
608 ExceptionArgument.prefix => "prefix",
609 ExceptionArgument.suffix => "suffix",
610 ExceptionArgument.buffer => "buffer",
611 ExceptionArgument.buffers => "buffers",
612 ExceptionArgument.offset => "offset",
613 ExceptionArgument.stream => "stream",
614 _ => "",
615 };
616 }

References System.Runtime.Serialization.Dictionary.

Referenced by System.ThrowHelper.GetArgumentException(), System.ThrowHelper.GetArgumentOutOfRangeException(), System.ThrowHelper.GetArgumentOutOfRangeException(), System.ThrowHelper.ThrowArgumentNullException(), System.ThrowHelper.ThrowArgumentNullException(), and System.ThrowHelper.ThrowArgumentOutOfRangeException().