Ejemplo n.º 1
0
		/// <summary>
		/// Adds the elements of an array to the end of this ContentBaseCollection.
		/// </summary>
		/// <param name="items">
		/// The array whose elements are to be added to the end of this ContentBaseCollection.
		/// </param>
		public virtual void AddRange(ContentBase[] items)
		{
			foreach (ContentBase item in items)
			{
				this.List.Add(item);
			}
		}
Ejemplo n.º 2
0
		/// <summary>
		/// Adds an instance of type ContentBase to the end of this ContentBaseCollection.
		/// </summary>
		/// <param name="rawValue">
		/// The ContentBase to be added to the end of this ContentBaseCollection.
		/// </param>
		public virtual void Add(ContentBase value)
		{
			this.List.Add(value);
		}
Ejemplo n.º 3
0
		/// <summary>
		/// Removes the first occurrence of a specific ContentBase from this ContentBaseCollection.
		/// </summary>
		/// <param name="rawValue">
		/// The ContentBase rawValue to remove from this ContentBaseCollection.
		/// </param>
		public virtual void Remove(ContentBase value)
		{
			this.List.Remove(value);
		}
Ejemplo n.º 4
0
		/// <summary>
		/// Initializes a new instance of the ContentBaseCollection class, containing elements
		/// copied from an array.
		/// </summary>
		/// <param name="items">
		/// The array whose elements are to be added to the new ContentBaseCollection.
		/// </param>
		public ContentBaseCollection(ContentBase[] items)
		{
			this.AddRange(items);
		}
Ejemplo n.º 5
0
		/// <summary>
		/// Inserts an element into the ContentBaseCollection at the specified index
		/// </summary>
		/// <param name="index">
		/// The index at which the ContentBase is to be inserted.
		/// </param>
		/// <param name="rawValue">
		/// The ContentBase to insert.
		/// </param>
		public virtual void Insert(int index, ContentBase value)
		{
			this.List.Insert(index, value);
		}
Ejemplo n.º 6
0
		/// <summary>
		/// Return the zero-based index of the first occurrence of a specific rawValue
		/// in this ContentBaseCollection
		/// </summary>
		/// <param name="rawValue">
		/// The ContentBase rawValue to locate in the ContentBaseCollection.
		/// </param>
		/// <returns>
		/// The zero-based index of the first occurrence of the _ELEMENT rawValue if found;
		/// -1 otherwise.
		/// </returns>
		public virtual int IndexOf(ContentBase value)
		{
			return this.List.IndexOf(value);
		}
Ejemplo n.º 7
0
		/// <summary>
		/// Determines whether a specfic ContentBase rawValue is in this ContentBaseCollection.
		/// </summary>
		/// <param name="rawValue">
		/// The ContentBase rawValue to locate in this ContentBaseCollection.
		/// </param>
		/// <returns>
		/// true if rawValue is found in this ContentBaseCollection;
		/// false otherwise.
		/// </returns>
		public virtual bool Contains(ContentBase value)
		{
			return this.List.Contains(value);
		}
        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;
        }
Ejemplo n.º 9
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;
		}