Skip to content

Add string syntax attribute to .AppendFormat() #139

@Atulin

Description

@Atulin

Using [StringSyntax] attribute like so:

public void AppendFormat<T1>([StringSyntax(StringSyntaxAttribute.CompositeFormat)]string format, T1 arg1)

would make it so that IDEs can provide better syntax highlighting:

Image

Docs: https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.codeanalysis.stringsyntaxattribute?view=net-10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions