EntityObjectExtensionsDuplicateT Method (T, IEnumerableEntityObject) |
Duplicates the specified object.
Namespace:
Aloe.SystemFrameworks.Domain
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic static T Duplicate<T>(
this T obj,
params IEnumerable<EntityObject>[] childObjects
)
where T : EntityObject
<ExtensionAttribute>
Public Shared Function Duplicate(Of T As EntityObject) (
obj As T,
ParamArray childObjects As IEnumerable(Of EntityObject)()
) As T
public:
[ExtensionAttribute]
generic<typename T>
where T : EntityObject
static T Duplicate(
T obj,
... array<IEnumerable<EntityObject^>^>^ childObjects
)
[<ExtensionAttribute>]
static member Duplicate :
obj : 'T *
childObjects : IEnumerable<EntityObject>[] -> 'T when 'T : EntityObject
Parameters
- obj
- Type: T
The object. - childObjects
- Type: System.Collections.GenericIEnumerableEntityObject
The child objects to duplicate.
Type Parameters
- T
Return Value
Type:
TUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also