Re: C# 3.0 partial methods and automatic properties

Fabian Schmied <[email protected]> Sun, 12 Nov 2006 16:57:29 +0100
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <[email protected]>
> It's been a while since I looked at it. But the way I understand the
> feature, it's a way for code generators to add hooks into the generated
> code that you as a developer can chose to implement if you need.    The
> generated code declares a method signature and can then make calls against
> it. Either you provide an implementation in another part of the class, or
> the calls do nothing.
>
> Normally you'd have to use a virtual method and inheritance to accomplish
> this, but that doesn't work for static methods and sealed classes. You can
> see it as a way to implement the template method pattern without inheritance.

Okay, thanks for that piece of information. Not exactly what I was
hoping for, but at least interesting.

Fabian

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com