Timeline for Tic Tac Toe game in C#
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 14, 2015 at 8:27 | comment | added | Bob | @BCdotWEB Yes, I am aware that both sides have their reasons for using what they use. I'm just saying that it's not really an established convention amongst all C# programmers, and should not be presented as such. | |
Nov 14, 2015 at 8:11 | comment | added | BCdotWEB | @Bob I use it whenever possible to express that I mean an empty string, that this isn't some unintentional error. | |
Nov 14, 2015 at 3:10 | comment | added | Bob |
string.Empty vs String.Empty vs "" is rather arguable -- there is no clear consensus. However, there are certain situations where you must use one or the other: only "" works where a compile-time constant is required and only String.Empty (or string.Empty ) works where compatibility with unmanaged code is required.
|
|
Nov 14, 2015 at 1:22 | comment | added | BCdotWEB | @BlueRaja-DannyPflughoeft True, I was planning on adding more but I had some other things to do first. | |
Nov 13, 2015 at 21:50 | comment | added | BlueRaja - Danny Pflughoeft |
The methods all already accept the button as a parameter (the sender ).
|
|
Nov 13, 2015 at 20:35 | comment | added | Michael McGriff |
@TomL instead of double clicking each button, you can make one event that all of the buttons point to. You can then handle which button actually was clicked by the sender argument in the event signature.
|
|
Nov 13, 2015 at 19:52 | comment | added | Tom L | Oh, I wanted to make a loop for the buttons, but I use Windows Form Application, so I just double click a button and it generates that bit, but when I remove that part, it gives me an error in designer view. | |
Nov 13, 2015 at 16:26 | history | answered | BCdotWEB | CC BY-SA 3.0 |