MetalamaAPI documentationFlashtrace APIFlashtrace.​RecordsLog­Record­Kind­ExtensionsIs­Standalone
Open sandboxFocus

LogRecordKindExtensions.IsStandalone Method

IsStandalone(LogRecordKind)

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 Message is a standalone record.

Declaration
public static bool IsStandalone(this LogRecordKind kind)
Parameters
Type Name Description
LogRecordKind kind

A LogRecordKind.

Returns
Type Description
System.Boolean

true if kind is a standalone record, otherwise false.

Remarks

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