Group by in LINQ

Absolutely – you basically want: Or as a non-query expression: Basically the contents of the group (when viewed as an IEnumerable<T>) is a sequence of whatever values were in the projection (p.car in this case) present for the given key. For more on how GroupBy works, see my Edulinq post on the topic. (I’ve renamed … Read more

What is the yield keyword used for in C#?

The yield contextual keyword actually does quite a lot here. The function returns an object that implements the IEnumerable<object> interface. If a calling function starts foreaching over this object, the function is called again until it “yields”. This is syntactic sugar introduced in C# 2.0. In earlier versions you had to create your own IEnumerable … Read more

What is the difference between declarative and imperative paradigm in programming?

A great C# example of declarative vs. imperative programming is LINQ. With imperative programming, you tell the compiler what you want to happen, step by step. For example, let’s start with this collection, and choose the odd numbers: With imperative programming, we’d step through this, and decide what we want: Here, we’re saying: Create a … Read more

Virustotal Trapmine suspicious.low.ml.score

From yesterday, when I scan my exe file that written and built by myself on Virustotal, I get this Trapmine suspicious.low.ml.score The full result can be found here https://www.virustotal.com/#/file/c2c22c7d4769104982ce9dcfc70819ec1ee6fee0ad2a0d428c5e8b2b077b518d/detection It’s very simple C# app, should I worry about anything?