COM Interop Static Classes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alan Roberts

    #1

    COM Interop Static Classes

    Is it possible to expose a static class to COM?

    Thanks

    Alan


  • WebMatrix

    #2
    RE: COM Interop Static Classes

    Sure, if it's a public class I don't see why not.


    "Alan Roberts" wrote:
    [color=blue]
    > Is it possible to expose a static class to COM?
    >
    > Thanks
    >
    > Alan
    >
    >
    >[/color]

    Comment

    • Mattias Sjögren

      #3
      Re: COM Interop Static Classes

      Alan,
      [color=blue]
      >Is it possible to expose a static class to COM?[/color]

      No, a static class can't be instantiated and it only has static
      methods that can't be called through COM interop.


      Mattias

      --
      Mattias Sjögren [C# MVP] mattias @ mvps.org
      http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
      Please reply only to the newsgroup.

      Comment

      Working...