Παρουσίαση με Ετικέτες

Suggestion: add optional “where” clause to “foreach” statement in C#
16 Μαΐου 16 11:33 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Wouldn’t it be nice if I could use in C# the following syntax? for (SomeType repeaterVariable       in SomeEnumerable       where someBooleanExpressionOfRepeaterVariable)   doSomethingUsingRepeaterVariable; e.g. use this one: instead of this one: BTW, if you wonder what FixTime does, it prepends 0: to time strings to make sure they are of format h:m:s.f Have added […]
Δημοσίευση στην κατηγορία: , , , , , ,
Suggestion: Add instance modifiers to C# (and other languages)
11 Μαΐου 16 12:48 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I’d like to be able to do someFunctionReturningY(x){ somePropertyOfY=4; … }.DoSomething(); It should also support casting without needing parentheses in the following type of statement: Z zzz = (Z)functionReturningY{somePropertyOfZ=…; … };   The same pattern should work for enums too apart from object instances. It is inspired by initializers in C#, e.g. var x = […]
Δημοσίευση στην κατηγορία: , , , , , , ,

Search

Go

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

Συνδρομές