Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the CodeUnitProxy class.
        /// </summary>
        /// <param name="document">The parent document.</param>
        public CodeUnitProxy(CsDocument document)
        {
            Param.Ignore(document);

            this.document = document;
            this.children = new CodeUnitCollection(this);
        }
            /// <summary>
            /// Initializes a new instance of the VirtualCodeUnitCollection class.
            /// </summary>
            /// <param name="collection">The collection of all code units.</param>
            /// <param name="countHandler">Retrieves the correct item count from the collection.</param>
            public VirtualCodeUnitCollection(CodeUnitCollection collection, CountHandler countHandler)
            {
                Param.AssertNotNull(collection, "collection");
                Param.AssertNotNull(countHandler, "countHandler");

                this.collection   = collection;
                this.countHandler = countHandler;
            }
 /// <summary>
 /// Initializes a new instance of the VirtualCodeUnitEnumerator class.
 /// </summary>
 /// <param name="collection">The collection of all code units.</param>
 public VirtualCodeUnitEnumerator(CodeUnitCollection collection)
 {
     Param.AssertNotNull(collection, "collection");
     this.collection = collection;
 }