ApplicabilityScopeReadOnlyCollection.cs :  » Development » devAdvantage » AnticipatingMinds » Genesis » KnowledgeManagement » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Development » devAdvantage 
devAdvantage » AnticipatingMinds » Genesis » KnowledgeManagement » ApplicabilityScopeReadOnlyCollection.cs
using System;
using System.Collections;

namespace AnticipatingMinds.Genesis.KnowledgeManagement{
  /// <summary>
  ///     <para>
  ///       A collection that stores <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScope'/> objects.
  ///    </para>
  /// </summary>
  /// <seealso cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/>
  [Serializable()]
  public class ApplicabilityScopeReadOnlyCollection : ReadOnlyCollectionBase 
  {
    /// <summary>
    ///     <para>
    ///       Initializes a new instance of <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> based on another <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/>.
    ///    </para>
    /// </summary>
    /// <param name='value'>
    ///       A <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> from which the contents are copied
    /// </param>
    public ApplicabilityScopeReadOnlyCollection(ApplicabilityScopeCollection value) 
    {
      InnerList.AddRange(value);
    }
        
    /// <summary>
    ///     <para>
    ///       Initializes a new instance of <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> based on another <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/>.
    ///    </para>
    /// </summary>
    /// <param name='value'>
    ///       A <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> from which the contents are copied
    /// </param>
    public ApplicabilityScopeReadOnlyCollection(ApplicabilityScopeReadOnlyCollection value) 
    {
      InnerList.AddRange(value);
    }

    /// <summary>
    ///     <para>
    ///       Initializes a new instance of <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> containing any array of <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScope'/> objects.
    ///    </para>
    /// </summary>
    /// <param name='value'>
    ///       A array of <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScope'/> objects with which to intialize the collection
    /// </param>
    public ApplicabilityScopeReadOnlyCollection(ApplicabilityScope[] value) 
    {
      InnerList.AddRange(value);
    }
        
    /// <summary>
    /// <para>Represents the entry at the specified index of the <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScope'/>.</para>
    /// </summary>
    /// <param name='index'><para>The zero-based index of the entry to locate in the collection.</para></param>
    /// <value>
    ///    <para> The entry at the specified index of the collection.</para>
    /// </value>
    /// <exception cref='System.ArgumentOutOfRangeException'><paramref name='index'/> is outside the valid range of indexes for the collection.</exception>
    public ApplicabilityScope this[int index] 
    {
      get 
      {
        return ((ApplicabilityScope)(InnerList[index]));
      }
    }
        
    /// <summary>
    /// <para>Gets a value indicating whether the 
    ///    <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> contains the specified <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScope'/>.</para>
    /// </summary>
    /// <param name='value'>The <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScope'/> to locate.</param>
    /// <returns>
    /// <para><see langword='true'/> if the <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScope'/> is contained in the collection; 
    ///   otherwise, <see langword='false'/>.</para>
    /// </returns>
    /// <seealso cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection.IndexOf'/>
    public bool Contains(ApplicabilityScope value) 
    {
      return InnerList.Contains(value);
    }
        
    /// <summary>
    /// <para>Copies the <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the 
    ///    specified index.</para>
    /// </summary>
    /// <param name='array'><para>The one-dimensional <see cref='System.Array'/> that is the destination of the values copied from <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> .</para></param>
    /// <param name='index'>The index in <paramref name='array'/> where copying begins.</param>
    /// <returns>
    ///   <para>None.</para>
    /// </returns>
    /// <exception cref='System.ArgumentException'><para><paramref name='array'/> is multidimensional.</para> <para>-or-</para> <para>The number of elements in the <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> is greater than the available space between <paramref name='arrayIndex'/> and the end of <paramref name='array'/>.</para></exception>
    /// <exception cref='System.ArgumentNullException'><paramref name='array'/> is <see langword='null'/>. </exception>
    /// <exception cref='System.ArgumentOutOfRangeException'><paramref name='arrayIndex'/> is less than <paramref name='array'/>'s lowbound. </exception>
    /// <seealso cref='System.Array'/>
    public void CopyTo(ApplicabilityScope[] array, int index) 
    {
      InnerList.CopyTo(array, index);
    }
        
    /// <summary>
    ///    <para>Returns the index of a <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScope'/> in 
    ///       the <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> .</para>
    /// </summary>
    /// <param name='value'>The <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScope'/> to locate.</param>
    /// <returns>
    /// <para>The index of the <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScope'/> of <paramref name='value'/> in the 
    /// <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/>, if found; otherwise, -1.</para>
    /// </returns>
    /// <seealso cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection.Contains'/>
    public int IndexOf(ApplicabilityScope value) 
    {
      return InnerList.IndexOf(value);
    }
        
    /// <summary>
    ///    <para>Returns an enumerator that can iterate through 
    ///       the <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> .</para>
    /// </summary>
    /// <returns><para>None.</para></returns>
    /// <seealso cref='System.Collections.IEnumerator'/>
    public new ApplicabilityScopeEnumerator GetEnumerator() 
    {
      return new ApplicabilityScopeEnumerator(this);
    }
        
    /// <summary>
    /// Represents the enumerator for <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScope'/> objects in the <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/>.
    /// </summary>
    public class ApplicabilityScopeEnumerator : object, IEnumerator 
    {
            
      private IEnumerator baseEnumerator;
            
      private IEnumerable temp;
            
      internal ApplicabilityScopeEnumerator(ApplicabilityScopeReadOnlyCollection mappings) 
      {
        this.temp = ((IEnumerable)(mappings));
        this.baseEnumerator = temp.GetEnumerator();
      }
            
      /// <summary>
      /// Returns the current <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScope'/> in the <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> enumeration.
      /// </summary>
      /// <value>Returns the current <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScope'/> in the collection.</value>
      public ApplicabilityScope Current 
      {
        get 
        {
          return ((ApplicabilityScope)(baseEnumerator.Current));
        }
      }
            
      /// <summary>
      /// Returns the current <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScope'/> in the <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> enumeration.
      /// </summary>
      /// <value>Returns the current <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScope'/> in the collection.</value>
      object IEnumerator.Current 
      {
        get 
        {
          return baseEnumerator.Current;
        }
      }
            
      /// <summary>
      /// Moves to the next element in the <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> enumeration.
      /// </summary>
      /// <returns>true if the enumerator was successfully advanced to the next method; false if the enumerator has passed the end of the collection.</returns>
      public bool MoveNext() 
      {
        return baseEnumerator.MoveNext();
      }
            
      /// <summary>
      /// Moves to the next element in the <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> enumeration.
      /// </summary>
      /// <returns>true if the enumerator was successfully advanced to the next method; false if the enumerator has passed the end of the collection.</returns>
      bool IEnumerator.MoveNext() 
      {
        return baseEnumerator.MoveNext();
      }
            
      /// <summary>
      /// Resets the enumerator to the beginning of the <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> enumeration.
      /// </summary>
      public void Reset() 
      {
        baseEnumerator.Reset();
      }
            
      /// <summary>
      /// Resets the enumerator to the beginning of the <see cref='AnticipatingMinds.Genesis.KnowledgeManagement.ApplicabilityScopeCollection'/> enumeration.
      /// </summary>
      void IEnumerator.Reset() 
      {
        baseEnumerator.Reset();
      }
    }
  }
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.