3 instantiations of PerSubjectBufferProperty
Microsoft.CodeAnalysis.EditorFeatures (3)
Shared\Extensions\ITextViewExtensions.PerSubjectBufferProperty.cs (3)
37var properties = textView.Properties.GetOrCreateSingletonProperty(() => new PerSubjectBufferProperty<TProperty, TTextView>(textView)); 59var properties = textView.Properties.GetOrCreateSingletonProperty(() => new PerSubjectBufferProperty<TProperty, TTextView>(textView)); 71var properties = textView.Properties.GetOrCreateSingletonProperty(() => new PerSubjectBufferProperty<TProperty, TTextView>(textView));
10 references to PerSubjectBufferProperty
Microsoft.CodeAnalysis.EditorFeatures (10)
Shared\Extensions\ITextViewExtensions.cs (4)
210return PerSubjectBufferProperty<TProperty, TTextView>.GetOrCreateValue(textView, subjectBuffer, key, valueCreator, out value); 222return PerSubjectBufferProperty<TProperty, TTextView>.TryGetValue(textView, subjectBuffer, key, out value); 234PerSubjectBufferProperty<TProperty, TTextView>.AddValue(textView, subjectBuffer, key, value); 245PerSubjectBufferProperty<TProperty, TTextView>.RemoveValue(textView, subjectBuffer, key);
Shared\Extensions\ITextViewExtensions.PerSubjectBufferProperty.cs (6)
37var properties = textView.Properties.GetOrCreateSingletonProperty(() => new PerSubjectBufferProperty<TProperty, TTextView>(textView)); 59var properties = textView.Properties.GetOrCreateSingletonProperty(() => new PerSubjectBufferProperty<TProperty, TTextView>(textView)); 71var properties = textView.Properties.GetOrCreateSingletonProperty(() => new PerSubjectBufferProperty<TProperty, TTextView>(textView)); 77if (textView.Properties.TryGetProperty(typeof(PerSubjectBufferProperty<TProperty, TTextView>), out PerSubjectBufferProperty<TProperty, TTextView> properties)) 97_textView.Properties.RemoveProperty(typeof(PerSubjectBufferProperty<TProperty, TTextView>));