Resharper not as Sharp as Usual
-
In the following chunk of code:
service.SetClosingResultOfAtePolicy(this, terminationType);
The suggestion was "Add argument name 'terminationType' (Alt+Enter)", yielding:
service.SetClosingResultOfAtePolicy(this, terminationType: terminationType);
Because that really helps improve clarity, right?
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
-
In the following chunk of code:
service.SetClosingResultOfAtePolicy(this, terminationType);
The suggestion was "Add argument name 'terminationType' (Alt+Enter)", yielding:
service.SetClosingResultOfAtePolicy(this, terminationType: terminationType);
Because that really helps improve clarity, right?
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
But of course! Not it is twice as clear as was before!
Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
-
In the following chunk of code:
service.SetClosingResultOfAtePolicy(this, terminationType);
The suggestion was "Add argument name 'terminationType' (Alt+Enter)", yielding:
service.SetClosingResultOfAtePolicy(this, terminationType: terminationType);
Because that really helps improve clarity, right?
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
-
What's the full signature of SetClosingResultOfAtePolicy(...) though?
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
Er, not sure how that is relevant, but...
public void SetClosingResultOfAtePolicy(AtePolicy policy, TerminationType terminationType)
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
-
Er, not sure how that is relevant, but...
public void SetClosingResultOfAtePolicy(AtePolicy policy, TerminationType terminationType)
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
-
In the following chunk of code:
service.SetClosingResultOfAtePolicy(this, terminationType);
The suggestion was "Add argument name 'terminationType' (Alt+Enter)", yielding:
service.SetClosingResultOfAtePolicy(this, terminationType: terminationType);
Because that really helps improve clarity, right?
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
Was that a suggestion, or just a context action? If you hit Alt+Enter, R# will usually list everything you might want to do with the code under the cursor. That doesn't necessarily mean it thinks you should do it. :)
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Was that a suggestion, or just a context action? If you hit Alt+Enter, R# will usually list everything you might want to do with the code under the cursor. That doesn't necessarily mean it thinks you should do it. :)
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
I wouldn't mind, but it consistently puts up a squiggly line under the code, and I've conditioned myself to treat those as warnings - i.e. something to be eliminated.
"If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.