A developer using Xamarin can build apps in C#, using
features such as generics, Linq and the parallel task library.
The developer splits the app into two logical pieces (Figure 2):
the application core, which encodes the business logic, and
contains code that is common across all platforms, and user
interface (UI), which is written for each platform and uses
the native UI features of that platform, e.g., buttons, widgets,
and the overall look and feel of the specific platform. The
developer implements the UI layer in C# as well, using native
UI design tools such as Android.Views, MonoTouch.UIKit
for iOS, and XAML, Silverlight and Metro APIs for Windows
Phone. The functionality and layout of the UI elements can be
controlled by the business logic in the application core, e.g., in
determining which button triggers what functionality in the
app. Xamarin is built atop the Mono .NET framework [5],
which provides the core cross-platform implementation of
Microsoft’s .NET framework. C# source code can be compiled
with Xamarin’s compiler to produce a native iOS app, or an
Android app with integrated .NET runtime support. In this
case, the C# code is compiled to an intermediate language,
and packaged with MonoVM configured for just-in-time compilation
on Android.
เป็นนักพัฒนานักพัฒนาสามารถสร้างปพลิเคชันที่ใช้ใน C # โดยใช้คุณสมบัติเช่นข้อมูลทั่วไป LINQ และห้องสมุดงานแบบขนานนักพัฒนา app ที่แยกเป็นสองชิ้นตรรกะ ( รูปที่ 2 )หลักของโปรแกรมซึ่ง encodes และตรรกะทางธุรกิจมีรหัสที่เป็นปกติข้ามแพลตฟอร์มทั้งหมดและผู้ใช้อินเตอร์เฟซ ( UI ) , ซึ่งถูกเขียนขึ้นสำหรับแต่ละแพลตฟอร์มและใช้พื้นเมืองที่ UI คุณสมบัติของแพลตฟอร์ม เช่นปุ่ม , เครื่องมือ ,และโดยรวมมองและความรู้สึกของแพลตฟอร์มที่เฉพาะเจาะจง ที่นักพัฒนาใช้ UI ในชั้น C # เช่นกัน การใช้พื้นเมืองการออกแบบ UI เครื่องมือเช่นมุมมอง monotouch.uikit Androidสำหรับ iOS และ XAML Silverlight และ APIs สำหรับ Windows , รถไฟใต้ดินโทรศัพท์ การทำงานและรูปแบบขององค์ประกอบ UI สามารถควบคุมโดยตรรกะทางธุรกิจในโปรแกรม เช่น ในหลักการกำหนดปุ่มฟังก์ชันที่เรียกว่าในapp นักพัฒนาที่สร้างขึ้นบน Mono . สุทธิกรอบ [ 5 ]ซึ่งมีหลักข้ามแพลตฟอร์มการดำเนินงานของของ Microsoft . สุทธิกรอบ # C รหัสแหล่งที่มาสามารถคอมไพล์กับนักพัฒนาของคอมไพเลอร์เพื่อผลิตพื้นเมือง iOS App , หรือAndroid App แบบบูรณาการสนับสนุน runtime สุทธิ ในนี้กรณี , C # รหัสเรียบเรียงเป็นภาษาระดับกลางและแพคเกจกับ monovm สร้างแค่รวบรวมเวลาบน Android
การแปล กรุณารอสักครู่..
