PostSharp 6.10 / / Post­Sharp Documentation / 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: (
protected virtual LoggingNamespaceSource Clone(
	string role = null


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