Home All Groups Group Topic Archive Search About

Delegate Naming Standard

Author
16 Feb 2006 12:45 AM
xtopher.brandt
Does anybody have a good standard for naming delegates? That would be,
other than your run of the mill EventHandler. My problem is that the
name of the delegate, it's return type and instances of it usually end
up looking very similar. It gets very difficult to tell which is the
symbol of the delegate definition and which is symbol of the delegate
implementation.

My gut feeling is to prefix delegate definition symbols with
'delegate'. But this contravines the MS naming guidlines which say that
public identifiers should be Pascal cased.

Any thoughts would be appreciated.

Chris.

Author
16 Feb 2006 1:46 AM
Lloyd Dupont
Something like that?
EventReturn EventFunction(EventArg e)

I don't think there guideline about proper name, you should be
imaginative.... ;-)

--
Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
<xtopher.bra***@gmail.com> wrote in message
Show quote
news:1140050725.954953.13210@g43g2000cwa.googlegroups.com...
> Does anybody have a good standard for naming delegates? That would be,
> other than your run of the mill EventHandler. My problem is that the
> name of the delegate, it's return type and instances of it usually end
> up looking very similar. It gets very difficult to tell which is the
> symbol of the delegate definition and which is symbol of the delegate
> implementation.
>
> My gut feeling is to prefix delegate definition symbols with
> 'delegate'. But this contravines the MS naming guidlines which say that
> public identifiers should be Pascal cased.
>
> Any thoughts would be appreciated.
>
> Chris.
>

AddThis Social Bookmark Button