C# Tutorial: Explaining 'namespace' in C# | Why 'namespace' is used

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

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

  • @yaswanthsai9894
    @yaswanthsai9894 Год назад

    Very Good Explanation.

  • @jcgongavoe337
    @jcgongavoe337 Год назад +1

    Wrong, it's to prevent class name collision or same-name-repetitions since you may import hundreds of classes in your project

  • @ayyanpathan3749
    @ayyanpathan3749 Год назад +4

    Watch full. Video still don't get what are u saying

    • @nooberiazi
      @nooberiazi Год назад +2

      same. namespace is namespace is what I learned.

  • @TZR122
    @TZR122 7 месяцев назад +1

    Question is clear but where is the answer? 😑

  • @god_father9421
    @god_father9421 Год назад +2

    why is it necessary?

    • @CodingSimplified
      @CodingSimplified  Год назад

      As you can see from video, it's necessary to differentiate between packages. It helps when you import files or packages. Please watch video again & let us know in case you've more questions.

    • @dansmith7418
      @dansmith7418 Год назад

      @@CodingSimplified Coming from a python background, but what makes this different to filename in python where if in the same folder I could import {filename} and then if I wanted to structure it I could put it into a subfolder and import {Sub Folder}.{filename}
      Seems like an unnecessary step, but just something that is required for c#?

  • @umaimamujahid8551
    @umaimamujahid8551 Год назад

    I can understand ❤