What parts of .NET aren't available in Monotouch for IPhone dev?

假装没事ソ 提交于 2019-12-19 06:50:56

问题


What are some key bindings that aren't included?


回答1:


You can find the complete list of limitations in MonoTouch at Xamarin.

A short list of .NET features not available in MonoTouch:

  • The Dynamic Language Runtime (DLR)
  • Generic Virtual Methods
  • P/Invokes in Generic Types
  • Value types as Dictionary Keys
  • System.Reflection.Emit
  • System.Runtime.Remoting



回答2:


Here is a link of the assemblies that it ships with: http://docs.xamarin.com/ios/about/assemblies

Here is a summary of the .Net framework assemblies:

mscorlib.dll
Silverlight, plus several .NET 4.0 types

System.dll
Silverlight, plus types from the following namespaces:
System.Collections.Specialized
System.ComponentModel
System.ComponentModel.Design
System.Diagnostics
System.IO.Compression
System.Net
System.Net.Cache
System.Net.Mail
System.Net.Mime
System.Net.NetworkInformation
System.Net.Security
System.Net.Sockets
System.Security.Authentication
System.Security.Cryptography
System.Timers

System.Core.dll
System.Data.dll
System.Data.Services.Client.dll
System.Json.dll
System.Numerics.dll
System.Runtime.Serialization.dll
System.ServiceModel.dll
System.ServiceModel.Web.dll
System.Transactions.dll
System.Web.Services
System.Xml.dll
System.Xml.Linq.dll




回答3:


One thing to also mention is you cannot reference .NET assemblies that haven't been built/compiled using the .NET MonoTouch configuration.

So if you have a favourite .NET 2.0 library you will need to re-import the source into a new MonoTouch project, compile it, and then reference it. There may be an easier way of doing this by editing the .csproj file but I haven't found it.



来源:https://stackoverflow.com/questions/1668531/what-parts-of-net-arent-available-in-monotouch-for-iphone-dev

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!