In Metalama, a message is represented by a IDiagnostic. To instantiate a diagnostic, you must first declare its DiagnosticDefinition<T> as a static field or property, then use WithArguments(T).
Namespace: PostSharp.Extensibility
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("In Metalama, a message is represented by a 'IDiagnostic'. To instantiate a diagnostic, you must first declare its 'DiagnosticDefinition<T>' as a static field or property, then use 'DiagnosticDefinition<T>.WithArguments(T)'.", false)]
public sealed class Message
Constructors
Fields
Name | Description |
---|---|
NotAvailable |
Properties
Name | Description |
---|---|
HelpLink | |
InnerException | |
Location | |
MessageId | |
MessageText | |
Severity | |
Source |