Pchp.CodeAnalysis.Symbols.MethodSymbol.GetTypeInferredDuringReduction C# (CSharp) Method

GetTypeInferredDuringReduction() public method

public GetTypeInferredDuringReduction ( ITypeParameterSymbol reducedFromTypeParameter ) : ITypeSymbol
reducedFromTypeParameter ITypeParameterSymbol
return ITypeSymbol
        public virtual ITypeSymbol GetTypeInferredDuringReduction(ITypeParameterSymbol reducedFromTypeParameter)
        {
            throw new NotImplementedException();
        }

Usage Example

        public override ITypeSymbol GetTypeInferredDuringReduction(ITypeParameterSymbol reducedFromTypeParameter)
        {
            // This will throw if API shouldn't be supported or there is a problem with the argument.
            var notUsed = originalDefinition.GetTypeInferredDuringReduction(reducedFromTypeParameter);

            Debug.Assert((object)notUsed == null && (object)originalDefinition.ReducedFrom != null);
            return(this.TypeArguments[reducedFromTypeParameter.Ordinal]);
        }