I am writing a ReSharper plugin and I want to do this:
CSharpElementFactory factory = CSharpElementFactory.GetInstance(treeNode.GetPsiModule());
factory.CreateTypeMemberDeclaration(
"public static $0 $1 (this $2 $4) { }",
"string",
someMethodName,
someArgumentType,
SomeArgumentName);
which I want to output the code:
public static string SomeMethodName(this SomeArgumentType someArgumentName) { }
but it actually outputs this:
public static @string SomeMethodName(this SomeArgumentType someArgumentName) { }
it seems to do this with int
(and I assume other built in types or keywords).
How can I prevent it from doing this and outputting valid code?