Σεπτέμβριος 2015 - Δημοσιεύσεις

Suggestion: Allow local nested methods inside any code block
05 Σεπτεμβρίου 15 09:44 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
It would be nice if one could define methods inside other methods so that they are only accessible in the context of the parent method. In Pascal one could define them at the start of the parent method, before any other commands, but after local variables block, so they could also access the variables of […]
Δημοσίευση στην κατηγορία: , , , , , , ,
Suggestion: Define scoped variable at C# switch conditional statement
01 Σεπτεμβρίου 15 08:47 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Trying to reuse the conditional value of a switch statment in C# at the fallback “default” code block of it, and looking up if that was supported in C#, I found the a related discussion at: http://stackoverflow.com/questions/29628507/c-sharp-get-switch-value-if-in-default-case I added a comment there and also elaborated it a bit more at a suggestion (PLEASE VOTE IT […]
Δημοσίευση στην κατηγορία: , , , , , ,
HowTo: List all known color names and find name of given color at WPF
01 Σεπτεμβρίου 15 06:11 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
This is my answer at http://stackoverflow.com/questions/4475391/wpf-silverlight-find-the-name-of-a-color Modified answer from Thomas Levesque to populate the Dictionary only when 1st needed, instead of taking the cost at startup (going to use at speech recognition-driven turtle graphics, so that user can pronounce known color names to change the turtle’s pen color) //Project: SpeechTurtle (http://SpeechTurtle.codeplex.com) //Filename: ColorUtils.cs //Version: 20150901 […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , ,

Search

Go

Ιστορικό Δημοσιεύσεων

Συνδρομές