/// <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); } }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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; }
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; }