コード例 #1
0
		/// <summary>
		/// Adds the elements of another ContentBaseCollection to the end of this ContentBaseCollection.
		/// </summary>
		/// <param name="items">
		/// The ContentBaseCollection whose elements are to be added to the end of this ContentBaseCollection.
		/// </param>
		public virtual void AddRange(ContentBaseCollection items)
		{
			foreach (ContentBase item in items)
			{
				this.List.Add(item);
			}
		}
コード例 #2
0
		public WireTypes.ContentBaseCollection GetAllNamespaces()
		{
			WireTypes.ContentBaseCollection contentBases = new WireTypes.ContentBaseCollection();

			foreach (ContentBase cb in TheFederation.ContentBases)
			{
        WireTypes.ContentBase wireFormat = new WireTypes.ContentBase(cb); 
				contentBases.Add(wireFormat);
			}

			return contentBases;
		}
コード例 #3
0
		/// <summary>
		/// Initializes a new instance of the ContentBaseCollection class, containing elements
		/// copied from another instance of ContentBaseCollection
		/// </summary>
		/// <param name="items">
		/// The ContentBaseCollection whose elements are to be added to the new ContentBaseCollection.
		/// </param>
		public ContentBaseCollection(ContentBaseCollection items)
		{
			this.AddRange(items);
		}
コード例 #4
0
			/// <summary>
			/// 
			/// </summary>
			/// <param name="collection"></param>
			public Enumerator(ContentBaseCollection collection)
			{
				this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator();
			}
コード例 #5
0
        public WireTypes.ContentBaseCollection GetAllNamespaces()
        {
            WireTypes.ContentBaseCollection contentBases = new WireTypes.ContentBaseCollection();

            foreach (NamespaceManager namespaceManager in Federation.NamespaceManagers)
            {
                WireTypes.ContentBase wireFormat = new WireTypes.ContentBase(namespaceManager);
                contentBases.Add(wireFormat);
            }

            return contentBases;
        }