public void Remove(AutoUpdateChangeSummary summary)
		{
			if (summary == null)
				throw new ArgumentNullException("summary");

			if (this.Contains(summary))
				base.InnerList.Remove(summary);
		}
		public void AddRange(AutoUpdateChangeSummary[] summaries)
		{
			if (summaries == null)
				throw new ArgumentNullException("summaries");

			foreach(AutoUpdateChangeSummary summary in summaries)
				this.Add(summary);
		}	
		public void Add(AutoUpdateChangeSummary summary)
		{
			if (summary == null)
				throw new ArgumentNullException("summary");

			if (this.Contains(summary))
				throw new AutoUpdateChangeSummaryAlreadyExistsException(summary);

			base.InnerList.Add(summary);
		}
		public bool Contains(AutoUpdateChangeSummary summary)
		{
			if (summary == null)
				throw new ArgumentNullException("summary");

			foreach(AutoUpdateChangeSummary existingSummary in base.InnerList)
				if (string.Compare(existingSummary.Id, summary.Id, true) == 0)
					return true;

			return false;
		}
        public void Remove(AutoUpdateChangeSummary summary)
        {
            if (summary == null)
            {
                throw new ArgumentNullException("summary");
            }

            if (this.Contains(summary))
            {
                base.InnerList.Remove(summary);
            }
        }
        public void Add(AutoUpdateChangeSummary summary)
        {
            if (summary == null)
            {
                throw new ArgumentNullException("summary");
            }

            if (this.Contains(summary))
            {
                throw new AutoUpdateChangeSummaryAlreadyExistsException(summary);
            }

            base.InnerList.Add(summary);
        }
        public bool Contains(AutoUpdateChangeSummary summary)
        {
            if (summary == null)
            {
                throw new ArgumentNullException("summary");
            }

            foreach (AutoUpdateChangeSummary existingSummary in base.InnerList)
            {
                if (string.Compare(existingSummary.Id, summary.Id, true) == 0)
                {
                    return(true);
                }
            }

            return(false);
        }
Exemplo n.º 8
0
 public AutoUpdateChangeSummaryAlreadyExistsException(AutoUpdateChangeSummary summary) : base("A summary with the same Id already exists.")
 {
     _summary = summary;
 }
		public AutoUpdateChangeSummaryAlreadyExistsException(AutoUpdateChangeSummary summary) : base("A summary with the same Id already exists.")
		{
			_summary = summary;
		}