> I could not find any collections where I could add Interfaces. See the CodeTypeDeclaration.BaseTypes property. :-)
Also check the CodeDOM Quick Reference in the SDK docs. It is quite helpful. http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconcodedomquickreference.asp HTH, ----- Original Message ----- From: "Amit Bahree" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 16, 2002 2:00 PM Subject: [DOTNET] IDisposable and CodeDom.. oh my! > Hi Guys, > This is of no "practical" significance other me having a little time and > playing with the various classes in the Framework :). > > So, I have tried this but my puny little brain cannot figure it out, how > can I implment any interface (just for the sake of argument take > IDisposable) and implement it using CodeDom. > > So using CodeDom how can I say that my Class (say Class1, that is of Type > CodeTypeDeclaration) inherit from any interface? > > Getting something like show below is easy: > public class Class1 { > // This is the About Method > public virtual void About() { > System.Console.WriteLine("Hello World!"); > } > } > > But, how do I get something like: > > public class Class1 : IDisposable { > // This is the About Method > public virtual void About() { > System.Console.WriteLine("Hello World!"); > } > } > > I could not find any collections where I could add Interfaces. > > Thoughts? > > Thanks, > Amit. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.