Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: int to string Pin
Abhinav S25-May-13 9:16
Abhinav S25-May-13 9:16 
Questionhow can i get the attributes in my class dynamically Pin
neodeaths24-May-13 8:55
neodeaths24-May-13 8:55 
AnswerRe: how can i get the attributes in my class dynamically Pin
OriginalGriff24-May-13 9:17
mveOriginalGriff24-May-13 9:17 
AnswerRe: how can i get the attributes in my class dynamically Pin
BillWoodruff24-May-13 15:40
professionalBillWoodruff24-May-13 15:40 
QuestionStore Double Quote in string Variable Pin
M Riaz Bashir24-May-13 3:06
M Riaz Bashir24-May-13 3:06 
AnswerRe: Store Double Quote in string Variable Pin
DaveyM6924-May-13 3:13
professionalDaveyM6924-May-13 3:13 
AnswerRe: Store Double Quote in string Variable Pin
Simon_Whale24-May-13 3:14
Simon_Whale24-May-13 3:14 
AnswerRe: Store Double Quote in string Variable Pin
OriginalGriff24-May-13 3:53
mveOriginalGriff24-May-13 3:53 
To add to what Davey and Simon have said, '\' is an "escape" character, which tells the compiler that the following character is a special, rather than a standard character. A '\' followed by double quote is a double quote character rather than the end of the string, and other sequences have different meaning, such as \\ for a '\' character, \n for a newline and \t for a tab. You can also use:
C#
string myValue = @"aa[a""a]aa";
The '@' turns off recognition of the '\' as a special, allowing you to type a single '\' character if you are entering a path:
C#
string mypath = "D:\\Temp\\myfile.txt";

Or
C#
string mypath = @"D:\Temp\myfile.txt";
When you use a '@' prefix, you use tqo double quote characters together to insert a single double quote character in the string.
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

Questionhow can i create a general log for different classes Pin
neodeaths23-May-13 22:47
neodeaths23-May-13 22:47 
SuggestionRe: how can i create a general log for different classes Pin
Richard MacCutchan24-May-13 0:03
mveRichard MacCutchan24-May-13 0:03 
AnswerRe: how can i create a general log for different classes Pin
Abhinav S24-May-13 1:19
Abhinav S24-May-13 1:19 
AnswerRe: how can i create a general log for different classes Pin
Keith Barrow24-May-13 2:44
professionalKeith Barrow24-May-13 2:44 
AnswerRe: how can i create a general log for different classes Pin
BillWoodruff24-May-13 3:57
professionalBillWoodruff24-May-13 3:57 
GeneralRe: how can i create a general log for different classes Pin
neodeaths24-May-13 8:50
neodeaths24-May-13 8:50 
AnswerRe: how can i create a general log for different classes Pin
jschell24-May-13 12:20
jschell24-May-13 12:20 
QuestionBusiness Application in VS2010 Pin
picasso223-May-13 17:10
picasso223-May-13 17:10 
AnswerRe: Business Application in VS2010 Pin
Richard MacCutchan24-May-13 0:06
mveRichard MacCutchan24-May-13 0:06 
Questioncrash using a delay on input Pin
Member 1002965523-May-13 13:29
Member 1002965523-May-13 13:29 
AnswerRe: crash using a delay on input Pin
Dave Kreskowiak23-May-13 15:41
mveDave Kreskowiak23-May-13 15:41 
GeneralRe: crash using a delay on input Pin
Member 1002965523-May-13 16:00
Member 1002965523-May-13 16:00 
GeneralRe: crash using a delay on input Pin
Member 1007416123-May-13 22:44
Member 1007416123-May-13 22:44 
GeneralRe: crash using a delay on input Pin
Bernhard Hiller24-May-13 1:56
Bernhard Hiller24-May-13 1:56 
GeneralRe: crash using a delay on input Pin
Member 1007416124-May-13 3:19
Member 1007416124-May-13 3:19 
GeneralRe: crash using a delay on input Pin
Member 1007416124-May-13 6:21
Member 1007416124-May-13 6:21 
GeneralRe: crash using a delay on input Pin
Dave Kreskowiak24-May-13 6:32
mveDave Kreskowiak24-May-13 6:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.