Click here to Skip to main content
14,361,357 members
   

C#

 
GeneralRe: Generics overload Pin
Richard Deeming2-Aug-19 4:38
mveRichard Deeming2-Aug-19 4:38 
GeneralRe: Generics overload Pin
Bernhard Hiller4-Aug-19 22:50
memberBernhard Hiller4-Aug-19 22:50 
AnswerRe: Generics overload Pin
Gerry Schmitz2-Aug-19 6:36
mveGerry Schmitz2-Aug-19 6:36 
QuestionEmbedding resources with static directories Pin
Member 87627471-Aug-19 21:32
memberMember 87627471-Aug-19 21:32 
Questionadding double quote around variable add one backslash which causing issue Pin
Mou_kol31-Jul-19 6:54
memberMou_kol31-Jul-19 6:54 
AnswerRe: adding double quote around variable add one backslash which causing issue Pin
OriginalGriff31-Jul-19 7:18
protectorOriginalGriff31-Jul-19 7:18 
GeneralRe: adding double quote around variable add one backslash which causing issue Pin
Mou_kol31-Jul-19 22:25
memberMou_kol31-Jul-19 22:25 
AnswerRe: adding double quote around variable add one backslash which causing issue Pin
Richard Deeming31-Jul-19 8:46
mveRichard Deeming31-Jul-19 8:46 
If you're generating XML, then it would be better to actually generate XML. There are many "special" characters which need to be encoded for use in XML.
string abc = new System.Xml.Linq.XElement("Broker",
    new System.Xml.Linq.XAttribute("Code", strbrokercode),
    new System.Xml.Linq.XAttribute("IsAllowEstimate", IsAllowEstimate),
    new System.Xml.Linq.XAttribute("ReviseDate", ReviseDate),
    new System.Xml.Linq.XAttribute("BrokerEarnings", BrokerEarnings),
    new System.Xml.Linq.XAttribute("BrokerName", BrokerName)
).ToString();


Mou_kol wrote:
i am seeing many extra back slash has been added to string variable
It's more likely that you're seeing the debugger output, which shows you how the string would be declared in C#. It doesn't actually add the backslash characters to the string.

If you click on the "magnifying glass" button to the left of the string value in the data tip[^], you'll be able to view the actual string value.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: adding double quote around variable add one backslash which causing issue Pin
Mou_kol31-Jul-19 22:30
memberMou_kol31-Jul-19 22:30 
GeneralRe: adding double quote around variable add one backslash which causing issue Pin
Richard Deeming1-Aug-19 2:30
mveRichard Deeming1-Aug-19 2:30 
GeneralRe: adding double quote around variable add one backslash which causing issue Pin
Mou_kol1-Aug-19 6:44
memberMou_kol1-Aug-19 6:44 
QuestionIs the "using" statement really a good idea? Pin
MSBassSinger30-Jul-19 8:19
professionalMSBassSinger30-Jul-19 8:19 
AnswerRe: Is the "using" statement really a good idea? Pin
Richard Deeming30-Jul-19 8:42
mveRichard Deeming30-Jul-19 8:42 
GeneralRe: Is the "using" statement really a good idea? Pin
MSBassSinger30-Jul-19 9:05
professionalMSBassSinger30-Jul-19 9:05 
GeneralRe: Is the "using" statement really a good idea? Pin
Richard Deeming30-Jul-19 9:15
mveRichard Deeming30-Jul-19 9:15 
GeneralRe: Is the "using" statement really a good idea? Pin
MSBassSinger30-Jul-19 9:26
professionalMSBassSinger30-Jul-19 9:26 
AnswerRe: Is the "using" statement really a good idea? Pin
Dave Kreskowiak30-Jul-19 9:03
mveDave Kreskowiak30-Jul-19 9:03 
GeneralRe: Is the "using" statement really a good idea? Pin
MSBassSinger30-Jul-19 9:07
professionalMSBassSinger30-Jul-19 9:07 
GeneralRe: Is the "using" statement really a good idea? Pin
Dave Kreskowiak30-Jul-19 9:21
mveDave Kreskowiak30-Jul-19 9:21 
GeneralRe: Is the "using" statement really a good idea? Pin
MSBassSinger30-Jul-19 9:47
professionalMSBassSinger30-Jul-19 9:47 
GeneralRe: Is the "using" statement really a good idea? Pin
Dave Kreskowiak30-Jul-19 14:16
mveDave Kreskowiak30-Jul-19 14:16 
AnswerRe: Is the "using" statement really a good idea? Pin
OriginalGriff30-Jul-19 9:06
protectorOriginalGriff30-Jul-19 9:06 
GeneralRe: Is the "using" statement really a good idea? Pin
MSBassSinger30-Jul-19 9:19
professionalMSBassSinger30-Jul-19 9:19 
GeneralRe: Is the "using" statement really a good idea? Pin
OriginalGriff30-Jul-19 10:44
protectorOriginalGriff30-Jul-19 10:44 
GeneralRe: Is the "using" statement really a good idea? Pin
MSBassSinger30-Jul-19 10:50
professionalMSBassSinger30-Jul-19 10:50 

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.