コード例 #1
0
    public override TypeDefinitionBase TypeOfTypeParameter(SD_Type_Parameter tp)
    {
        var fromReferencedSymbol = referencedSymbol.TypeOfTypeParameter(tp);
        var asTypeParameter      = fromReferencedSymbol as SD_Type_Parameter;

        if (asTypeParameter != null)
        {
            return(base.TypeOfTypeParameter(tp));
        }
        else
        {
            return(fromReferencedSymbol);
        }
    }
コード例 #2
0
 public override TypeDefinitionBase SubstituteTypeParameters(SymbolDefinition context)
 {
     return(context.TypeOfTypeParameter(this));
 }