Binary in C#: Storing and Displaying Binary Values in 10 minutes or less.

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • We are continuing our series on understanding binary in C# with lesson number three. In this video, we are going to store and display binary values in C# in 10 minutes or less.
    Full Training Courses: IAmTimCorey.com
    Source Code: leadmagnets.ap...

Комментарии • 15

  • @lyesmakhloufi5494
    @lyesmakhloufi5494 2 дня назад +1

    It would be interesting to cite real-life use cases in the next episodes. Great video though

  • @timothytorpy4837
    @timothytorpy4837 2 дня назад

    Nice explanation:)

  • @xavierbatlle1828
    @xavierbatlle1828 2 дня назад

    Easy! 😉

  • @adam-xt8te
    @adam-xt8te 2 дня назад

    I use BitArray

  • @princefowzan
    @princefowzan 2 дня назад +1

    What is the point of storing binary values, what is the real world use of it? ☺ ☺

    • @adam-xt8te
      @adam-xt8te 2 дня назад +2

      My example: Clients list with pagination. Changing page causes load another set of data. There's column with checkboxes used for selecting clients. BitArray helped me caching selections low cost.

    • @IAmTimCorey
      @IAmTimCorey  2 дня назад +2

      Anything where you need high efficiency will be a potential candidate. For instance, using an Int32 to store the equivalent of 32 boolean values at once. Unity uses this technique when identifying layers. Each layer is a separate flag. It is incredibly efficient compared to 32 separate variables.

    • @kewqie
      @kewqie 2 дня назад +1

      Another case is when using bit flags, easier to see the values as 0001, 0010, 0100, 1000... instead of 1, 2, 4, 16..., especially when combining them, 1011 is easier to understand than 19.

  • @tarunrk4099
    @tarunrk4099 2 дня назад

    ineffable..!