Book a Demo

Author Topic: Generating finalizers in c#  (Read 2132 times)

GaryB

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Generating finalizers in c#
« on: January 22, 2008, 09:38:16 am »
I keep turning off the finalizers in code generation on my c# projects but they keep getting generated anyway (the class name starting with a tilde). Is there a different way than on the Source Code Engineering page of the options dialog?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Generating finalizers in c#
« Reply #1 on: January 22, 2008, 10:41:40 am »
Gary,

I am guessing here, but take a look at the Tools | Options | Diagram | Sequence dialog. Do you have GarbageCollect (auto delete) option checked?

David

EDIT: Also check the Tools | Options | Source Code Engineering | Object Lifetimes dialog, in case the setting there contradict your C# settings.
« Last Edit: January 22, 2008, 10:42:54 am by Midnight »
No, you can't have it!