/// <summary> /// 返回此结构体的拷贝。 /// 注意!这一拷贝是一个尽可能完全的拷贝。 /// </summary> /// <returns>此结构体的深层拷贝</returns> public override object Clone() { FuzzyArray fa = new FuzzyArray(); foreach (object ob in fa) { if (ob is ICloneable) { fa.Add((ob as ICloneable).Clone()); } else { fa.Add(ob); } } return(fa); }
public override void Clone(FuzzyObject source) { base.Clone(source); FuzzyArray S = source as FuzzyArray; if (S != null) { Clear(); foreach (object ob in S) { if (ob is ICloneable) { Add((ob as ICloneable).Clone()); } else { Add(ob); } } } }
public FuzzyArrayDebugView(FuzzyArray hashtable) { this.hashtable = hashtable; }