Coding Shorts: IDisposable and IAsyncDisposable in C#

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ม.ค. 2025

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

  • @pateegutee7960
    @pateegutee7960 3 ปีที่แล้ว +3

    Awesome tutorial video as usual. I just became one of your regular follower! I have been using your code samples in my project. Thanks!

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

    Really nice video and an easy to understand explanation of IDisposable

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

    nice and clean

  • @najisheqbal7006
    @najisheqbal7006 2 ปีที่แล้ว

    You are just awsome 😍

  • @prateekbhardwaj9943
    @prateekbhardwaj9943 8 หลายเดือนก่อน +1

    nice and useful thanks

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

    thanks shawn

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

    Great video!
    Could you make a coding short about 'Task.ConfigureAwait(false)'?
    I understand async await, but I still have a hard time understanding when and when not to use ConfigureAwait(false)

    • @swildermuth
      @swildermuth  3 ปีที่แล้ว +2

      Thanks for the idea! Essentially this piece is saying don't throw an exception so that if the disposal fails, it should do it silently as the object is going out of scope anyway.

    • @janhendrikschreier
      @janhendrikschreier 3 ปีที่แล้ว +4

      @@swildermuth I had the same thought as Timlaare when I watched the video. AFAIK ConfigureAwait(false) does much more than just that exception thing, so I'd appreciate a video as well.

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

    Great video.
    I hope you can make video about iDisposoble on winform especially I see lots of questions on stackoverflow on the same topic but I can't find a proper answer.
    I hop the example contained
    main form and child forms
    events
    sql connection
    Thanks in advance and sorry for my English

    • @swildermuth
      @swildermuth  3 ปีที่แล้ว

      Not sure how this is different from what I explained. Anything with IDisposeable must be disposed. Especially true of SqlConnections.

  • @tourdesource
    @tourdesource 2 ปีที่แล้ว

    Video is out of sync with the audio.