i was going thru an column in a book, which says:-
For both classes and structs, you use the keyword new to declare an instance. This keyword creates the object and initializes it.

Now if we use new operator for structures, then why is it not stored on heap???? I mean is it a value type if we also create an object for it???

Please help.....

Recommended Answers

All 2 Replies

Is this link useful?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.