WinRT的投影类型的文件 [英] WinRT Projected types documentation

查看:198
本文介绍了WinRT的投影类型的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

还有一种叫做投影类型在WinRT的。例如,在元数据中, IXamlType.UnderlyingType 定义为:

There is something called projected types in WinRT. For example, in metadata, the IXamlType.UnderlyingType is defined as:

TypeName UnderlyingType { get; }

但在C#应用程序中使用时,它的变化如下:

However when used in a C# app, it changes as follows:

Type UnderlyingType { get; }

我的问题是 - ?有没有关于规则的任何文件,API,属性用于这种映射

My question is - is there any documentation regarding the rules, API, attributes used for such mappings?

推荐答案

这是正确的,建立在CLR地图WinRT的类型来自动CLR类型的语言投影。文档是很难得的,尤其是现在,当这仍然是测试版的材料。但有一个描述在CLR投影的一些方面优异的白皮书可用。下载是(目前)<一href="http://download.microsoft.com/download/2/3/E/23E1E9BE-41AA-4716-A7B3-82040271394C/CLRandtheWindowsRuntime.docx"相对=nofollow>可在这里(注意:Word .docx文件)

That's correct, the language projection built into the CLR maps WinRT types to CLR types automatically. Documentation is hard to come by, especially right now when this is still beta material. But there's an excellent white paper available that describes some aspects of the CLR projection. The download is (currently) available here (Note: Word .docx file)

这篇关于WinRT的投影类型的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆