public virtual object Clone() { SubscriptionCollection subscriptions = (SubscriptionCollection)base.MemberwiseClone(); subscriptions.m_subscriptions = new ArrayList(); foreach (Subscription subscription in this.m_subscriptions) { subscriptions.m_subscriptions.Add(subscription.Clone()); } return(subscriptions); }
public SubscriptionCollection(SubscriptionCollection subscriptions) { this.m_subscriptions = new ArrayList(); if (subscriptions != null) { foreach (Subscription subscription in subscriptions) { this.Add(subscription); } } }