コード例 #1
0
        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);
        }
コード例 #2
0
 public SubscriptionCollection(SubscriptionCollection subscriptions)
 {
     this.m_subscriptions = new ArrayList();
     if (subscriptions != null)
     {
         foreach (Subscription subscription in subscriptions)
         {
             this.Add(subscription);
         }
     }
 }