Skip to main content
10 votes
1 answer
549 views

If a lambda is capture-less, its closure type has conversion operator to function pointer. For example, auto l = []{}; using F = decltype(+l); //pointer to function type constexpr F p = l; And if a ...
Fedor's user avatar
  • 25.4k
-2 votes
2 answers
142 views

In a recent script I wrote I use the keyboard module for hotkeys but I decided to store all arguments in an array where I would use a loop to call them all. When I attempted to use any hotkey I ...
user31716681's user avatar
2 votes
1 answer
135 views

I have an IQueryable expression: ... Where(x => Convert.ToInt64(x.string_param) > Convert.ToInt64(string_const)) ... How to build this throught expression tree? Kind of: var left = ...? var ...
Алексей Корсак's user avatar
4 votes
2 answers
140 views

I have a program that I would like to build in Visual Studio 2026, but struggle with the errors appearing. One simplified piece of code is as follows: void f(const void*) {} int main() { ...
Fedor's user avatar
  • 25.4k
0 votes
0 answers
99 views

I am using the Bulk Update APIs, part of EF Core like the ExecuteUpdateAsync() functions, to perform updates, and I am passing in a lambda for my valueExpression. I am wondering if the evaluation of ...
bssskpbmb-629801's user avatar
-1 votes
0 answers
58 views

In an effort to simplify some of my code, I tried using a switch expression to create a selector for sorting on an EF Core 10 query: Expression<Func<Foo, IComparable>> selector = sortField ...
theodinspire's user avatar
-1 votes
0 answers
41 views

I'm working on a project where I make a call using my lambda function which sends a request to client and in return I get a downloadable file (this whole task will be executed only once every 24hrs), ...
Vaibhav Singh's user avatar