Suggestion: Add instance modifiers to C# (and other languages)

Έχουν δημοσιευτεί 11 Μαΐου 16 12:48 μμ | Μπιρμπίλης Γεώργιος 
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 = […]
Δημοσίευση στην κατηγορία: , , , , , , ,

Σχόλια:

Χωρίς Σχόλια
Έχει απενεργοποιηθεί η προσθήκη σχολίων από ανώνυμα μέλη

About Μπιρμπίλης Γεώργιος

Microsoft MVP J# 2004-2010 Borland Spirit of Delphi 2001 http://zoomicon.com

Search

Go

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

Συνδρομές