C# From scratch: Phonebook console application

Поділитися
Вставка
  • Опубліковано 12 вер 2024
  • Check out my web API .net8 full course: (over 14h of content!)
    fullstackdevel...
    Free C# for beginners course, in this video we will solve a practical exercise to create a console phonebook application
    Fb: / fullstack-dev-11178269...

КОМЕНТАРІ • 28

  • @AzureFullstackDev
    @AzureFullstackDev  6 місяців тому

    Check out my web API .net8 full course: (over 14h of content!)
    fullstackdeveloper.tech/c/web-api-ca

  • @calaslabkom5935
    @calaslabkom5935 2 роки тому +2

    I'm just learning about C#, thank you for the teachings. I'm still learning how to find efficient logic like the tutorial above. Cool 👍

    • @sarathts9854
      @sarathts9854 2 роки тому

      How do you learn? Practical exercise which website you use

  • @danielbrown7569
    @danielbrown7569 2 роки тому

    Hi, I'm currently working through a CompSci degree and I had struggling to make the an application using a console interface, as all the other videos i could find would have you make a clickable interface. This has been super helpful! Thanks so much!

  • @abhaysuri1681
    @abhaysuri1681 2 роки тому

    I want to thank you and really appreciate your method of teaching.
    Really learned a lot from this video

  • @mbilalgoker
    @mbilalgoker 2 роки тому

    this was a great exercise! Thanks man💐

  • @Natanael_3
    @Natanael_3 2 роки тому +4

    Thank you a lot. How can I connect this Project to the database and save all contacts?

    • @washere3955
      @washere3955 7 місяців тому

      I also would like to know.

  • @AbdulSamad-fs5is
    @AbdulSamad-fs5is 2 роки тому

    Thanks man i learn alot from this project ♥

  • @RishabhKumar-pr8dl
    @RishabhKumar-pr8dl 2 роки тому

    very good video sir

  • @umerfarooq8494
    @umerfarooq8494 2 роки тому

    Thanks, it was helpful.

  • @jorgellanque7704
    @jorgellanque7704 9 місяців тому

    where is the repo?

  • @rabiakainat7865
    @rabiakainat7865 Рік тому

    Thank you so much sir

  • @pampos123
    @pampos123 2 роки тому

    Thanks a lot :)

  • @MegaPancakes11
    @MegaPancakes11 2 роки тому +1

    Hi!
    If i want every contact to have an ID, how would i achive that?
    Nice vid!

    • @AzureFullstackDev
      @AzureFullstackDev  2 роки тому +2

      just extend the Contanct class with Guid Id property, and you could generate that value to be Guid.NewGuid(), once the object is initialized

  • @jetpuckrat9819
    @jetpuckrat9819 2 роки тому

    Im getting an error when i try to call any method in the main class because the methods are non static but main is a static class
    now the question is how did you not get that error I'm really confused now
    for example when I call the method "DisplayAllContacts" I get that error
    (CS0120 An object reference is required for the non-static field, method, or property)

    • @ragtop63
      @ragtop63 Рік тому +1

      The error is telling you that you need to create an object reference before you can call a method from the class. You can fix that by either making the class static or by instantiating the class and then using the instance reference to call the method(s).

  • @chacosavage
    @chacosavage 2 роки тому

    Hello I'm getting the Compiler Error CS0246 when I'm trying to create the new PhoneBook. I don't understand what I'm doing wrong.

    • @chacosavage
      @chacosavage 2 роки тому

      figured it out my namespace is case sensitive and that was giving me the problem.

  • @eve.483
    @eve.483 2 роки тому

    thanks :D

  • @davidchang5862
    @davidchang5862 3 роки тому +1

    Hi. Can u save the records added to a file on the system or all data will be gone upon program exit ?

    • @AzureFullstackDev
      @AzureFullstackDev  3 роки тому +2

      Yes You can.
      It would require some more logic to first serialize the values as json for example And then when the application restarts deserialize and load It into memory

    • @davidchang5862
      @davidchang5862 3 роки тому

      @@AzureFullstackDev Thanks bro. Will give it a shot !

    • @davidchang5862
      @davidchang5862 3 роки тому

      @@AzureFullstackDev Can streamwriter and reader be used to achieve similar result ?

    • @AzureFullstackDev
      @AzureFullstackDev  3 роки тому

      You can use those two to save to a file And read from the file
      But for serialization take a look at 'Newtonsoft.Json' package

    • @davidchang5862
      @davidchang5862 3 роки тому +1

      @@AzureFullstackDev Thanks again. Need to complete a college project on a phone book system and it saves my day. 👍