PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Log­Record­Kind­Extensions Class / Log­Record­Kind­Extensions Methods / Log­Record­Kind­Extensions.​Is­Standalone Method

LogRecordKindExtensions.IsStandalone Method

Determines whether a given LogRecordKind represents a standalone record, i.e. a record that does not have a corresponding opening or closing. For instance, a CustomRecord is a standalone record.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
public static bool IsStandalone(
	this LogRecordKind kind
)

Parameters

kind
Type: PostSharp.Patterns.Diagnostics.LogRecordKind
A LogRecordKind.

Return Value

Type: Boolean
true if kind is a standalone record, otherwise false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type LogRecordKind. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks

may represent an closing or a standalone record, depending on the context. This method shall return false for .

See Also