Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <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;
 }