[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

zhaoyao

9/29/2002 2:18:00 AM

Hi All,

Could somebody show me a way how to setup a delegate that is declared
"internal" in a separate assembly ?

A.dll has a delegate declared like the following.

internal delegate void myPainter( Graphics graphics, Rectangle rectangle );


From a class that is in b.dll asssembly I need to be able to write a handler
with the same signature.

thanks,

moses



1 Answer

Bryce Marshall

9/29/2002 11:50:00 AM

0

The internal access modifier limits scope to within the assembly that the
declaration is made in. Your delegate will not be visible to code in
assembly b.dll. If it is essential that this delegate is accessible from
another assembly, you must declare it as public.

Bryce Marshall

"Moses Zhao" <zhao_yao99@hotmail.com> wrote in message
news:eSoKiZ1ZCHA.1656@tkmsftngp11...
> Hi All,
>
> Could somebody show me a way how to setup a delegate that is declared
> "internal" in a separate assembly ?
>
> A.dll has a delegate declared like the following.
>
> internal delegate void myPainter( Graphics graphics, Rectangle
rectangle );
>
>
> From a class that is in b.dll asssembly I need to be able to write a
handler
> with the same signature.
>
> thanks,
>
> moses
>
>
>