10 overrides of Variance
Microsoft.CodeAnalysis.CSharp (10)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
113public override VarianceKind Variance
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
142public override VarianceKind Variance
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
596public override VarianceKind Variance
Symbols\Source\CrefTypeParameterSymbol.cs (1)
120public override VarianceKind Variance
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
135public override VarianceKind Variance
Symbols\Source\SourceTypeParameterSymbol.cs (1)
76public override VarianceKind Variance
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
43public override VarianceKind Variance => VarianceKind.None;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
235public override VarianceKind Variance => VarianceKind.None;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
86public override VarianceKind Variance
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
136public override VarianceKind Variance
19 references to Variance
Microsoft.CodeAnalysis.CSharp (19)
Binder\Semantics\Conversions\ConversionsBase.cs (3)
3190switch (typeParameterSymbol.Variance) 3223throw ExceptionUtilities.UnexpectedValue(typeParameterSymbol.Variance); 3691switch (original.TypeParameters[i].Variance)
Emitter\Model\TypeParameterSymbolAdapter.cs (2)
328switch (AdaptedTypeParameterSymbol.Variance) 337throw ExceptionUtilities.UnexpectedValue(AdaptedTypeParameterSymbol.Variance);
Symbols\MemberSignatureComparer.cs (2)
666(typeParameter1.Variance != typeParameter2.Variance))
Symbols\NamedTypeSymbol.cs (1)
1057VarianceKind typeArgumentVariance = GetTypeArgumentVariance(variance, isTuple ? VarianceKind.Out : typeParameters[i].Variance);
Symbols\PublicModel\TypeParameterSymbol.cs (1)
85VarianceKind ITypeParameterSymbol.Variance => _underlying.Variance;
Symbols\VarianceSafety.cs (9)
91Debug.Assert(container.TypeParameters.Any(static tp => tp.Variance != VarianceKind.None)); 108if (container.TypeParameters.Any(static tp => tp.Variance != VarianceKind.None)) 306if (requireInputSafety && requireOutputSafety && typeParam.Variance != VarianceKind.None) 314else if (requireOutputSafety && typeParam.Variance == VarianceKind.In) 320else if (requireInputSafety && typeParam.Variance == VarianceKind.Out) 391switch (typeParam.Variance) 409throw ExceptionUtilities.UnexpectedValue(typeParam.Variance); 449switch (unsafeTypeParameter.Variance) 458throw ExceptionUtilities.UnexpectedValue(unsafeTypeParameter.Variance);
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
140return _underlyingTypeParameter.Variance;