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: 2.0.7+f420e766440407ca7bfdc5c20bddf380fd0dd65f
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