Class StdLibArrayAttribute
Declares the element type of a standard-library array parameter, which its C# signature cannot say on its own.
[AttributeUsage(AttributeTargets.Parameter)]
public sealed class StdLibArrayAttribute : Attribute
- Inheritance
-
StdLibArrayAttribute
- Inherited Members
Remarks
An array parameter is declared as a VBResizableArrayValue, which
on its own reads as Variant() — the only array type a value type names. A member whose
specification declares an array of something else, such as ValueArray() As Double
(MS-VBAL §6.1.2.6.1.4), states the element type here, and the call site then
Let-coerces an argument to an array of it, the way it would to any other declared type.
Constructors
StdLibArrayAttribute(Type)
Declares the element type of a standard-library array parameter, which its C# signature cannot say on its own.
public StdLibArrayAttribute(Type elementType)
Parameters
elementTypeTypeThe element type: a VBTypedValue implementation, the way a signature names an intrinsic type.
Remarks
An array parameter is declared as a VBResizableArrayValue, which
on its own reads as Variant() — the only array type a value type names. A member whose
specification declares an array of something else, such as ValueArray() As Double
(MS-VBAL §6.1.2.6.1.4), states the element type here, and the call site then
Let-coerces an argument to an array of it, the way it would to any other declared type.
Properties
ElementType
The value type of each element of the array.
public Type ElementType { get; }