C# Expert OOP - Lecture 6: How to Dynamically Save/Load Objects with JSON, User Defined Classes

preview_player
Показать описание
#ObjectOrientedProgramming #CSharp #Software #Engineering #Programming #Course
Hello everyone. My name is Furkan Gözükara, and I am a Computer Engineer Ph.D. Assistant Professor at the Software Engineering department.

In this course, starting from ground to the advanced level Object Oriented Programming concept and the C# programming language will be taught.

In Lecture 6 the following topics are covered:

* What are fields and properties in classes and what are their differences
* How to build your custom classes
* How to initialize your custom class with set values
* How to assign values to instance of an object of your custom class
* How to compose custom method extensions to default object types (e.g. string, int, etc.) and to your custom classes (cars)
* How to use try catch to catch different type of exceptions and handle them differently
* How to use Set and Get methods to differently handle assignment and reading of a value for the properties of user defined classes
* How to use switch, case, var, static, const, readonly, File.WriteAllText, stringbuilder, File.ReadAllLines , File.ReadLines , string.Split(string) , string.Join methods
* What are the differences of constant, readonly and static variables
* How to save custom class object into a text file and how to load that object from text file with primitive methodology
* JSON (JavaScript Object Notation)
* How to utilize Json by using Newtonsoft.Json .NET library to dynamically save any object into a text file and load dynamically object from that text file with easiness and effectiveness

If you want to start learning programming or develop your other Software Engineering related skills you can watch our below full courses:

notice : automatic subtitle timing success
Рекомендации по теме
Комментарии
Автор

i learned in this lecture:
*Differences between fields and properties
*How works getter and setter
*How we use a Hash method
*How we create read only objects and how they behave
*Differences between constant, readonly and static
*What is JSON and it’s benefits.
*How we built our custom methods to save and load objects into a text file
*Feature of extension methods
*How we use JSON to save and load objects into a text file
*Why we prefer JSON to save and load objects into a text file
*Examples of try-catch and switch-case blocks
195050009

thehistoryarchiveai
Автор

we learnt
1. JSON
2. Saving object to a file
3. Reading that file back
4. getter and setter
5. diffrence between fields and properties
6. Custom Method Extensions
7. readonly and constant diffrence
thank you for your effort professor
195050902

ammarhanyezeldinabdelrazik
Автор

I have learnt in this video:
- Differences between fields and properties
- How works getter and setter
- How we use a Hash method
- How we create read only objects and how they behave
- Differences between constant, readonly and static
- What is JSON and it’s benefits.
- How we built our custom methods to save and load objects into a text file
- Feature of extension methods
- How we use JSON to save and load objects into a text file
- Why we prefer JSON to save and load objects into a text file
- Examples of try-catch and switch-case blocks
Thanks for lesson
185050002

ahmetpinar
Автор

In this lesson, I learned about JSON and how to use it, classes, read-only, and const

175050004

cantutar
Автор

I learnt from this video:

- Differences between fields and properties
- Custom class
- Hash
- JSON and benefits
- Switch cases
- Difference between readonly and const
- Save and load a text file

175050008

kadirdurmaz
Автор

195050003

In this video:

- We learnt about the differences between fields and properties: basically properties are used to see and change fields(which are in most cases private).
- We made examples of creating custom extension methods for our public cars class.
- We learnt how to use JSON to save objects, and how to reload them.
- We learnt about the differences between readonly and const: const variables have to be assigned a value when we declare them, but the readonly variables can be assigned a value within constructor of the class.
- We also made examples about switch case, and try catch.

Thank you for your time.

bugracangundogan
Автор

175050010

In this lesson;
- A class enables you to create your custom types by grouping variables of other types, methods, and events.
- In C#, a class can be defined by using the class keyword.
- In object-oriented programming, a class defines some properties, fields, events and methods.
- There’s one more trick you can use when you want to save data and that is JSON.
- save object to file
- We also made examples about switch case, and try catch.
- get and set methods

Thanks for this video

yagmur
Автор

From this video we learned;
-Getter and setter
-Const type
-Json
-Create extension method
-Create custom classes
-Switch method


195050027

burhanyasbay
Автор

165050012
I learned:
- Differences between Fields and Properties
- How works getter?
- How works setter?
- How to compose custom method extensions?
- What is JSON and how can we use json?

- What is SHA256 and how to create it?
- How do we save the object to the file?
- How do we use the hash method?
- What is json and how to use it?
- How to use try catch to catch?

Thank you for lesson.

ekremsahin
Автор

i learned :

-Differences between fields and properties
-How works getter and setter
-How we use a Hash method
-How we create read only objects and how they behave
-Differences between constant, readonly and static
-We see how to save a text and load from file.
-What is json.
-We save files in json formatting.

195050012

dodontkar
Автор

205060801
This lesson's main goal was to learn to save and load objects. We learned:
* Differences between Fields and properties
* Getters and setters and how to modify them
* Manipulating custom classes
* Switch statement
* Try and catch to handle exceptions
* SHA256 encryption
* Using readonly, static, and const methods
* Using JSON (JavaScript Object Notation) which is a faster way than classic save and load

wojciechkudlicki
Автор

In this lecture, we started with saving the object state into a file and read it back. Then, we talked about what is JSON ( JavaScript Object Notation ) and how to use JSON. After that, we take a look at what is Constant ( Converts nothing more but constant ) and how to use it in the project. Also, we learned the differences between " readonly " and " const ". Thank you for the lesson.

165050007

berkayoztekin
Автор

175050011
In this lesson we learned:
- build custom classes
- the differences of constant, readonly and static
- what is JSON and how can we use json
- how to compose custom method extensions
- how to use Set and Get methods
- how to use try catch to catch
Thanks for the lesson.

efemertkocak
Автор

175050007

What I learned in this lesson:

- save object to file
- what is JSON and how can we use JSON
- extension methods
- readonly, constand differences between each other

Thanks for lesson.

mehmetoksuz
Автор

I have learnt in this lecture:
*Switch and cases structure
*set and get mothods usage as well try catch usage and some other methods
* save objects with JSON .

195050021

yusufcan
Автор

Differences between fields and properties
custom classes (build, initialize, assign values..)
difference between read-only and constant variables
+ try and catch, set and get methods
usage of Javascript Object Nation

Raanem Dahbi - 195050904
Thank you for your time.

raanemdahbi
Автор

185050004

ın this lesson ı learned

-creating a custom class
- random classroom use
-If, try and catch clauses
- dictionary class usage
- write the contents of a column to the file
- What is json and how to use it

zeynepbaykal
Автор

185050008

I learned in this lesson,


What is receiver and tuner, how does it work?
How do we use the hash method?
What is JSON and what are its benefits?
How do we save the object to the file?
Try-catch and switch-case block example
Differences between constant, readonly and static?
Differences between read-only and const?

thanks for the lesson

selinokten
Автор

1950500024
In this lesson i learnt:
Const type
Json usage
Read-only
Extension methods

Thanks for your time !

welcome to shbcf.ru