Christophe PLAT

Results 33 comments of Christophe PLAT

Relevant C# documentation: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/object-and-collection-initializers#collection-initializers > Collection initializers let you specify one or more element initializers when you initialize a collection type that implements `IEnumerable` and has `Add` with the appropriate...

Indeed, it's not a duplicate. The parsing of the lambda expression is correct, but the parameters of the parent expression are converted to variables: they can't be passed to the...

Let me explain how lambda expressions are parsed, and how I fixed #200. When parsing the inner lambda, it has to be converted to a delegate (i.e. an instance of...

I have an idea that might work, but I'm not yet sure it will. The idea is to create a dictionary of all the captured variables, and access it when...

I have a working prototype, that also fixes the limitation I highlighted in #200. It still needs some work, but I might wait until your PR is merged because it...

@Vah94 you said it stopped working after the migration to 2.9.8, did it work with a previous version of DynamicExpresso? If you could find the last version where it worked,...

Hi @Vah94, happy new year! Just to confirm, it worked with 2.9.3, but failed with 2.9.4?

In C#, anonymous types are internal types, which mean they're only visible to the assembly in which they're defined. In your scenario, the defining assembly (yours) is not the same...

It's not valid C#: `335555555555333333333` is too large to be represented by a C# integer, and the C# compiler will reject it with error CS1021 Integral constant is too large....

I had a look, and it seems quite difficult: the anonymous type has to be defined at runtime, and to do that, you need to add a custom dynamic assembly...