© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago
Pedro Gil Mora

Retrive TypeDeclarationSyntax from a referenced type

Hi everybody

I'm writing a source generator and I have a property Type which I want to retrieve its declaration syntax

// ITest.cs
interface ITest {
  //⬇️ I want to get [IType] declaration syntax
  IType Property {get;}
}
// ITest.cs
interface ITest {
  //⬇️ I want to get [IType] declaration syntax
  IType Property {get;}
}
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

cannot convert from 'TypeA' to 'TypeB' with generics
C#CC# / help
2y ago
Roslyn not finding a referenced package
C#CC# / help
14mo ago
❔ How to convert from one type to a different type
C#CC# / help
4y ago
❔ The type 'Attribute' is defined in an assembly that is not referenced.
C#CC# / help
4y ago