17 references to ICodeStyleOption2
Microsoft.CodeAnalysis.Features (1)
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.cs (1)
145var configuredCodeStyleOption = codeStyleOption.WithValue(newValue);
Microsoft.CodeAnalysis.Workspaces (16)
CodeStyle\CodeStyleOption.cs (1)
14/// Internally the value is represented by <see cref="ICodeStyleOption2"/>.
Options\OptionSet.cs (1)
102=> value is not ICodeStyleOption2;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (13)
22ICodeStyleOption2 WithValue(object value); 23ICodeStyleOption2 WithNotification(NotificationOption2 notification); 26/// Creates a new <see cref="ICodeStyleOption2"/> from a specified <paramref name="element"/>. 29/// The type of the serialized data does not match the type of <see cref="ICodeStyleOption2.Value"/> or the format of the serialized data is invalid. 31ICodeStyleOption2 FromXElement(XElement element); 75internal sealed partial class CodeStyleOption2<T>(T value, NotificationOption2 notification) : ICodeStyleOption2, IEquatable<CodeStyleOption2<T>?> 93object? ICodeStyleOption2.Value => this.Value; 94ICodeStyleOption2 ICodeStyleOption2.WithValue(object value) => WithValue((T)value); 95ICodeStyleOption2 ICodeStyleOption2.WithNotification(NotificationOption2 notification) => new CodeStyleOption2<T>(Value, notification); 165ICodeStyleOption2 ICodeStyleOption2.FromXElement(XElement element)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionDefinition.cs (1)
102typeof(ICodeStyleOption2).IsAssignableFrom(type) ||