How come that in C# you can make Primitive Datatypes?
What kind of practical uses does this functionality have?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume you mean
struct. There are various uses:PointorComplexValuethat doesn’t warrant the overhead of an object per instance : it is just a (preferably-immutable) set of values that are a compositeIt is, however, very rare to declare a
structin C#; i.e. vanishingly rare. Nobody is making you do it, and if you don’t like them : don’t create any.