Book a Demo

Author Topic: Partial classes in multiple files (C#)  (Read 2259 times)

lbugnion

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Partial classes in multiple files (C#)
« on: September 30, 2006, 06:39:17 am »
Hi,

I use partial classes in C#. Typically, when I have an inner class defined inside an outer class, I place the inner class inside another file, which I name OuterClass.InnerClass.cs. This is possible using the "partial" keyword in C# 2.0

When I import these files in EA, everything goes well and they are imported OK. However, when I generate code, I cannot generate the inner classes separately ("Generation of code for inner classes is only supported through generating the outer class"). That is not a problem, but when I generate the outer class, the inner class get placed inside the same file as the inner class. They are handled as if they were new.

How can I modify this behaviour without placing my inner classes in the outer class?

Thanks,
Laurent