C
C#3w ago
Faker

How to interpret IDE suggestions like method signatures

Hello guys, when using Rider, sometimes, their are some suggested arguments that can be used for a particular function. For example consider the picture uploaded. I'm trying to use a LINQ expression. I want to be able to interpret the message shown so that I can quickly remember what the arguments refer to. Can someone explain how do I do that please, like I know func<> refers to a method type/delegate but for the this keyword in this context etc... I'm a bit lost
No description
5 Replies
Jimmacle
Jimmacle3w ago
this means the method was defined as an extension method for that type
333fred
333fred3w ago
Sorry, it's pretty unclear to me what you're asking us to say beyond "practice"
Jimmacle
Jimmacle3w ago
you don't have to remember it because it's implicitly passed to the method as part of the extension method syntax sugar for the other types there isn't really practice involved, you just need to know what types you're working with if you're unfamiliar with one check the docs for it
Mierk
Mierk3w ago
What @Jimmacle mentioned. You basically just have to write something like: collection.Where(entry => entry.Passes) Which is translated to those signatures you mention.
Faker
FakerOP3w ago
oh ok I see, just read a bit on that noted, like we just search for "overloads of where clause", something like that ?

Did you find this page helpful?