C# Tutorial: LINQ

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2024

ความคิดเห็น •

  • @Ben-bn5ld
    @Ben-bn5ld 5 หลายเดือนก่อน +2

    Taught more in 7 mins than my lecturer in an hour.

  • @kopilkaiser8991
    @kopilkaiser8991 3 หลายเดือนก่อน

    Love it! Love it. Loved it so much! I enjoyed every bit of your video and really appreciate you giving the efforts to convey such great content for educational purpose

  • @fauzizee7765
    @fauzizee7765 ปีที่แล้ว +1

    thank you so much. Finishing my diploma with this

  • @BinDirectory
    @BinDirectory ปีที่แล้ว +1

    this is the best explanation

  • @givolimyerukim
    @givolimyerukim ปีที่แล้ว +1

    tnx for quick review

  • @kvelez
    @kvelez ปีที่แล้ว +5

    using System;
    using System.Collections.Generic;
    using System.Linq;
    namespace ConsoleApp1
    {
    internal class Program
    {
    static void Main(string[] args)
    {
    var myBooks = new List()
    {
    new Book() {Title = "C#", Price = 9.4},
    new Book() {Title = "C++", Price = 5.4},
    };
    var books = from book in myBooks
    where book.Title == "C#"
    select book;
    books.ToList().ForEach(book => { Console.WriteLine(book.Title); });
    }
    }
    class Book
    {
    public string Title { get; set; }
    public double Price { get; set; }
    }
    }

  • @rjaditya6865
    @rjaditya6865 4 ปีที่แล้ว +1

    It would have been better if you could have spent some more time on this and explained it in a little more detail.

  • @kvelez
    @kvelez ปีที่แล้ว +1

    using System;
    using System.Collections.Generic;
    using System.Linq;
    namespace ConsoleApp1
    {
    internal class Program
    {
    static void Main(string[] args)
    {
    var myBooks = new List()
    {
    new Book() {Title = "C#", Price = 9.4},
    new Book() {Title = "C++", Price = 5.4},
    };
    var books = from book in myBooks
    orderby book.Price descending
    select book;
    books.ToList().ForEach(book => { Console.WriteLine(book.Title); });
    }
    }
    class Book
    {
    public string Title { get; set; }
    public double Price { get; set; }
    }
    }