PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / Log­Event­Data Structure / Log­Event­Data Methods / Log­Event­Data.​Create Method / Log­Event­Data.​Create(T) Method (T)

LogEventData.Create<T> Method (T)

Creates a new LogEventData and uses the default LogEventMetadata for the build-time type of the specified object. This overload is faster than the non-generic one.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public static LogEventData Create<T>(
	T data
)

Parameters

data
Type: T
The raw CLR object, typically an instance of anonymous type or any other type.

Type Parameters

T

Return Value

Type: LogEventData
See Also