Finding a type declaration's namespace and type hierarchy: Creating a source generator - Part 5

added by DotNetKicks
1/11/2022 10:29:39 AM


In this next post on source generators, I show a couple of common patterns that I've needed when building source generators, namely: How to determine the namespace of a type for a given class/struct/enum syntax How to handle nested types when calculating the name of a class/struct/enum On the face of it, these seem like simple tasks, but there are subtleties that can make it trickier than expected.