[aosd-discuss] Extension methods in C# 3

sahilt(mail.utexas) sahilt at mail.utexas.edu
Sat Oct 7 23:43:15 EST 2006


Yes, they are "limited" form of method introductions. 

It arose from the need to add variability to an assembly (component).
The basic idea is that the group responsible for an assembly would
define variation points (heterogeneous crosscuts), and other groups will
extend them as appropriate for their task. 

This is closer to product-line work using FOP. However I mentioned they
are "limited" in their application because they are not true
refinements/extensions.

Cheers, 
Sahil

> -----Original Message-----
> From: discuss-bounces at aosd.net [mailto:discuss-bounces at aosd.net] On
Behalf
> Of Eric Bodden
> Sent: Saturday, October 07, 2006 12:14 PM
> To: discuss at aosd.net
> Subject: [aosd-discuss] Extension methods in C# 3
> 
> Hi everybody.
> 
> I just read about this new mechanism they call "extension methods" in
C# 3
> [1]. When I saw them first, I thought "hmmm, that looks a lot like
> ITDs...". So does anybody already have looked at extension methods and
> could confirm or confute my suspicion that they are intended to be the
C#
> version of intertype declarations?
> 
> Cheers,
> Eric
> 
> [1] C# 3 language spec: http://msdn2.microsoft.com/en-
> us/vcsharp/aa336745.aspx
> 
> --
> Eric Bodden
> Sable Research Group, McGill University
> Montréal, Québec, Canada
> 
> 
> 
> _______________________________________________
> discuss mailing list    -    discuss at aosd.net
> 
> To unsubscribe and change options, go to:
> http://aosd.net/mailman/listinfo/discuss_aosd.net
> 
> Check out the AOSD.net Wiki: http://aosd.net/wiki



More information about the discuss mailing list