Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are WinRT language projections?

Tags:

What are WinRT language projections and what are they used for?

like image 755
Alfred Myers Avatar asked Sep 15 '11 14:09

Alfred Myers


People also ask

What is a language projection?

A language projection is a way to exposing the Windows Runtime API to you in a language-friendly manner. For example, the underlying way to create a Windows.

What is C# WinRT?

C#/WinRT is a NuGet-packaged toolkit that provides Windows Runtime (WinRT) projection support for the C# language. A projection assembly is an interop assembly, which enables programming WinRT APIs in a natural and familiar way for the target language.

Is WinRT based on Win32?

WinRT can be described as an API at the same level as Win32. The only difference with Win32 is that WinRT is exposed to all application developers.


2 Answers

Windows Runtime Projections are the way that the Windows Runtime APIs are exposed in each language. This may be at compile time (as in C++) or at runtime (as in JavaScript) or a combination (as in C#). Each language decides how to present the WinRT APIs best. Most of the time it is a direct exposure, but other times there are wrappers or redirections that may take place. Delegates and events are a good example. In C# they show up as C# delegates/events and not as WinRT-specific types. Strings likewise are remapped to be the native language string type and not the underlying hstring type.

like image 166
Steve Rowe Avatar answered Nov 06 '22 04:11

Steve Rowe


"Projections" in WinRT is another word for "Bindings".

The WinRT Language Projections are the WinRT Bindings for each Language that is supported.

For more information, check out:

WinRT Demystified - Miguel de Icaza

like image 25
Justin Niessner Avatar answered Nov 06 '22 04:11

Justin Niessner