O'Reilly logo

C# 5.0 Unleashed by Bart De Smet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Windows Runtime Component

Besides consuming the WinRT APIs from managed code, we can also write our own components that can be used from all supported WinRT languages. For example, using C# or Visual Basic, we could write a WinRT component that’s based on managed code and that can get used to build Windows Store applications no matter what language those are written in.

The idea of providing a component-based model to share assets across different applications isn’t anything new. Both classic COM and the CLR have offered this type of componentization. The use of WinRT components is exclusive to Windows Store application projects, though, and benefits from the interop capabilities using language projections and whatnot. For example, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required