Check out my web API .net8 full course: (over 14h of content!) fullstackdeveloper.tech/c/web-api-ca My complete Azure DevOps course: fullstackdeveloper.tech/c/complete-azure-devops
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!
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)
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).
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
Check out my web API .net8 full course: (over 14h of content!)
fullstackdeveloper.tech/c/web-api-ca
My complete Azure DevOps course:
fullstackdeveloper.tech/c/complete-azure-devops
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 👍
How do you learn? Practical exercise which website you use
this was a great exercise! Thanks man💐
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!
I want to thank you and really appreciate your method of teaching.
Really learned a lot from this video
thanks for your feedback :)
Thank you a lot. How can I connect this Project to the database and save all contacts?
I also would like to know.
Thanks man i learn alot from this project ♥
Thanks, it was helpful.
Thank you so much sir
very good video sir
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)
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).
Thanks a lot :)
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.
figured it out my namespace is case sensitive and that was giving me the problem.
where is the repo?
Hi. Can u save the records added to a file on the system or all data will be gone upon program exit ?
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
@@AzureFullstackDev Thanks bro. Will give it a shot !
@@AzureFullstackDev Can streamwriter and reader be used to achieve similar result ?
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
@@AzureFullstackDev Thanks again. Need to complete a college project on a phone book system and it saves my day. 👍
Hi!
If i want every contact to have an ID, how would i achive that?
Nice vid!
just extend the Contanct class with Guid Id property, and you could generate that value to be Guid.NewGuid(), once the object is initialized
thanks :D