/// <summary> /// Removes the alternative data stream with the specified name. /// </summary> /// <param name="name">The name of the string to remove.</param> public void Remove(string name) { StreamInfo FSI = new StreamInfo(this, name, 0); int i = base.List.IndexOf(FSI); if (i > -1) base.List.RemoveAt(i); }
/// <summary> /// Returns the index of the specified <see cref="StreamInfo"/> object in the collection. /// </summary> /// <param name="fsi">The object to find.</param> /// <returns>The index of the object, or -1.</returns> public int IndexOf(StreamInfo fsi) { return base.List.IndexOf(fsi); }
/// <summary> /// Add an alternative data stream to this file. /// </summary> /// <param name="name">The name for the stream.</param> /// <returns>The index of the new item.</returns> public int Add(string name) { StreamInfo FSI = new StreamInfo(this, name, 0); int i = base.List.IndexOf(FSI); if (i == -1) i = base.List.Add(FSI); return i; }