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

◆ DefaultInterpolatedStringHandler() [2/3]

System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.DefaultInterpolatedStringHandler ( int literalLength,
int formattedCount,
IFormatProvider? provider )
inline

Definition at line 31 of file DefaultInterpolatedStringHandler.cs.

32 {
33 _provider = provider;
34 _chars = (_arrayToReturnToPool = ArrayPool<char>.Shared.Rent(GetDefaultLength(literalLength, formattedCount)));
35 _pos = 0;
36 _hasCustomFormatter = provider != null && HasCustomFormatter(provider);
37 }
static ArrayPool< T > Shared
Definition ArrayPool.cs:7

References System.Runtime.CompilerServices.DefaultInterpolatedStringHandler._arrayToReturnToPool, System.Runtime.CompilerServices.DefaultInterpolatedStringHandler._chars, System.Runtime.CompilerServices.DefaultInterpolatedStringHandler._hasCustomFormatter, System.Runtime.CompilerServices.DefaultInterpolatedStringHandler._pos, System.Runtime.CompilerServices.DefaultInterpolatedStringHandler._provider, System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.GetDefaultLength(), System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.HasCustomFormatter(), and System.Buffers.ArrayPool< T >.Shared.