tags:

views:

133

answers:

4

Hi

During .Net interview, I was asked what is function augmentation. Never heard it and couldn't find anything related.

Any ideas what that is in .Net?

AJ

+2  A: 

They probably were referring to extension methods?

CesarGon
Whatever "function augmentation" is (and I'm not claiming to know), the English interpretation of the phrase is enhancing functions. I would consider extension methods and enhancement of types, not of functions.
Jason
I totally agree.
CesarGon
+1  A: 

maybe it is just Fluent Interface and he wanted to you infer what he mean

Michael Buen
I was thinking on similar lines too. Like chaining of functions..
AJ
+2  A: 

My guess is partial methods.

-- Edit:

Though it's worth noting, it's not a familiar term in the .NET world.

Noon Silk
that's a possibility.
AJ
A: 

I'm just throwing this out wildly, but I bet he meant "how do you write a method that accepts a lambda function as its argument?"

In other words, he was looking for the use of the Func<> delegates.

Randolpho