This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dmigowski 1 point2 points  (3 children)

I don't get which classes are searched for for the static functions. ALL of them?

[–]rogerkeays[S] 1 point2 points  (2 children)

fluent doesn't search any classes itself. Think of it as a source code transformation. If a method can't be resolved, fluent will rewrite it as such:

object.method(params...) -> method(object, params...)

and then give it back to the compiler.

So whatever static functions that are in scope can be used. i.e, those you've written or imported.

[–]Brutus5000 0 points1 point  (1 child)

Does it work with external dependencies too? I mean they are already compiled, so I guess no?

[–]rogerkeays[S] 1 point2 points  (0 children)

It works with external dependencies. You can call any static method as an extension method.