1

I have a CodeProperty object in my T4 template of a generic property (ICollection<MyNameSpace.MyType>). How can I get the CodeElement object of MyNameSpace.MyType so I can inspect and do other things with it?

Omar
  • 39,496
  • 45
  • 145
  • 213

1 Answers1

1

You may obtain it via CodeModel.CodeTypeFromFullName("MyNameSpace.MyType").

D.R.
  • 20,268
  • 21
  • 102
  • 205
  • I wish there was an answer on how you can extract that info dynamically from the `CodeProperty` instance itself... – Crono Aug 30 '17 at 00:41