'What is C# equivalent of Python's functools.partial?
In python we have a functools.partial mechanism. What would be a valid C# equivalent?
For those unfamiliar with the concept, I am looking for the general case, but it could be anything, even:
def add(a: int, b: int):
return a + b
add_to_one = partial(add, 1)
add_to_one(2) # This will return 3
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
