我使用的開源項目。在這個項目中有功能。
public virtual ICollection<Customer> AffiliatedCustomers
{
get
{
return _affiliatedCustomers ?? (_affiliatedCustomers = new List<Customer>());
}
protected set { _affiliatedCustomers = value; }
}
我不明白「get」是什麼意思。 你能解釋一下這個功能嗎?