Struct AppendIntactInterpolatedStringHandler
- Namespace
 - Dapper.SimpleSqlBuilder
 
- Assembly
 - Dapper.SimpleSqlBuilder.dll
 
A handler used by the language compiler to append interpolated strings into Builder instances.
public ref struct AppendIntactInterpolatedStringHandlerConstructors
AppendIntactInterpolatedStringHandler(int, int, Builder, out bool)
Initializes a new instance of the AppendIntactInterpolatedStringHandler struct.
public AppendIntactInterpolatedStringHandler(int literalLength, int formattedCount, Builder builder, out bool isHandlerEnabled)Parameters
literalLengthint- 
The number of constant characters outside of interpolation expressions in the interpolated string.
 formattedCountint- 
The number of interpolation expressions in the interpolated string.
 builderBuilder- 
The builder associated with the handler.
 isHandlerEnabledbool- 
The value that indicates whether the handler is enabled or disabled.
 
Exceptions
- ArgumentException
 - 
Thrown when
builderis null or doesn't implement IBuilderFormatter. 
AppendIntactInterpolatedStringHandler(int, int, bool, Builder, out bool)
Initializes a new instance of the AppendIntactInterpolatedStringHandler struct.
public AppendIntactInterpolatedStringHandler(int literalLength, int formattedCount, bool condition, Builder builder, out bool isHandlerEnabled)Parameters
literalLengthint- 
The number of constant characters outside of interpolation expressions in the interpolated string.
 formattedCountint- 
The number of interpolation expressions in the interpolated string.
 conditionbool- 
The value to determine whether the handler should be enabled or disabled.
 builderBuilder- 
The builder associated with the handler.
 isHandlerEnabledbool- 
The value that indicates whether the handler is enabled or disabled.
 
Exceptions
- ArgumentException
 - 
Thrown when
builderis null or doesn't implement IBuilderFormatter. 
Methods
AppendFormatted<T>(T)
Appends a value to the builder.
public void AppendFormatted<T>(T value)Parameters
valueT- 
The value to append.
 
Type Parameters
T- 
The type of the value.
 
AppendFormatted<T>(T, string?)
Appends a value to the builder.
public void AppendFormatted<T>(T value, string? format)Parameters
valueT- 
The value to append.
 formatstring?- 
The format string for the value.
 
Type Parameters
T- 
The type of the value.
 
AppendLiteral(string)
Appends a string to the builder.
public void AppendLiteral(string value)Parameters
valuestring- 
The string to append.