I suggest you ...

0 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
birbilis shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...
  • birbilis commented  ·   ·  Flag as inappropriate

    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 at the URL mentioned above


    Ideally, usage of such operators should lead to compiling – whether is is via JIT (Just in Time) or AOT (Ahead of Time) compilation – into more optimized native code, but I’m not sure if C# compilers are exploting that optimization opportunity.

Feedback and Knowledge Base