Implemented interface member:
property
Value
Roslyn.LanguageServer.Protocol.ISumType.Value
4 writes to Value
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Protocol\SumType.cs (4)
516this.Value = val; 525this.Value = val; 534this.Value = val; 543this.Value = val;
20 references to Value
Microsoft.CodeAnalysis.LanguageServer.Protocol (20)
Protocol\SumType.cs (20)
642if (sum.Value is T1 tOne) 647if (sum.Value is T2 tTwo) 661if (sum.Value is T1 tOne) 666if (sum.Value is T2 tTwo) 671if (sum.Value is T3 tThree) 684public static explicit operator T1(SumType<T1, T2, T3, T4> sum) => sum.Value is T1 tVal ? tVal : throw new InvalidCastException(); 691public static explicit operator T2(SumType<T1, T2, T3, T4> sum) => sum.Value is T2 tVal ? tVal : throw new InvalidCastException(); 698public static explicit operator T3(SumType<T1, T2, T3, T4> sum) => sum.Value is T3 tVal ? tVal : throw new InvalidCastException(); 705public static explicit operator T4(SumType<T1, T2, T3, T4> sum) => sum.Value is T4 tVal ? tVal : throw new InvalidCastException(); 724if (this.Value is T1 typeValue) 741if (this.Value is T2 typeValue) 758if (this.Value is T3 typeValue) 775if (this.Value is T4 typeValue) 820if (this.Value is T1 tOne) 825if (this.Value is T2 tTwo) 830if (this.Value is T3 tThree) 835if (this.Value is T4 tFour) 859return EqualityComparer<object?>.Default.Equals(this.Value, other.Value); 865return -1937169414 + EqualityComparer<object?>.Default.GetHashCode(this.Value);