コード例 #1
0
        static void WriteCodeMethodReferenceExpression(CodeMethodReferenceExpression expression, TextWriter w, CodeGeneratorOptions o)
        {
            GenerateCodeFromExpression(expression.TargetObject, w, o);
            w.Write(".");
            w.Write(expression.MethodName);
            if (expression.TypeArguments.Count > 0)
            {
                w.Write($"<{TypeMapper.MapCodeTypeReferenceCollectionToTsText(expression.TypeArguments)}>");
            }

            w.Write("()");
        }