Home
Options

[Feature Request] Support "StringSyntaxAttribute" for Intellisense

It would be nice if LinqPad Intellisense would recognize the StringSyntaxAttribute for parameters and display Intellisense according to the supplied attribute for example like Visual Studio does:

Comments

  • Options

    Which of these StringSyntaxAttribute options do you find useful, or is it just Regex?

  • Options
    edited August 2023
    public sealed class StringSyntaxAttribute : Attribute
    {
        public const string CompositeFormat = "CompositeFormat";
    
        public const string DateOnlyFormat = "DateOnlyFormat";
    
        public const string DateTimeFormat = "DateTimeFormat";
    
        public const string EnumFormat = "EnumFormat";
    
        public const string GuidFormat = "GuidFormat";
    
        public const string Json = "Json";
    
        public const string NumericFormat = "NumericFormat";
    
        public const string Regex = "Regex";
    
        public const string TimeOnlyFormat = "TimeOnlyFormat";
    
        public const string TimeSpanFormat = "TimeSpanFormat";
    
        public const string Uri = "Uri";
    
        public const string Xml = "Xml";
    }
    

    I find DateTimeFormat and Json also pretty useful to me.

  • Options

    @JoeAlbahari said:
    Which of these StringSyntaxAttribute options do you find useful, or is it just Regex?

    Primarily I would like to have
    -RegEx
    -Date/Time
    -Numeric
    -Json

Sign In or Register to comment.