PreferredShortNameAttribute
This attribute can be applied to class to give a hint for generating
variable name in node to code. For example, generating variable "vec"
for Vector.
using System;
namespace Autodesk.DesignScript.Runtime
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class PreferredShortNameAttribute : Attribute
{
public string PreferredShortName { get; set; }
public PreferredShortNameAttribute(string preferredShortName)
{
PreferredShortName = preferredShortName;
}
}
}