Is System.Runtime.InteropServices.GuidAttribute used for anything except COM interop

后端 未结 2 480
北海茫月
北海茫月 2021-01-18 06:14

I\'m trying to figure out why this attribute was added to a class. Google is only turning up COM related material when I search for it; but the application doesn\'t do anyt

2条回答
  •  無奈伤痛
    2021-01-18 07:14

    The Guid attribute was introduced for COM interop - but there's nothing preventing you (or any other third party) from repurposing it for other uses.

    Attributes, generally, provide additional information ("metadata") that can be used by other code however suits.

提交回复
热议问题