Book a Demo

Author Topic: Does EA support C# Generics class ?  (Read 7000 times)

fausto bertoli

  • EA User
  • **
  • Posts: 65
  • Karma: +0/-0
    • View Profile
Does EA support C# Generics class ?
« on: April 05, 2020, 04:55:17 am »
I search the forum but most of the answer are very old...  I didn't open all the posts but it seems there aren't recent posts regarding this subject.
So I raise the questions hoping someone answer:

EA support code generation for classes referring C# generics types , suck like lists, dictionaries etc ?
EA support rev eng  of classes referring C# generics types , suck like lists, dictionaries etc ?

If this support is not available how to deal with? today I haven't seen C# source code without such references...
Thanks for answer

Fausto

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Does EA support C# Generics class ?
« Reply #1 on: April 05, 2020, 07:50:43 am »
EA can deal with general generics independent of the language. I have no idea whether its code generator supports it. If you are after code generation I'd go for creating code via a script. Unless you want to learn that proprieatary macro language EA uses to spit out code from a model. Regarding reverse engineering: just give it a try. Offer EA a (simple) source and see what it creates from it.

It looks like you want to go towards round tripping. Be warned that this sounds more simple than it actually is. The simple issue is always: where's the truth? In the code or the model? Also handling the code itself (not the class stubs) will end up in a PITA since EA's code editor compare to VS is like comparing a steam boat to a modern racing boot. Well, or so. You probably know what I mean. Your coders will loath to use it.

q.
« Last Edit: April 05, 2020, 07:59:35 am by qwerty »