开发者

In C#, when should I use a struct and when should I use a class? [duplicate]

This question already has answers here: Closed 12 years ago.

Possible Duplicate:

When to use struct in C#?

And conversely, when shouldn't I u开发者_运维技巧se either?


You should use a class unless you have a very specific reason to use a struct. I realize it's a little bit trite, but it's true (trite and true! hah! right?)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜