471,354 Members | 1,411 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

COM Interop Static Classes

Is it possible to expose a static class to COM?

Thanks

Alan
Dec 21 '05 #1
2 3634
Sure, if it's a public class I don't see why not.
"Alan Roberts" wrote:
Is it possible to expose a static class to COM?

Thanks

Alan

Dec 21 '05 #2
Alan,
Is it possible to expose a static class to COM?


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.
Dec 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Joanna Carter \(TeamB\) | last post: by
9 posts views Thread by Chuck Cobb | last post: by
4 posts views Thread by thomson | last post: by
1 post views Thread by BLUE | last post: by
4 posts views Thread by Rene | last post: by
9 posts views Thread by puzzlecracker | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.