ExtensionMethodsCopy Method |
Deep copy the given TestStep from the original by using serialization.
Namespace:
Hummingbird.TestFramework
Assembly:
Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax public static TestStepBase Copy(
this TestStepBase original,
out string content
)
<ExtensionAttribute>
Public Shared Function Copy (
original As TestStepBase,
<OutAttribute> ByRef content As String
) As TestStepBase
public:
[ExtensionAttribute]
static TestStepBase^ Copy(
TestStepBase^ original,
[OutAttribute] String^% content
)
[<ExtensionAttribute>]
static member Copy :
original : TestStepBase *
content : string byref -> TestStepBase
Parameters
- original
- Type: Hummingbird.TestFramework.AutomationTestStepBase
The original TestStepBase object. - content
- Type: SystemString
The content in XML of the deserialzed object representing the original
Return Value
Type:
TestStepBaseA
TestStepBase object, deep copied from the original test step.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
TestStepBase. 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