Closed zijianhuang closed 5 months ago
[Fact]
public void TestCodeCastExpression()
{
TestCodeExpression(new CodeCastExpression("System.Int64", new CodeSnippetExpression("Something") ),
"(Something as number)");
}
This is not covering very complex expression that may cause the type casting fail or yield wrong result. Technically I can add make it ((Some complex Expression) as number)
, however, it may be more flexible that the code gen developer to add the baskets.
done
CodeNamespaceImport, there's no equivalent in TS.
CodePropertySetValueReferenceExpression not supported, however, TS provider does support getter and setter of property.
CodeRegionDirective
CodeRegionMode
CodeCastExpression
CodeMemberMethod.TypeParameters, currently I am using CodeSnipet.