摘要:
若您的 .NET 物件只是要存放「數值、字串」等資料,可改用 struct (結構) 這種輕量級的 class。其行為與 class 相似,亦可實作 interface,但不具備如 OOP 的「繼承」等較複雜的功能,亦即它不能有父類或子類。而由於 struct 被設計為 Value Type,因此在效能的表現上會比 class 來得出色。 阅读全文
posted @ 2008-06-28 08:28
WizardWu
阅读(574)
评论(1)
推荐(0)
浙公网安备 33010602011771号