![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Extension Method Question for ServicedComponent ..NET 3.5 If I understand correctly, extension methods must be in a public static class. I have some code that executes in a COM+ application for object pooling purposes. I am trying to update it by using LINQ and an extension method. I think my code that inherits from ServicedComponent cannot have any public static code, all methods must be instance methods. How can I make this stuff all work together? Thanks. |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Extension Method Question for ServicedComponent "coconet" <coconet@xxxxxx> wrote in message news:g2dgv3l28lev12mj6g0rmjvj3kflltc7ls@xxxxxx Quote: > .NET 3.5 > If I understand correctly, extension methods must be in a public > static class. I have some code that executes in a COM+ application for > object pooling purposes. I am trying to update it by using LINQ and an > extension method. I think my code that inherits from ServicedComponent > cannot have any public static code, all methods must be instance > methods. > > How can I make this stuff all work together? > You will need to create additional interfaces to expose your new methods, extension methods are not callable via COM since COM requires an interface. -- Anthony Jones - MVP ASP/ASP.NET |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Question about Copy() method in Excel | PowerShell | |||
| method not many | Vista mail | |||
| Method invocation failed because [System.String] doesn't contain a method | PowerShell | |||
| Question about passing array to a .Net method | PowerShell | |||