Table of Contents

Method ConvertAttributeArgumentCollection

Namespace
Xunit.Sdk
Assembly
xunit.v3.common.dll

ConvertAttributeArgumentCollection(IReadOnlyCollection<CustomAttributeTypedArgument>, Type)

Converts an argument collection from an attribute initializer into an array of the raw values.

public static Array ConvertAttributeArgumentCollection(IReadOnlyCollection<CustomAttributeTypedArgument> collection, Type elementType)

Parameters

collection IReadOnlyCollection<CustomAttributeTypedArgument>

The attribute argument collection.

elementType Type

The element type of the array.

Returns

Array

The collection of the raw attribute values.