Καλώς ορίσατε στο dotNETZone.gr - Σύνδεση | Εγγραφή | Βοήθεια
σε

 

Αρχική σελίδα Ιστολόγια Συζητήσεις Εκθέσεις Φωτογραφιών Αρχειοθήκες

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

Όλες οι Ετικέτε... » Posts » Suggestion   (RSS)
  • Suggestion: add optional “where” clause to “foreach” statement in C#

    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 ...
    Δημοσιεύτηκε στο George Birbilis' blog (Weblog) από το μέλος birbilis στις Μαΐου 16, 2016
  • Suggestion: Add instance modifiers to C# (and other languages)

    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 ...
    Δημοσιεύτηκε στο George Birbilis' blog (Weblog) από το μέλος birbilis στις Μαΐου 11, 2016
  • Suggestion: If and while etc. clauses should accept bool? in C#

    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) ...
    Δημοσιεύτηκε στο George Birbilis' blog (Weblog) από το μέλος birbilis στις Δεκεμβρίου 10, 2015
  • Suggestion: Add Fullscreen and Pin buttons on Titlebar of Windows

    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 […]
    Δημοσιεύτηκε στο George Birbilis' blog (Weblog) από το μέλος birbilis στις Δεκεμβρίου 9, 2015
  • Suggestion: C# static extension methods invokable on class type too

    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 ...
    Δημοσιεύτηκε στο George Birbilis' blog (Weblog) από το μέλος birbilis στις Δεκεμβρίου 9, 2015
  • Suggestion: Visual Studio should offer to implement callbacks

    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 ...
    Δημοσιεύτηκε στο George Birbilis' blog (Weblog) από το μέλος birbilis στις Νοεμβρίου 30, 2015
  • Suggestion: Initialize multiple fields to same value at constructor call in C#

    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, ...
    Δημοσιεύτηκε στο George Birbilis' blog (Weblog) από το μέλος birbilis στις Νοεμβρίου 30, 2015
  • Suggestion: on Duck Typing and C#/.NET

    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 ...
    Δημοσιεύτηκε στο George Birbilis' blog (Weblog) από το μέλος birbilis στις Νοεμβρίου 16, 2015
  • Suggestion: Add support for constants in C# (and VB.net etc.) interfaces

    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 ...
    Δημοσιεύτηκε στο George Birbilis' blog (Weblog) από το μέλος birbilis στις Νοεμβρίου 16, 2015
  • Suggestion: Introduce .= operator for C#

    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, ...
    Δημοσιεύτηκε στο George Birbilis' blog (Weblog) από το μέλος birbilis στις Νοεμβρίου 11, 2015
  • Suggestion: Define once and reuse result type of method inside its body

    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 ...
    Δημοσιεύτηκε στο George Birbilis' blog (Weblog) από το μέλος birbilis στις Νοεμβρίου 10, 2015
Με χρήση του Community Server (Commercial Edition), από την Telligent Systems