For WinRT, IDL now supports constructs such as this:
[marshaling_behavior(agile)]
[threading(both)]
[activatable(0x06020000)]
[version(0x06020000)]
[static(Windows.Networking.Sockets.IDatagramSocketStatics, 0x06020000)]
runtimeclass DatagramSocket
{
[default] interface Windows.Networking.Sockets.IDatagramSocket;
interface Windows.Foundation.IClosable;
}
I'm curious about the static
attribute. What does it mean? How does it relate to the interfaces listed inside the body of the runtimeclass
?