What is the use of struct in C#? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
+ 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
Глупый Мишка