this keyword is not generated for extension methods:
namespace Foo
{
public static class MyExtensions
{
/// `this` keyword
public static int WordCount(this string str)
{
return 42;
}
}
}
After roundtrip: source -> ISymbol-> SyntaxGenerator -> source:
/// `this` keyword is not generated
public static int WordCount(string str) { }
params keyword is not generated for methods with variable number of arguments:
public static class Test
{
public static void VariableNumberOfArguments(params object[] list)
{}
}
After roundtrip: source -> ISymbol-> SyntaxGenerator -> source:
public static class Test
{
public static void VariableNumberOfArguments(object[] list)
{}
}
thiskeyword is not generated for extension methods:After roundtrip: source -> ISymbol-> SyntaxGenerator -> source:
paramskeyword is not generated for methods with variable number of arguments:After roundtrip: source -> ISymbol-> SyntaxGenerator -> source: