首页 > 代码库 > Xamarin迁移到 Unified API 注意事项

Xamarin迁移到 Unified API 注意事项

参考官方文档:

Migrating to Unified API for Components

 

#if __UNIFIED__...// Mappings Unified CoreGraphic classes to MonoTouch classesusing RectangleF = global::CoreGraphics.CGRect;using SizeF = global::CoreGraphics.CGSize;using PointF = global::CoreGraphics.CGPoint;#else...// Mappings Unified types to MonoTouch typesusing nfloat = global::System.Single;using nint = global::System.Int32;using nuint = global::System.UInt32;#endif

 

Xamarin迁移到 Unified API 注意事项