PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Semantic­Message­Builder Class / Semantic­Message­Builder Methods / Semantic­Message­Builder.​Semantic Method / Semantic­Message­Builder.​Semantic Method (String, IRead­Only­List(Value­Tuple(String, Object)))

SemanticMessageBuilder.Semantic Method (String, IReadOnlyList<ValueTuple<String, Object>>)

Creates a semantic message with an arbitrary number of parameters.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public static SemanticMessageArray Semantic(
	string messageName,
	IReadOnlyList<(string , Object )> parameters
)

Parameters

messageName
Type: System.String
Message name.
parameters
Type: System.Collections.Generic.IReadOnlyList<ValueTuple<String, Object>>
Array of parameters (name-value pairs).

Return Value

Type: SemanticMessageArray
See Also