Skip to content

Escaping for string interpolation #540

Open

Description

@VISTALL
using System;

class Example {
    static void Main() {
        int b = 1;
        string str = $"test {{";
        Console.WriteLine(str);


        str = $"test }}";
        Console.WriteLine(str);


        str = $"test {{}}";
        Console.WriteLine(str);
    }

    private static String c(String str) {
        return str;
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions