PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logging­Type­Source Class/Logging­Type­Source Methods/Logging­Type­Source.​Clone Method

LoggingTypeSource.Clone Method

Returns a deep clone of the current object.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
protected override LoggingNamespaceSource Clone(
	string role
)

Parameters

role
Type: System.String
The role of the new instance, or null to keep the same role as in the source instance. The default value is null.

Return Value

Type: LoggingNamespaceSource
A deep clone of the current instance.
See Also