Directions of Method Arguments

Since ASCET 6.0, the attribute Direction is available for method arguments. This attribute can be set in the Arguments tab of the signature editor. The argument direction determines access semantic for the argument as well as the way parameters are passed. The latter can be different for value types and reference types (see Value Types and Reference Types).

Available directions and their properties are summarized in the following table.

Argument direction

Access semantic

Parameter Passing

value types

reference types

In

read only

by value

by reference

Out

write only

by reference

by reference

InOut

read and write

by reference

by reference

The following must be kept in mind when setting the direction:

ClosedIn
ClosedInOut
ClosedOut

See also

Arguments Tab

Value Types and Reference Types

Adding an Argument to the Method