ArrayList类型数据作为类的成员如何初始化的问题
原文件:
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace SearchWebPage
{
class WebPage
{
private bool _downloaded = false;
private string _url = " ";
private string _content = " ";
private ArrayList _inlinks = null;
private ArrayList _friendlinks = null;
private ArrayList _outlinks = null;
/// <summary>
/// 默认构造函数
/// </summary>
public WebPage()
{
////
//_inlinks = new ArrayList();
//_friendlinks = new ArrayList();
//_outlinks = new ArrayList();
}
public WebPage(bool downloaded, string url, string content, ArrayList inlinks, ArrayList friendlinks, ArrayList outlinks)
{
this._downloaded = downloaded;
this._url = url;
this._content = content;
this._inlinks = inlinks;
this._friendlinks = friendlinks;
this._outlinks = outlinks;
}
public bool downloaded
{
get { return downloaded; }
set { _downloaded = value; }
}
public string url
{
get { retur