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

Suggestion: C# static extension methods invokable on class type too
09 Δεκεμβρίου 15 05:30 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
it would be nice if C# supported syntax like: public static DependencyProperty Register(static DependencyProperty x, string name, Type propertyType, Type ownerType, FrameworkPropertyMetadata typeMetadata) that is static extension methods for classes, that can be invoked without a class instance (just with the class type), apart from normal extension methods that can be invoked on a class […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
Suggestion: Introduce .= operator for C#
11 Νοεμβρίου 15 05:45 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
It would be nice if one could write in C# (and maybe in other .NET languages too): s = s.SomeMethodOfS(…)… as s .= SomeMethodOfS(…)… that is to have a .= operator, similar to += and other shorthand experession operators see screenshot for an example usecase from the opensource project FoscamController     Ideally, usage of […]
Δημοσίευση στην κατηγορία: , , , , , ,
Suggestion: Define once and reuse result type of method inside its body
10 Νοεμβρίου 15 11:58 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
It would be nice if one could rewrite this C# snippet: public SortedDictionary<string, UObject> GetObjects() {   SortedDictionary<string, UObject> result = new SortedDictionary<string, UObject>();   using (ReadTransaction xact = namingSchema.ReadTransaction())     foreach (ObjectName.RowType row in ObjectName.object_name_(xact))       result.Add(row.name_, row.object_);   return result; }   in a more concise form like:   public T GetObjects() where T=SortedDictionary<string, UObject> {   T result […]
Δημοσίευση στην κατηγορία: , , , , , , , , ,

Search

Go

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

Συνδρομές