22 行
567 B
C#
22 行
567 B
C#
using System;
|
|
|
|
namespace ComputeSharp.Tests.Attributes
|
|
{
|
|
/// <summary>
|
|
/// An attribute to use with <see cref="CombinatorialAttribute"/> adding arbitrary input data.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
|
|
public sealed class DataAttribute : Attribute
|
|
{
|
|
public DataAttribute(params object[] data)
|
|
{
|
|
Data = data;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the input data for the current attribute.
|
|
/// </summary>
|
|
public object[] Data { get; }
|
|
}
|
|
}
|