#nullable enable namespace Bts.DataStreamCore; using System; [AttributeUsage(AttributeTargets.Property)] public class StreamArgumentAttribute : Attribute { public StreamArgumentAttribute(params string[] names) { Names = names; RegexNames = Array.Empty(); } public StreamArgumentAttribute(WellKnownStreamArgumentType wellKnownType, params string[] names) { WellKnownType = wellKnownType; Names = names; RegexNames = Array.Empty(); } public string[] Names { get; } public string[] RegexNames { get; set; } public int Position { get; set; } = -1; public WellKnownStreamArgumentType WellKnownType { get; } public bool IsRequired { get; set; } public bool AllowCommaSeparatedAliases { get; set; } = true; public Type? ParserType { get; set; } }