Anonymous Wolf

My feedback

  1. 4 votes
    Vote
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Visual Studio IDE » IDE and Editor  ·  Flag idea as inappropriate…  ·  Admin →
    Anonymous Wolf shared this idea  · 
  2. 70 votes
    Vote
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    5 comments  ·  Visual Studio IDE » IDE and Editor  ·  Flag idea as inappropriate…  ·  Admin →
    Anonymous Wolf supported this idea  · 
  3. 3,388 votes
    Vote
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    34 comments  ·  Visual Studio IDE » Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
    Anonymous Wolf commented  · 

    I see the point in removing the "new" constraint in favor of declaring static methods in interfaces. But as long as we have constructors the way we have them, it seems to be more consistent to have "new" constraints, and of course to extend them to typed ones.

    While we're at it: I'd prefer to replace

    T var = new T(args)

    by

    T var = T.Create(args)

    In this form, enabling static members in interfaces would be the consistent thing to do.

    -----

    And/or, we could give interfaces the ability to declare constructors.

  4. 11 votes
    Vote
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    4 comments  ·  Visual Studio IDE » Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
    Anonymous Wolf commented  · 

    Well, at least the editor could suggest to add this automatically every time you start to type in a member declaration.

    Visual Basic modules (the equivalent of static classes) don't have this problem.

    Besides, once you have an extension method in a static class, you can't make it instanciable again.

    Anonymous Wolf supported this idea  · 
  5. 5 votes
    Vote
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    1 comment  ·  Visual Studio IDE » Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
    Anonymous Wolf commented  · 

    I'd like to have things like the following too:

    void ExampleMethod<T, TLoadable>(XElement data)
    where TLoadable : ILoadable<T>
    {
    T stuff = TLoadable.Load(data);
    // do nice things with stuff
    }

    Anonymous Wolf supported this idea  · 

Feedback and Knowledge Base