开发者

c# about interfaces

开发者 https://www.devze.com 2023-02-22 16:16 出处:网络
I have a library that contains some public interfaces. Before each public interface there is a: [Guid:(\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx\")]. What is this Guid. what does it do? Is it possible to a

I have a library that contains some public interfaces. Before each public interface there is a: [Guid:("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx")]. What is this Guid. what does it do? Is it possible to acces the methods from this library without adding the lib to ref just using this Guid. Or what can i do using another appli开发者_JAVA技巧cation with this Guid?


This GUID is used when the .NET assembly is used as an COM object. You can't use this method without referencing either the .NET assembly as a .NET assembly or as a COM object. This is mainly for interoperability with other languages that don't know how to work with .NET assemblies. COM objects can be consumed by virtually any technology/language on Windows.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号