ReferenceExpressionBuilder Methods
Class Methods 8 members
A builder for creating
ReferenceExpression instances. Append(ReferenceExpressionBuilderInterpolatedStringHandler) Section titled Append(ReferenceExpressionBuilderInterpolatedStringHandler) Appends an interpolated string to the expression.
public class ReferenceExpressionBuilder{ public void Append( in ReferenceExpressionBuilderInterpolatedStringHandler handler) { // ... }}Parameters
AppendFormatted(string?) Section titled AppendFormatted(string?) Appends a formatted value to the expression.
public class ReferenceExpressionBuilder{ public void AppendFormatted( string? value) { // ... }}Parameters
value string? The formatted string to be appended to the interpolated string. AppendFormatted(string?, string?) Section titled AppendFormatted(string?, string?) Appends a formatted value to the expression.
public class ReferenceExpressionBuilder{ public void AppendFormatted( string? value, string? format) { // ... }}Parameters
value string? The formatted string to be appended to the interpolated string. format string? The format to be applied to the value. e.g., "uri" AppendFormatted(T) Section titled AppendFormatted(T) Appends a formatted value to the expression. The value must implement
IValueProvider and IManifestExpressionProvider. public class ReferenceExpressionBuilder{ public void AppendFormatted<T>( T valueProvider) { // ... }}Parameters
valueProvider T An instance of an object which implements IValueProvider and IManifestExpressionProvider. Exceptions
InvalidOperationException AppendFormatted(ReferenceExpression, string) Section titled AppendFormatted(ReferenceExpression, string) Appends the formatted value provided by the specified reference expression to the output.
public class ReferenceExpressionBuilder{ public void AppendFormatted( ReferenceExpression valueProvider, string format) { // ... }}Parameters
valueProvider ReferenceExpression A reference expression that supplies the value to be formatted and appended. format string A composite format string that specifies how the value should be formatted, or null to use the default format. Remarks
This method is marked obsolete only to prevent usages of this type explicitly.
AppendFormatted(T, string?) Section titled AppendFormatted(T, string?) Appends a formatted value to the expression. The value must implement
IValueProvider and IManifestExpressionProvider. public class ReferenceExpressionBuilder{ public void AppendFormatted<T>( T valueProvider, string? format) { // ... }}Parameters
valueProvider T An instance of an object which implements IValueProvider and IManifestExpressionProvider. format string? The format to be applied to the value. e.g., "uri" Exceptions
InvalidOperationException AppendLiteral(string) Section titled AppendLiteral(string) Appends a literal value to the expression.
public class ReferenceExpressionBuilder{ public void AppendLiteral( string value) { // ... }}Parameters
value string The literal string value to be appended to the interpolated string. Builds the
ReferenceExpression. public class ReferenceExpressionBuilder{ public ReferenceExpression Build() { // ... }}