Lập trình trên Windows với Microsoft® .NET

Giới thiệu Microsoft.Net .

 

Giới thiệu ngôn ngữ C# và các khái niệm cơ bản.

 

Lập trình hướng đối tượng với C#.

 

Lập trình Winforms với C#.

 

Lập trình cơ sở dữ liệu với ADO.Net .

 

ppt19 trang | Chia sẻ: Mr Hưng | Lượt xem: 660 | Lượt tải: 0download
Nội dung tài liệu Lập trình trên Windows với Microsoft® .NET, để tải tài liệu về máy bạn click vào nút DOWNLOAD ở trên
Lập trình trên Windows với Microsoft® .NET Giảng viên : Hồ Hoàn KiếmGiới thiệu Microsoft.Net .Giới thiệu ngôn ngữ C# và các khái niệm cơ bản.Lập trình hướng đối tượng với C#.Lập trình Winforms với C#.Lập trình cơ sở dữ liệu với ADO.Net .Nội dung môn học Khảo sát kiến trúc .Net . Xây dựng các ứng dụng với .Net .Các thành phần trong .Net Framework.Vai trò của CLR và IL . Giới thiệu Microsoft.NET. Microsoft .NET Framework ArchitectureWindowsLINUXCommon Language RuntimeFramework Class LibraryCommon Language SpecificationMicrosoft Visual Basic® .NETC++C#Microsoft JScript®Microsoft Visual Studio® .NETXML Web ServicesDevicesServersUser ExperiencesDeveloper Tools .NET Platform.NET FrameworkCommon Language RuntimeClass LibraryWindowsWeb ServicesADO.NETData TypesVisual Basic ApplicationsVisual C# ApplicationsVisual C++ ApplicationsProgramming Services.NET Platform CodeSource code compiles as MSILJIT compiler produces machine languageOne-stop Application DevelopmentVisual Studio .NETDesignDevelopDebugDeployData AccessXML WebServices ToolsWindowsForms ToolsWeb Forms ToolsError HandlingMultipleLanguages Các đặc điểm của Visual Studio .NETHổ trợ lập trình đa ngôn ngữ.1Độc lập với hệ điều hành (Platform ).2Xây dựng ứng dụng nhanh chóng và dễ dàng.3Hổ trợ xây dựng ứng dụng cho nhiều thiết bị .4Môi trường thiết kế trực quan .5Hướng đến các ứng dụng trên Internet (Webservice, WAP)6Microsoft Intermediate Language (MSIL)Common Language SpecificationVBC++C#JScriptJ#Common Language Runtime (CLR)Just In-Time Compiler (JIT)Operating System MSIL, JIT và CLRThực thi một chương trình .NetC#CodeC# CompilerVisual BasicCodeVisual Basic CompilerCOBOLCodeCOBOLCompilerILJIT CompilerNative Code.NET source codeLanguageCompilerMSIL+MetadataMachinecodeCode executedCLR1st Compilation2nd Compilation Thực thi các chương trình .NET Microsoft Intermediate Language.NET source codeLanguageCompilerMSIL+MetadataMachinecodeCode executedCLRMSILHelps Language interoperabilityIL is not bytecode, but is very close to it. Therefore, when the application is executed, the IL to machine code conversion is quick!MSIL converted to CPU-specific code by CLRCPU-independent set of instructions.NET source codeLanguageCompilerMSIL+MetadataMachinecodeCode executedCLRCLRManages memoryMakes it easy to design components & applications whose objects interact across languagesCross-language integration (especially cross-language inheritance)Compile once, and run on any CPU & OS that supports the runtime! Visual C#.Net và các khái niệm cơ bảnĐược phát triển bởi Microsoft do nhóm Anders Hejlsberg và Scott Wiltamuth sáng tác.Ngôn ngữ lập trình trực quan, hướng sự kiện, hướng đối tượng.Dựa theo ý tưởng các ngôn ngữ khác : C,C++, Java và Visual Basic.Hổ trợ đầy đủ bởi .Net Platform.Compiler hiệu quả nhất trong .Net family.Khả năng thay thế cho C++.Hạn chế sử dụng con trỏ.Chương trình C#using System;class SampleCSharp{ static void Main(string[] args) { Console.WriteLine("Hello world"); }}Các kiểu dữ liệu trong C#Các kiểu dữ liệu đơn giản : int, float, string , char, bool..Các kiểu dữ liệu tham chiếu : đối tượng, lớp.Các bổ từ khi sử dụng với biến : private, public, protectedCác kiểu dữ liệu khác : Array, Struct, Enum...Giá trị mặc định cho các kiểu dữ liệu : Nhập và xuất trong C#Sử dụng các phương thức của lớp Console trong namspace System.Console.WriteLine()Console.Write() Console.ReadLine() Console.Read () Ví dụ :using System;class SampleCSharp{ static void Main(string[] args) { //Nhập vào 1 chuổi string s = Console.ReadLine(); //Nhập vào số nguyên int n = int.Parse(Console.ReadLine()); //In ra mà hình Console.WriteLine("s = {0} va n = {1}",s,i); }} Cấu trúc IfCú pháp : if (biểu thức ) { //Các câu lệnh } else { //Cá câu lệnh }

Các file đính kèm theo tài liệu này:

  • pptc_co_ban_1_hhk_5322.ppt
Tài liệu liên quan