Web Log di Adrian Florea

"You know you've achieved perfection in design, not when you have nothing more to add, but when you have nothing more to take away." Antoine de Saint-Exupery
posts - 440, comments - 2715, trackbacks - 3944

My Links

Archives

Post Categories

Image Galleries

.RO Blogs

.RO People

.RO Sites

Blogs

Furls

Links

vinCitori

Non esistono delegate singlecast

Per vedere se un tipo t è delegate o no, basta verificare se deriva da System.MulticastDelegate:

t.BaseType != null && t.BaseType.Equals(typeof(System.MulticastDelegate))

cioè non è necessaria la verifica singlecast (System.Delegate). La storia strana che spiega tutto ciò la potete leggere nel libro di Richter (pp. 375-376 per la traduzione italiana) e nel post di Brad Abrams.

Print | posted on domenica 4 aprile 2004 22:14 | Filed Under [ Carillon .NET ]

Powered by:
Powered By Subtext Powered By ASP.NET