Exemple #1
0
        public int EnumOriginalCodeBlocks(out IVsEnumCodeBlocks ppEnum)
        {
            IVsTextLines buffer;

            ErrorHandler.ThrowOnFailure(bufferCoordinator.GetSecondaryBuffer(out buffer));
            ppEnum = new CodeBlocksEnumerator(buffer);
            return(VSConstants.S_OK);
        }
 public int EnumOriginalCodeBlocks(out IVsEnumCodeBlocks ppEnum)
 {
     IVsTextLines buffer;
     ErrorHandler.ThrowOnFailure(bufferCoordinator.GetSecondaryBuffer(out buffer));
     ppEnum = new CodeBlocksEnumerator(buffer);
     return VSConstants.S_OK;
 }
 /// <summary>
 /// Private constructor used for the Clone functionality.
 /// </summary>
 private CodeBlocksEnumerator(CodeBlocksEnumerator original)
 {
     this.currentIndex = original.currentIndex;
     this.blocks = new List<TextSpanAndCookie>(original.blocks);
 }
 public int Clone(out IVsEnumCodeBlocks ppEnum)
 {
     ppEnum = new CodeBlocksEnumerator(this);
     return VSConstants.S_OK;
 }
 /// <summary>
 /// Private constructor used for the Clone functionality.
 /// </summary>
 private CodeBlocksEnumerator(CodeBlocksEnumerator original)
 {
     this.currentIndex = original.currentIndex;
     this.blocks       = new List <TextSpanAndCookie>(original.blocks);
 }
 public int Clone(out IVsEnumCodeBlocks ppEnum)
 {
     ppEnum = new CodeBlocksEnumerator(this);
     return(VSConstants.S_OK);
 }