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

◆ GetStringForExceptionResource()

static string System.Text.RegularExpressions.ThrowHelper.GetStringForExceptionResource ( ExceptionResource resource)
inlinestaticprivate

Definition at line 63 of file ThrowHelper.cs.

64 {
65 return resource switch
66 {
67 ExceptionResource.BeginIndexNotNegative => System.SR.BeginIndexNotNegative,
68 ExceptionResource.CountTooSmall => System.SR.CountTooSmall,
69 ExceptionResource.LengthNotNegative => System.SR.LengthNotNegative,
70 ExceptionResource.OnlyAllowedOnce => System.SR.OnlyAllowedOnce,
71 ExceptionResource.ReplacementError => System.SR.ReplacementError,
72 _ => null,
73 };
74 }
static string ReplacementError
Definition SR.cs:76
static string BeginIndexNotNegative
Definition SR.cs:22
static string LengthNotNegative
Definition SR.cs:48
static string CountTooSmall
Definition SR.cs:28
static string OnlyAllowedOnce
Definition SR.cs:68
Definition SR.cs:7

References System.SR.BeginIndexNotNegative, System.SR.CountTooSmall, System.SR.LengthNotNegative, System.SR.OnlyAllowedOnce, and System.SR.ReplacementError.

Referenced by System.Text.RegularExpressions.ThrowHelper.CreateArgumentException(), System.Text.RegularExpressions.ThrowHelper.ThrowArgumentOutOfRangeException(), and System.Text.RegularExpressions.ThrowHelper.ThrowNotSupportedException().