{
this.label = label;
this.uri = uri;
}
public string Label
{
get
{
return label;
}
}
public Uri Uri
{
get
{
return uri;
}
}
替換Collections.Add()方法,修改Count屬性返回count變量值。
///
/// 增加一個Count實例變量
///
public void Add(Collection collction)
{
count++;
}
再次生成這個項目,輸出結果顯示成功,如圖12所示。
文章來源于領測軟件測試網 http://www.kjueaiud.com/