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

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 = […]
Δημοσίευση στην κατηγορία: , , , , , , ,
Suggestion: If and while etc. clauses should accept bool? in C#
10 Δεκεμβρίου 15 04:33 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
At TrackingCam app (http://TrackingCam.codeplex.com) I have the following WPF code, where cbTrackingPresenter is a CheckBox control defined in my MainWindow’s XAML: private void cbTrackingPresenter_Checked(object sender, RoutedEventArgs e) {       if (cbTrackingPresenter.IsChecked == true)           StartTrackingPresenter();       else           StopTrackingPresenter(); } Note the (redundant in my opinion) == true pattern used there. If the == true […]
Δημοσίευση στην κατηγορία: , , , , , ,
Suggestion: Add Fullscreen and Pin buttons on Titlebar of Windows
09 Δεκεμβρίου 15 05:53 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Here are some suggestions I’ve sent via Windows Insider feedback app for Windows 10: 1) Add the Fullscreen button to titlebar of ALL windows, not just the ones of Windows 8.1 Store apps. UWP (Universal Windows Platform) apps don’t seem to show zoom button on their titlebar (to make it and any borders autodisappear and […]
Δημοσίευση στην κατηγορία: , , , , ,
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: Visual Studio should offer to implement callbacks
30 Νοεμβρίου 15 06:01 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I type-in new PropertyMetadata(OnCenterXPropertyChanged) but since I haven’t yet implemented On…, I get a suggestion by the IDE to implement it but it suggests to add field, property or read-only field, not to implement the callback for me with the given name. It can find the method signature needed from the delegate that PropertyMetadata (one […]
Δημοσίευση στην κατηγορία: , , , , , ,
Suggestion: Initialize multiple fields to same value at constructor call in C#
30 Νοεμβρίου 15 12:45 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
When using http://github.com/zoomicon/ZUI I would like to write: FloatingWindow window = new FloatingWindow() {   Content = display,   Title = IconText = title }; but I have to write: FloatingWindow window = new FloatingWindow() {   Content = display,   Title = title,   IconText = title }; instead. For consistency, I’d prefer that […]
Δημοσίευση στην κατηγορία: , , , , , ,
Suggestion: on Duck Typing and C#/.NET
16 Νοεμβρίου 15 03:32 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
My comment at: http://visualstudio.uservoice.com/forums/121579-visual-studio-2015/suggestions/4272089-support-implicit-interfaces-for-code-reuse It would be nice indeed if one could define at the client object’s side a static interface that is a subset of the methods of a server (or serving if you prefer) object (it is only the view of the server that the client has gained knowledge of) that has been […]
Δημοσίευση στην κατηγορία: , , , , , , ,
Suggestion: Add support for constants in C# (and VB.net etc.) interfaces
16 Νοεμβρίου 15 12:52 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
It is rather unfortunate that C# doesn’t support constants in interfaces, whereas Java does. If IL (intermediate language) that C# usually compiles to (when not using AOT that is like in .NET Native or Xamarin iOS) doesn’t support this, then the compiler could create a special sealed class to carry the constants. Then, wherever they’re […]
Δημοσίευση στην κατηγορία: , , , , , , ,
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

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

Συνδρομές