System.Console.WriteLine("Ignat Andrei");
System.Console.WriteLine("RoslynCodeGeneratorsMicrosoft");
Andrei Ignat http://msprogrammer.serviciipeweb.ro/
YouTube 5 minutes .NET and tools : http://bit.ly/5MinTools
Book Making Open Source Component : http://bit.ly/NetOpenSourceComponent
Book Copy Paste from StackOverflow : https://amzn.to/2PQ8EDc
Roslyn Source Code Generators with examples : https://ignatandrei.github.io/RSCG_Examples/
Monthly meetings: https://www.meetup.com/Bucharest-A-D-C-E-S-Meetup/
For notes press S
var syntax = context
.SyntaxProvider.CreateSyntaxProvider(
predicate: (sn, _) => FindCorrectComment(sn),
transform: (ctx, _) => GetDataForGeneration(ctx)
)
.Where(it => it != null)
.SelectMany((it, _) => it!)
;
//code
var str=
$$"""
{{namespaceName}}
partial class {{name}}
{
public static string FoundTimeBombComment_{{nr++}}()
{
return "{{item.ToFullString()}}";
}
}
""";