现在的位置: 首页 > 综合 > 正文

C# Call another constructor in one constructor

2013年08月12日 ⁄ 综合 ⁄ 共 174字 ⁄ 字号 评论关闭

To call one C# constructor from another, before the body of the constructor, use either:

: base (parameters)

to call a constructor in the base class; or:

: this (parameters)

to call a constructor in this class.

抱歉!评论已关闭.