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

LoggingNamespaceSource.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.2.11.0 (6.2.11.0)
Syntax
C#
protected virtual LoggingNamespaceSource Clone(
	string role = null
)

Parameters

role (Optional)
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