Shallow copies the state of the passed PageData instance into a new typed instance.

Namespace:  EPiServer.Core
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public static TPageData ShallowCopy<TPageData>(
	PageData copy
)
where TPageData : new(), PageData

Parameters

copy
Type: EPiServer.Core..::.PageData
The instance to copy state from.

Type Parameters

TPageData
A type deriving from PageData having a default constructor.

Return Value

A new instance of type TPageData

See Also