In C #. What does the @ symbol do?

Possible duplicate:
What is @ before the string for .NET?

Sometimes I saw a sample code that will have a "@" along with a string. eg:

    EntityConnectionStringBuilder entityBuilder = new EntityConnectionStringBuilder();
    entityBuilder.Provider = "System.Data.SqlServerCe.3.5";
    entityBuilder.ProviderConnectionString = providerString;
    entityBuilder.Metadata = @"res://*/App_Data.data.csdl|res://*/App_Data.data.ssdl|res://*/App_Data.data.msl";

On line 4, what is the use of "@"? I am trying to remove this, it still works.

+3
source share
2 answers

, @ "c:\Foo", . : " , ". , ( ) . ( ") , , , @" " "" " - "". Verbatim, , , . XML SQL , ( ) .

+3

\ escape- .

+1

Source: https://habr.com/ru/post/1778119/


All Articles