Interface ICloneableAsync
Indicates this class supports cloning an entire copy of itself
Namespace: LemonEdge.Utils.Interfaces
Assembly: Utils.dll
Syntax
public interface ICloneableAsync
Methods
Clone(Object)
Creates a new instance of this class with all the same property values as this instance
Declaration
Task<object> Clone(object context)
Parameters
Type | Name | Description |
---|---|---|
System.Object | context | A context item used for creating a new instance of this item. Can allow permission checks and other functionality. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Object> | A task that creates new instance of this class with all the same property values as this instance |
CopyFromSource(Object)
Updates all properties in this item to have the same properties as the source object.
The source object should be of the same type as this one
Declaration
void CopyFromSource(object source)
Parameters
Type | Name | Description |
---|---|---|
System.Object | source | The source object to copy all values from. Should be of the same type as this one. |