[nem-en] Finding an interface method implementation.

Daniel James daniel at calamity.org.uk
Mon Sep 27 13:13:22 CEST 2004


I'm trying to write a macro to automatically dispose of a field. For a 
class like this:

    class Foo : System.IDisposable
    {
        [Utility.AutoDispose]
        bar : Bar;

        private MyDispose() : void
                implements System.IDisposable.Dispose
        {
        }
    }

Utility.AutoDispose needs to modify MyDispose's body, but I've no idea 
how to find it - at the moment my code just looks for a method called 
Dispose. Is this possible?

thanks,

Daniel




More information about the devel-en mailing list