DynamoVisualProgramming.DynamoServices by Autodesk

<PackageReference Include="DynamoVisualProgramming.DynamoServices" Version="2.6.0.8406" />

 AllowArrayPromotionAttribute

This attribute is applied to a function that has one or more parameters as lists. It can be used to control arguments to the function from being promoted to arrays or arrays of higher dimension when the VM tries to do method resolution and match argument(s) to the function parameter(s).
using System; namespace Autodesk.DesignScript.Runtime { [AttributeUsage(AttributeTargets.Method)] public class AllowArrayPromotionAttribute : Attribute { public bool IsAllowed { get; set; } public AllowArrayPromotionAttribute() { IsAllowed = true; } public AllowArrayPromotionAttribute(bool isAllowed) { IsAllowed = isAllowed; } } }