コード例 #1
0
 public IIntellisenseSessionStack GetStackForTextView(ITextView textView) {
     MockIntellisenseSessionStack stack;
     if (!textView.Properties.TryGetProperty<MockIntellisenseSessionStack>(typeof(MockIntellisenseSessionStack), out stack)) {
         textView.Properties[typeof(MockIntellisenseSessionStack)] = stack = new MockIntellisenseSessionStack();
     }
     return stack;
 }
コード例 #2
0
        public IIntellisenseSessionStack GetStackForTextView(ITextView textView)
        {
            MockIntellisenseSessionStack stack;

            if (!textView.Properties.TryGetProperty <MockIntellisenseSessionStack>(typeof(MockIntellisenseSessionStack), out stack))
            {
                textView.Properties[typeof(MockIntellisenseSessionStack)] = stack = new MockIntellisenseSessionStack();
            }
            return(stack);
        }