DataUrlInfoICloneableClone Method

Creates a new object that is a copy of the current instance.

Definition

Namespace: FolkerKinzel.DataUrls
Assembly: FolkerKinzel.DataUrls (in FolkerKinzel.DataUrls.dll) Version: 1.0.0+b1c843815044ca6fd87a144c9ff16386002c6473
C#
Object ICloneable.Clone()

Return Value

Object
A new object that is a copy of this instance.

Implements

ICloneableClone

Remarks

If you intend to hold a DataUrlInfo for a long time in memory and if this DataUrlInfo is parsed from a ReadOnlyMemory<Char> that comes from a very long String, keep in mind, that the DataUrlInfo holds a reference to that String. Consider in this case to make a copy of the DataUrlInfo structure: The copy is built on a separate String that is case-normalized and only as long as needed.

  Tip

Use the instance method Clone, if you can, to avoid the costs of boxing.

See Also