Click here to Skip to main content
15,889,808 members
Home / Discussions / C#
   

C#

 
GeneralRe: File refuses to delete Pin
Kasun Liyanage1-May-14 2:24
Kasun Liyanage1-May-14 2:24 
QuestionI want to write a tool for work and I don't know if C# is the right tool - If so, I'd love it if someone knew of a sample Pin
Member 1041949730-Apr-14 12:30
Member 1041949730-Apr-14 12:30 
AnswerRe: I want to write a tool for work and I don't know if C# is the right tool - If so, I'd love it if someone knew of a sample Pin
Pete O'Hanlon30-Apr-14 12:44
mvePete O'Hanlon30-Apr-14 12:44 
NewsC# vNext language design - private protected - FamilyAndAssembly Pin
Paulo Morgado30-Apr-14 10:46
professionalPaulo Morgado30-Apr-14 10:46 
GeneralRe: C# vNext language design - private protected - FamilyAndAssembly Pin
Richard Deeming1-May-14 1:03
mveRichard Deeming1-May-14 1:03 
GeneralRe: C# vNext language design - private protected - FamilyAndAssembly Pin
Paulo Morgado1-May-14 6:21
professionalPaulo Morgado1-May-14 6:21 
QuestionString, Why does this work?? Pin
GrooverFromHolland30-Apr-14 8:53
GrooverFromHolland30-Apr-14 8:53 
AnswerRe: String, Why does this work?? Pin
BillWoodruff30-Apr-14 9:58
professionalBillWoodruff30-Apr-14 9:58 
Because the designers of .NET C# decided that the "+" operator between strings ... if the item before the plus-sign is a string ... would automatically invoke conversion of all items to the right of the plus-sign to Type String.

You can see an even more dramatic example of this if you execute:
C#
int v = 1;
Int32 w = 2;
Int64 x = 3;
double y = 4;
float z1 = 5;
Single z2 = 6;
string yString = "" + v + w + x + y + z1 + z2;
Yep, it compiles. So, you can infer that ... given a lack of parentheses) arithmetical operator evaluation for the plus sign is "turned off."

If you think this is kind of strange, you may not be alone Smile | :)

“I speak in a poem of the ancient food of heroes: humiliation, unhappiness, discord. Those things are given to us to transform, so that we may make from the miserable circumstances of our lives things that are eternal, or aspire to be so.” Jorge Luis Borges

GeneralRe: String, Why does this work?? Pin
GrooverFromHolland30-Apr-14 10:16
GrooverFromHolland30-Apr-14 10:16 
GeneralRe: String, Why does this work?? Pin
Rob Philpott1-May-14 1:51
Rob Philpott1-May-14 1:51 
AnswerRe: String, Why does this work?? Pin
Alan N1-May-14 0:58
Alan N1-May-14 0:58 
Questionwriting to a file while Looping Pin
Kasun Liyanage30-Apr-14 7:35
Kasun Liyanage30-Apr-14 7:35 
AnswerRe: writing to a file while Looping Pin
OriginalGriff30-Apr-14 8:07
mveOriginalGriff30-Apr-14 8:07 
GeneralRe: writing to a file while Looping Pin
Kasun Liyanage30-Apr-14 8:31
Kasun Liyanage30-Apr-14 8:31 
GeneralRe: writing to a file while Looping Pin
OriginalGriff30-Apr-14 8:39
mveOriginalGriff30-Apr-14 8:39 
QuestionPower point file formatter Pin
Taimoor Hassun29-Apr-14 18:21
Taimoor Hassun29-Apr-14 18:21 
AnswerRe: Power point file formatter Pin
Richard MacCutchan29-Apr-14 20:26
mveRichard MacCutchan29-Apr-14 20:26 
GeneralRe: Power point file formatter Pin
Taimoor Hassun29-Apr-14 21:00
Taimoor Hassun29-Apr-14 21:00 
GeneralRe: Power point file formatter Pin
Richard MacCutchan29-Apr-14 21:08
mveRichard MacCutchan29-Apr-14 21:08 
GeneralRe: Power point file formatter Pin
Taimoor Hassun30-Apr-14 4:54
Taimoor Hassun30-Apr-14 4:54 
GeneralRe: Power point file formatter Pin
Chris Quinn30-Apr-14 4:57
Chris Quinn30-Apr-14 4:57 
GeneralRe: Power point file formatter Pin
Taimoor Hassun30-Apr-14 6:17
Taimoor Hassun30-Apr-14 6:17 
Questionhelp me Pin
Member 1078417429-Apr-14 14:18
Member 1078417429-Apr-14 14:18 
AnswerRe: help me Pin
Peter Leow29-Apr-14 14:36
professionalPeter Leow29-Apr-14 14:36 
AnswerRe: help me Pin
OriginalGriff29-Apr-14 20:10
mveOriginalGriff29-Apr-14 20:10 

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.