Implemented interface member:
property
Value
Roslyn.LanguageServer.Protocol.ISumType.Value
2 writes to Value
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Protocol\SumType.cs (2)
36this.Value = val; 45this.Value = val;
12 references to Value
Microsoft.CodeAnalysis.LanguageServer.Protocol (12)
Handler\CodeActions\CodeActionHelpers.cs (1)
285var diagnosticCode = requestDiagnostic.Code?.Value?.ToString();
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (2)
119if (vsCompletionItem.VsCommitCharacters?.Value is string[] basicCommitCharacters 131else if (vsCompletionItem.VsCommitCharacters?.Value is VSInternalCommitCharacter[] augmentedCommitCharacters
Protocol\SumType.cs (9)
90public static explicit operator T1(SumType<T1, T2> sum) => sum.Value is T1 tVal ? tVal : throw new InvalidCastException(); 97public static explicit operator T2(SumType<T1, T2> sum) => sum.Value is T2 tVal ? tVal : throw new InvalidCastException(); 116if (this.Value is T1 typeValue) 133if (this.Value is T2 typeValue) 166if (this.Value is T1 tOne) 171if (this.Value is T2 tTwo) 195return EqualityComparer<object?>.Default.Equals(this.Value, other.Value); 201return -1937169414 + EqualityComparer<object?>.Default.GetHashCode(this.Value);