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

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

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

Συνδρομές