Create a new instance of Location with all of the same decorators as this instance but with the data stored in loc.

Namespace:  BioSharp.Core.Bio.Symbol
Assembly:  BioSharp.Core (in BioSharp.Core.dll) Version: 0.1.3191.26120 (0.1.0.0)

Syntax

C#
public ILocation NewInstance(
	ILocation loc
)

Parameters

loc
Type: BioSharp.Core.Bio.Symbol..::.ILocation
the ILocation to use as template

Return Value

an ILocation instance based on loc with the same decorators as the current instance

Implements

ILocation..::.NewInstance(ILocation)

Remarks

The default behavior is to return loc unchanged. If the class is a location decorator then it should instantiate an instance of the same type that decorates loc.

See Also