DataUrlInfoICloneableClone Method
Creates a new object that is a copy of the current instance.
Namespace: FolkerKinzel.DataUrlsAssembly: FolkerKinzel.DataUrls (in FolkerKinzel.DataUrls.dll) Version: 1.0.0+b1c843815044ca6fd87a144c9ff16386002c6473
Object ICloneable.Clone()
Private Function Clone As Object Implements ICloneable.Clone
private:
virtual Object^ Clone() sealed = ICloneable::Clone
private abstract Clone : unit -> Object
private override Clone : unit -> Object
ObjectA new object that is a copy of this instance.
ICloneableClone
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.
Use the instance method
Clone, if you can, to avoid the
costs of boxing.