AppVar

Class Overview
Represents variables in the target application.
Operates properies, fields, methods.
Can acquire variable values from the test process, and set values to the test process.
When the variables in application support iterative processes (In case of .Net, it inherits IEnumerator),
can use foreach to iterate through them.
As long as an instance of this class remains in the test process, the underlying object in the target application will not be marked for garbage collection.
Timing of the garbage collection within the test process is not affected by the memory state of the product process.
If needed, use methods such as System.GC's Collect() or WaitForPendingFinalizers() to trigger garbage collection and delete instances from the test process.
You can also use Dispose() to release a resource immediately.


public FriendlyOperation this[string operation]{ get; }
public FriendlyOperation this[string operationAsync async]{ get; }
public FriendlyOperation this[string operationOperationTypeInfo operationTypeInfo]{ get; }
public FriendlyOperation this[string operationOperationTypeInfo operationTypeInfo, Async async]{ get; }
Description
Acquires a delegate which can call operations on variables in the test target application.

Return value
Delegate for executing operations.

Parameters
operation
Operation name
operationTypeInfo
Operation type information.
Used to differentiate between multiple overloads or to target an operation with the same name within a parent class.
Overloads can often be resolved by their parameters without specifying an OperationTypeInfo
.

async
Object for asynchronous execution.



public object Core{ get; set; }
Description
Serializes a variable and passes it to the application under test or sends a value to it
Can only be used when the object can be serialized.
AppVar can also be assigned to the setter.

public override bool Equals(object obj)
Description
Equivalence comparison.
Carries out an equivalence comparison against the variable in the application.

Return Value
true is returned when the values are equal.

Parameter
obj
A candidate for the comparison.
AppVar can also be specified.
Please refer to sample code.



public override int GetHashCode()
Description
Acquires a hash code of the variable in the application.

Return value
Hash code of the variable in the application.



public override string ToString()
Description
Produces a string value for the object in the application.

Return value
String representing the object in the application.



public void Dispose()
Description
            Releases the application's variable from management.
            After calling this method, the variable of this AppVar cannot be accessed.
            In many cases, it is not necessary to call this explicitly.
            If needed, please use methods such as System.GC's Collect() or WaitForPendingFinalizers()
            to trigger garbage collection. 
            Please use this, for example, when the variable inside the application uses a lot of memory.

JR