Book a Demo

Author Topic: compare property names between chil and parent classes  (Read 3106 times)

hussien

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
compare property names between chil and parent classes
« on: July 18, 2024, 05:59:31 pm »
Hi all,
using code generation Template macros for C#
I have class C which is inherited from class B which is in turn inherited from class A. (C=>B=>A).
the classes C and A have properties hold the same name (lets say "Wert").
what I need to do is to get the properties' names from parent and grandparent classes to check if they have the same name as those in the child class.
I was thinking of using connector template but I could only get one level up (from class C I could get infos from class B but not from A).
alternatively it would fix my problem if I could get the Tags of the grandparent class A.
it would be highly appreciated if anyone can help me out with this
« Last Edit: July 18, 2024, 06:01:35 pm by hussien »