473,394 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

@ sign prefacing string value in debugging "watch"?

For some string values, I see an @ character pre-pended to the string data
itself. IOW,

mystring=@"12345Test"

whereas othertimes I don't see the @.

What is the significance of that character in this environment?

TIA

Harry
Nov 16 '05 #1
2 1811
Harry Whitehouse <ha***@envmgr.com> wrote:
For some string values, I see an @ character pre-pended to the string data
itself. IOW,

mystring=@"12345Test"

whereas othertimes I don't see the @.

What is the significance of that character in this environment?


It means that any backslash characters displayed aren't used for escape
purposes. For instance:

@"hello\tworld" is hello backslash tworld
whereas
"hello\tworld" is hello tab world

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #2
Jon -- How to I suppress that behavior? The string I'm forming is escaped
binary ("\x1b\xFF"). With the @ in front, I loss the intended escape
sequences.

Best

Harry

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
Harry Whitehouse <ha***@envmgr.com> wrote:
For some string values, I see an @ character pre-pended to the string data itself. IOW,

mystring=@"12345Test"

whereas othertimes I don't see the @.

What is the significance of that character in this environment?


It means that any backslash characters displayed aren't used for escape
purposes. For instance:

@"hello\tworld" is hello backslash tworld
whereas
"hello\tworld" is hello tab world

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jack | last post by:
I would like to run the debugger with no breakpoints and have it automatically break if a particular variable I am watching is modified. Is this doable?
0
by: Dave | last post by:
Hi everyone, (I already posted this to the VS.NET IDE news group without any responses, so I'm attempting one more time in this group) The issue I'm having is occuring in the IDE of VS.NET...
3
by: Gordon Mohr | last post by:
I'd like to set up a bit of javascript to be run when other javascript loads a new page via something like { top.window.location.href = newLocation }, and have access to the new value. (For...
6
by: DraguVaso | last post by:
Hi, In my application, on some given actions while debugging in Visual Studio, I suddenly get a "System.ComponentModel.Win32Exception was unhandled" Message="Error creating window handle."...
4
by: Harry Whitehouse | last post by:
For some string values, I see an @ character pre-pended to the string data itself. IOW, mystring=@"12345Test" whereas othertimes I don't see the @. What is the significance of that...
7
by: Brad | last post by:
When debugging my current web project, in VS2003, I found I had lost the ability to drill down on watch objects in the Watch Window; I could only view the single value specific watch objects. ...
4
by: Robert | last post by:
Hello. I have tried to remove the char "\" from a string that I am building in codebehind. to be used in a script tag. I have tried adding (char)34 to the string instead of the escape...
3
by: Feng | last post by:
I am debugging my code from VS.Net and need to watch my console.wirteline messages as I run the code. The problem is, as soon as my code starts running in debugging mode, the console window...
42
by: Martin Jørgensen | last post by:
Hi, I'm trying to move a matlab program into c language. For those who knows matlab, this is the line I want to program in c: hx(1:nx,1:ny) = 0; % nx=10, ny=10 It works on a 2-dimensional...
15
by: Sri Ragaventhirar | last post by:
char *s = "Google" Where this "Google" will be stored? Why it can't be changed? like s='h'; -this is giving error please explain this.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.