@
is not related to any method.
It means that you don’t need to escape special characters in the string following to the symbol:
@"c:\temp"
is equal to
"c:\\temp"
Such string is called ‘verbatim’ or @-quoted. See MSDN.
More Related Contents:
- Making a List in C# with three flexible elements in one datatype
- How can I convert String to Int?
- How do I get a consistent byte representation of strings in C# without manually specifying an encoding?
- .NET String.Format() to add commas in thousands place for a number
- In C#, should I use string.Empty or String.Empty or “” to intitialize a string?
- C# string replace does not actually replace the value in the string [duplicate]
- Easiest way to read from and write to files
- Easiest way to split a string on newlines in .NET?
- How do I replace the *first instance* of a string in .NET?
- What are Automatic Properties in C# and what is their purpose?
- Convert a list to a string in C#
- Best way to repeat a character in C#
- Are there any Fuzzy Search or String Similarity Functions libraries written for C#? [closed]
- Get the index of the nth occurrence of a string?
- How to compare Unicode characters that “look alike”?
- Getting hash of a list of strings regardless of order
- Best way to split string into lines
- Memory Efficiency and Performance of String.Replace .NET Framework
- Parse C# string to DateTime
- Easier way of writing null or empty?
- What’s a good way of doing string templating in .NET?
- Fastest way to remove white spaces in string
- Why is Main method private?
- Convert binary string into integer
- DateTime conversion from string C#
- Why only literal strings saved in the intern pool by default?
- Remove characters after specific character in string, then remove substring?
- Checking for null before ToString()
- How to sort list of Ip Addresses using c#
- splitting a string based on multiple char delimiters