MonoTouch 上的 System.IO.MemoryMappedFiles? [英] System.IO.MemoryMappedFiles on MonoTouch?

查看:23
本文介绍了MonoTouch 上的 System.IO.MemoryMappedFiles?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将一个小型测试应用程序从 Windows .NET 4 转换为 MonoTouch,但我缺少 System.IO.MemoryMappedFiles.然后我用一个普通的 Mono 控制台应用程序尝试了它,但命名空间也不存在.我尝试将 Mono 2.10 与 MonoDevelop 2.4 结合使用.

I wanted to convert a small test application from Windows .NET 4 to MonoTouch but I am missing System.IO.MemoryMappedFiles. Then I tried it with a plain Mono console app and the namespace isn't there either. I tried Mono 2.10 in combination with MonoDevelop 2.4.

它是否应该在那里?我有点困惑,因为据我所知,.NET4 与 Mono 兼容.

Is it supposed to be there or not? I'm kind of confused, as .NET4 compatibility was announced with Mono, as far as I know.

推荐答案

Mono 2.10 对内存映射文件有一些支持.然而,它并不是 100% 完整的(并且不太可能包括 Windows 特定的东西,比如安全性)所以 YMMV.

Mono 2.10 has some support for memory mapped file. However it is not 100% complete (and Windows-specific things like security are not likely to be ever included) so YMMV.

您可以浏览 GIT 存储库中的可用内容:https://github.com/mono/mono/tree/mono-2-10/mcs/class/System.Core/System.IO.MemoryMappedFiles

You can browser what's available from the GIT repository: https://github.com/mono/mono/tree/mono-2-10/mcs/class/System.Core/System.IO.MemoryMappedFiles

由于这是 .NET 4.0 功能,因此您需要使用dmcs"编译器来编译代码(并引用类型所在的 System.Core.dll).

Since this is a .NET 4.0 feature you'll need to use the 'dmcs' compiler to get your code to compile (and also reference System.Core.dll where the types resides).

至于 MonoTouch,它提供 Mono 的一个子集(最初基于 Silverlight 的 2.1 配置文件和额外的,甚至一些 4.0 功能).目前(对于 MonoTouch 4.x)这不包括来自 System.IO.MemoryMappedFile.* 命名空间的任何类型.未来版本将提供更多 .NET 4.0 功能(如果 iOS 提供的话).

As for MonoTouch it provides a subset of Mono (originally based on the 2.1 profile from Silverlight and extra, even some 4.0, features). Currently (for MonoTouch 4.x) this does not include any type from System.IO.MemoryMappedFile.* namespace. Future versions will offer more .NET 4.0 features (if they are available from iOS).

这篇关于MonoTouch 上的 System.IO.MemoryMappedFiles?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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