1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using System.Collections.Generic;
- namespace IPLocationServerTool.Model
- {
- /// <summary>
- /// Represents a collection which is readonly to outside of objects that can be individually accessed by index
- /// </summary>
- /// <typeparam name="T"></typeparam>
- public interface INotificationList<T> : IEnumerable<T>
- {
- #region Data Members and Events
- // Data Members
- /// <summary>
- /// Gets the number of elements contained in the <see cref="IReadableList{T}"/>
- /// </summary>
- int Count { get; }
- /// <summary>
- /// Gets the element at the specified index.
- /// </summary>
- /// <param name="index"></param>
- /// <returns></returns>
- T this[int index] { get; }
- bool IsEmpty { get; }
- #endregion Data Members and Events
- #region Operations
- /// <summary>
- /// Determines whether the <see cref="IReadableList{T}"/> contains a specific value.
- /// </summary>
- /// <param name="item"></param>
- /// <returns></returns>
- bool Contains(T item);
- /// <summary>
- /// Searches for the specified object
- /// and returns the zero-based index of the first occurrence within the entire <see cref="IReadableList{T}"/>.
- /// </summary>
- /// <param name="item"></param>
- /// <returns>
- /// The zero-based index of the first occurrence of item within the entire <see cref="IReadableList{T}"/>, if found;
- /// otherwise, –1.</returns>
- int IndexOf(T item);
- ///// <summary>
- ///// Gets the first element, if list is empty, then default value is returned
- ///// </summary>
- //T FirstOrDefault();
- ///// <summary>
- ///// Gets the last element, if list is empty, then default value is returned
- ///// </summary>
- //T LastOrDefault();
- #endregion Operations
- }
- }
|