2

Closed

Mark generated classes as sealed

description

I don't think there's any need to inherit from the generated classes, so it would be good to heed the advice of FxCop and mark the generated classes as sealed/NotInheritable.
Closed Jun 26, 2007 at 9:00 AM by fabrice

comments

fabrice wrote Jun 26, 2007 at 8:53 AM

Initially, I wanted to mark the generated classes as static, but the code generator does not support this yet. This is why a private parameter-less constructor is added to the classes instead.I've just marked the classes as sealed/NotInheritable.

wrote Jun 26, 2007 at 9:00 AM

Resolved with changeset 3343.

wrote Feb 13, 2013 at 3:09 AM

wrote May 15, 2013 at 3:30 AM