'How can i make an inner join work in linq c# [closed]

I have used this for the inner join

 var join = products.Join(
                            purchase,
                            
                            products => products.IdProd,
                            sales => sales.IdProd,
                            
                            
                            (products, sales) => new
                            {
                                Description = products.Description,
                                IdSale = sales.IdSale,
                                Cant= sales.Cant

                            });

        foreach (var obj in join)
        {

            Console.WriteLine("{0} - {2}", obj.Description, obj.IdSale,obj.Cant);
        }

My output: My output is the follwing:

How can I make the join print the 3 values that I need?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source