Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/10 00:44:01 (14 years ago)
Author:
swagner
Message:

Sorted usings and removed unused usings in entire solution (#1094)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Collections/ICollectionBase.cs

    r2768 r4068  
    11using System;
    2 using System.Collections;
    32using System.Collections.Generic;
    4 using System.IO;
    5 namespace Netron.Diagramming.Core
    6 {
     3namespace Netron.Diagramming.Core {
     4  /// <summary>
     5  /// Describes the CollectionBase collection.
     6  /// </summary>
     7  /// <typeparam name="T"></typeparam>
     8  public interface ICollectionBase<T> : ICollection<T>, IList<T> {
     9    #region Events
    710    /// <summary>
    8     /// Describes the CollectionBase collection.
     11    /// Occurs when the collection is cleared.
    912    /// </summary>
    10     /// <typeparam name="T"></typeparam>
    11     public interface ICollectionBase<T> : ICollection<T>, IList<T>
    12     {
    13         #region Events
    14         /// <summary>
    15         /// Occurs when the collection is cleared.
    16         /// </summary>
    17         event EventHandler OnClear;
    18         /// <summary>
    19         /// Occurs when an item is added to the collection.
    20         /// </summary>
    21         event EventHandler<CollectionEventArgs<T>> OnItemAdded;
    22         /// <summary>
    23         /// Occurs when en item is removed from the collection.
    24         /// </summary>
    25         event EventHandler<CollectionEventArgs<T>> OnItemRemoved;
    26         #endregion
     13    event EventHandler OnClear;
     14    /// <summary>
     15    /// Occurs when an item is added to the collection.
     16    /// </summary>
     17    event EventHandler<CollectionEventArgs<T>> OnItemAdded;
     18    /// <summary>
     19    /// Occurs when en item is removed from the collection.
     20    /// </summary>
     21    event EventHandler<CollectionEventArgs<T>> OnItemRemoved;
     22    #endregion
    2723
    28         #region Properties
    29      
    30         #endregion
     24    #region Properties
    3125
    32         #region Methods
    33         /// <summary>
    34         /// Adds the range of items to the collection.
    35         /// </summary>
    36         /// <param name="items">The items.</param>
    37         void AddRange(CollectionBase<T> items);
    38         /// <summary>
    39         /// Copies this instance.
    40         /// </summary>
    41         /// <returns></returns>
    42         CollectionBase<T> Copy();
    43         /// <summary>
    44         /// Creates a deep copy of this instance.
    45         /// </summary>
    46         /// <returns></returns>
    47         CollectionBase<T> DeepCopy();
    48         /// <summary>
    49         /// Uses the given predicate to test the existence of a certain item in the collection.
    50         /// </summary>
    51         /// <param name="predicate">The predicate.</param>
    52         /// <returns></returns>
    53         bool Exists(Predicate<T> predicate);
    54         /// <summary>
    55         /// Finds the specified predicate.
    56         /// </summary>
    57         /// <param name="predicate">The predicate.</param>
    58         /// <returns></returns>
    59         T Find(Predicate<T> predicate);
    60         /// <summary>
    61         /// Uses the given Action to act on the collection items
    62         /// </summary>
    63         /// <param name="action">The action.</param>
    64         void ForEach(Action<T> action);
    65        
    66      
    67         ICollection<T> RemoveAll(Predicate<T> predicate);
     26    #endregion
    6827
    69         /// <summary>
    70         /// Converts the collection to an array.
    71         /// </summary>
    72         /// <returns></returns>
    73         T[] ToArray();
    74         /// <summary>
    75         /// Specific copy/paste utility function.
    76         /// </summary>
    77         /// <returns></returns>
    78         System.IO.MemoryStream ToStream();
    79         /// <summary>
    80         /// Returns a string representation of the collection.
    81         /// </summary>
    82         /// <param name="format">The format.</param>
    83         /// <param name="formatProvider">The format provider.</param>
    84         /// <returns></returns>
    85         string ToString(string format, IFormatProvider formatProvider);
    86         /// <summary>
    87         /// Returns a string representation of the collection.
    88         /// </summary>
    89         /// <returns></returns>
    90         string ToString();
    91         /// <summary>
    92         /// Checks, using the given predicate, whether a certain property is true for all items in the collection.
    93         /// </summary>
    94         /// <param name="predicate">The predicate.</param>
    95         /// <returns></returns>
    96         bool TrueForAll(Predicate<T> predicate);
    97         #endregion
     28    #region Methods
     29    /// <summary>
     30    /// Adds the range of items to the collection.
     31    /// </summary>
     32    /// <param name="items">The items.</param>
     33    void AddRange(CollectionBase<T> items);
     34    /// <summary>
     35    /// Copies this instance.
     36    /// </summary>
     37    /// <returns></returns>
     38    CollectionBase<T> Copy();
     39    /// <summary>
     40    /// Creates a deep copy of this instance.
     41    /// </summary>
     42    /// <returns></returns>
     43    CollectionBase<T> DeepCopy();
     44    /// <summary>
     45    /// Uses the given predicate to test the existence of a certain item in the collection.
     46    /// </summary>
     47    /// <param name="predicate">The predicate.</param>
     48    /// <returns></returns>
     49    bool Exists(Predicate<T> predicate);
     50    /// <summary>
     51    /// Finds the specified predicate.
     52    /// </summary>
     53    /// <param name="predicate">The predicate.</param>
     54    /// <returns></returns>
     55    T Find(Predicate<T> predicate);
     56    /// <summary>
     57    /// Uses the given Action to act on the collection items
     58    /// </summary>
     59    /// <param name="action">The action.</param>
     60    void ForEach(Action<T> action);
    9861
    99        
    100        
    101     }
     62
     63    ICollection<T> RemoveAll(Predicate<T> predicate);
     64
     65    /// <summary>
     66    /// Converts the collection to an array.
     67    /// </summary>
     68    /// <returns></returns>
     69    T[] ToArray();
     70    /// <summary>
     71    /// Specific copy/paste utility function.
     72    /// </summary>
     73    /// <returns></returns>
     74    System.IO.MemoryStream ToStream();
     75    /// <summary>
     76    /// Returns a string representation of the collection.
     77    /// </summary>
     78    /// <param name="format">The format.</param>
     79    /// <param name="formatProvider">The format provider.</param>
     80    /// <returns></returns>
     81    string ToString(string format, IFormatProvider formatProvider);
     82    /// <summary>
     83    /// Returns a string representation of the collection.
     84    /// </summary>
     85    /// <returns></returns>
     86    string ToString();
     87    /// <summary>
     88    /// Checks, using the given predicate, whether a certain property is true for all items in the collection.
     89    /// </summary>
     90    /// <param name="predicate">The predicate.</param>
     91    /// <returns></returns>
     92    bool TrueForAll(Predicate<T> predicate);
     93    #endregion
     94
     95
     96
     97  }
    10298}
Note: See TracChangeset for help on using the changeset viewer.