What is the use of struct in C#? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

What is the use of struct in C#?

Struct is a value type and i have seen the syntax of it. I just want to know where do we actually use structs witu real life example.

14th Jul 2019, 12:07 PM
Rohan Rao
Rohan Rao - avatar
2 Antworten
+ 2
Only when we needed primitive logic and used like parameter in many ours methods same sort of simple records which needed users logic (here user is you)
14th Jul 2019, 2:06 PM
Глупый Мишка