类可以嵌套么?

ahking 2002-06-17 08:59:36
类可以嵌套么?以下语句是什么意思?
protected override void Dispose ( bool disposing )
{
if ( disposing )
{
if ( components != null )
{
components.Dispose ( ) ;
}
}
base.Dispose ( disposing ) ;
}
...全文
26 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
limenghao2 2002-06-17
  • 打赏
  • 举报
回复
当然可以嵌套啊
saucer 2002-06-17
  • 打赏
  • 举报
回复
>>类可以嵌套么?
yes

Dispose is used to release resources held by the object instances before the instances are garbage collected. "components" is probably is an inner member object, "base.Dispose" calls parent class' Dispose method.

110,538

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧