接口 IAttachmentCopyHandler<T>
public interface IAttachmentCopyHandler<T>
Custom copy handler for data attachments, to improve efficiency compared to the default
serialize-deserialize-implementation.
-
方法概要
修饰符和类型方法说明copy
(T attachment, IAttachmentHolder holder, HolderLookup.Provider provider) creates a copy of the attachment.
-
方法详细资料
-
copy
creates a copy of the attachment. The copy should be equal to serializing and deserializing the attachment.- 参数:
attachment
- the attachment to copyholder
- the holder the attachment will be part of after copying- 返回:
- the copy or null if it shouldn't be copied.
-