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; }
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); }